[Release] BLEND3R - Opensource 3D Model Viewer

Discussion in '3DS - Homebrew Development and Emulators' started by Rinnegatamante, Feb 29, 2016.

  1. Rinnegatamante
    OP

    Member Rinnegatamante GBAtemp Psycho!

    Joined:
    Nov 24, 2014
    Messages:
    3,127
    Location:
    Bologna
    Country:
    Italy
    BLEND3R v.1.1

    [​IMG]

    Description
    Someone asked for such piece of code so i decided to write it :P
    BLEND3R is a 3D model viewer wrote with lpp-3ds fully opensource.
    It can be used for benchmark purposes (since BLEND3R allows also stereoscopic 3D and shows current FPS during rendering process) or just for fun.
    It supports Wavefront (.obj) models but with some restrictions: only triangles primitives, materials are not supported).

    How to adapt a model

    To be sure your model will be compatible with BLEND3R you can use Blender ( <.< ) to convert it into a triangles primitives one.
    You can follow this short tutorial to do so:
    1) Start Blender v.2.7.
    2) Remove the default cube and import your model.
    3) On bottom screen where you see "Default Mode", click it and select Edit Mode
    4) If your model is not selected, press A to select it.
    5) Press CTRL+T
    6) Export the model as Wavefront (.obj). (Uncheck during exporting the Write Materials box)

    Controls

    Filebrowser:


    DPad = Navigate through files
    A = Open Directory / File
    X = Enable / Disable 804 Mhz mode (N3DS only)
    SELECT = Take screenshot
    START = Exit Homebrew

    Render Phase:

    Circle Pad = Move model
    L / R = Zoom In / Zoom Out
    Touchscreen = Rotate model
    X = Enable / Disable 804 Mhz mode (N3DS only)
    B = Return to Filebrowser
    SELECT = Take screenshot
    START = Exit Homebrew

    How to use textures

    You can use a texture with your model by inserting a PNG file with the same name as the model ones in the same folder (so like /model.obj and /model.png ).

    Download

    http://rinnegatamante.it
     
    Last edited by Rinnegatamante, Mar 3, 2016


  2. Philip3ds

    Member Philip3ds GBAtemp Regular

    Joined:
    May 13, 2015
    Messages:
    180
    Country:
    South Africa
  3. Voxel

    Member Voxel Your Best Fiend

    Joined:
    Jun 27, 2015
    Messages:
    5,037
    Location:
    England, UK
    Country:
    United Kingdom
    ur joking right??? :O:O

    Oh man, I knew I'd be beat! >.> I was doing a lot of research around making an .obj viewer myself! :P

    Awesome work man! Keep it up!
     
  4. Rinnegatamante
    OP

    Member Rinnegatamante GBAtemp Psycho!

    Joined:
    Nov 24, 2014
    Messages:
    3,127
    Location:
    Bologna
    Country:
    Italy
    It's still not perfect, it doesn't support different primitives, materials, multiple textures and so on :P If you want to help or make a better one it's welcome! ;)
    In some minutes i'll add also some screenshot.
     
    Voxel likes this.
  5. MartyDreamy

    Member MartyDreamy Stay Foxy

    Joined:
    Jul 1, 2015
    Messages:
    812
    Location:
    ZagToon Studios
    Country:
    Italy
  6. TheCruel

    Member TheCruel Developer

    Joined:
    Dec 6, 2013
    Messages:
    1,351
    Country:
    United States
    Would be cool to have cgfx/cmdl viewer, but there is some REing that still needs to be done iirc.
     
  7. Rinnegatamante
    OP

    Member Rinnegatamante GBAtemp Psycho!

    Joined:
    Nov 24, 2014
    Messages:
    3,127
    Location:
    Bologna
    Country:
    Italy
    Added some screenshots to OP.
     
  8. xXDungeon_CrawlerXx

    Member xXDungeon_CrawlerXx GBAtemp Maniac

    Joined:
    Jul 29, 2015
    Messages:
    1,106
    Location:
    Liverpool
    Country:
    United Kingdom
    Could you upload the .elf file or create a .cia for me? :)
     
  9. Rinnegatamante
    OP

    Member Rinnegatamante GBAtemp Psycho!

    Joined:
    Nov 24, 2014
    Messages:
    3,127
    Location:
    Bologna
    Country:
    Italy
  10. cmdj13

    Member cmdj13 GBAtemp Regular

    Joined:
    Aug 28, 2015
    Messages:
    139
    Location:
    In front of my WiiU
    Country:
    Germany
    Really cool project, ans works really well (at least with some .objs I extracted from SM3DL some time ago)! :)
     
  11. xXDungeon_CrawlerXx

    Member xXDungeon_CrawlerXx GBAtemp Maniac

    Joined:
    Jul 29, 2015
    Messages:
    1,106
    Location:
    Liverpool
    Country:
    United Kingdom
  12. Rinnegatamante
    OP

    Member Rinnegatamante GBAtemp Psycho!

    Joined:
    Nov 24, 2014
    Messages:
    3,127
    Location:
    Bologna
    Country:
    Italy
    The index.lua can be bundled in the CIA file also with the latest R5 release (thanks to RomFS buildscripts)
     
  13. gbaboy123

    Banned gbaboy123 Banned

    Joined:
    May 14, 2011
    Messages:
    412
    Location:
    tree with wi fi
    Country:
    United States
    now we can know the true power of the 3ds. is there framerate difference between a 3d and 2d render or is it like a 3ds games that it always renders in 3d but parallax barrier hides the second render?

    — Posts automatically merged - Please don't double post! —

    And one more question can we have it as a .cia i bet i should run better same as the how the emulators run better on cia than 3dsx
     
    Last edited by gbaboy123, Feb 29, 2016
  14. Rinnegatamante
    OP

    Member Rinnegatamante GBAtemp Psycho!

    Joined:
    Nov 24, 2014
    Messages:
    3,127
    Location:
    Bologna
    Country:
    Italy
    If you have 3D slider one it simply render twice the scene (first for left eye, second for right eye).
    As for the CIA, read like 4 posts before this.
     
  15. GalladeGuy

    Member GalladeGuy Freeze Kirby :3

    Joined:
    Oct 28, 2015
    Messages:
    2,475
    Country:
    United States
    Last edited by GalladeGuy, Mar 10, 2016
  16. Games&Stuff

    Member Games&Stuff GBAtemp Advanced Fan

    Joined:
    Oct 8, 2015
    Messages:
    787
    Country:
    Belgium
    Amazing work!
     
  17. kprovost7314

    Member kprovost7314 I AM 14, NOT 25!

    Joined:
    Dec 24, 2014
    Messages:
    1,378
    Location:
    In that bara manga ( ͡° ͜ʖ ͡°)
    Country:
    United States
    Oh gawd Susan the monkey is here. Otherwise great homebrew!
     
  18. MajorMajora

    Newcomer MajorMajora Advanced Member

    Joined:
    Jan 3, 2016
    Messages:
    67
    Country:
    United States
    Can this view models from 3DS games you have downloaded?
     
  19. Octoling

    Banned Octoling Banned

    Joined:
    Dec 28, 2015
    Messages:
    304
    Location:
    Same place as [INSERT NAME HERE]
    Country:
    United States
    Lets see some oras models plz
     
  20. GREAFOX

    Newcomer GREAFOX Advanced Member

    Joined:
    Feb 16, 2016
    Messages:
    67
    Country:
    France
    Thanks but I don't understant. Why to start the 2.7 version ?
     

Share This Page