[Release] BLEND3R - Opensource 3D Model Viewer

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

  1. Rinnegatamante
    OP

    Rinnegatamante GBAtemp Psycho!

    Member
    3,127
    3,271
    Nov 24, 2014
    Italy
    Bologna
    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

    Philip3ds GBAtemp Regular

    Member
    183
    42
    May 13, 2015
    Nice.
     
  3. Voxel

    Voxel Fable Junkie

    Member
    GBAtemp Patron
    Voxel is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    5,209
    5,958
    Jun 27, 2015
    United Kingdom
    England, UK
    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

    Rinnegatamante GBAtemp Psycho!

    Member
    3,127
    3,271
    Nov 24, 2014
    Italy
    Bologna
    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

    MartyDreamy boop

    Member
    928
    1,705
    Jul 1, 2015
    Italy
    ZagToon Studios
    Nice!
     
  6. TheCruel

    TheCruel Developer

    Banned
    1,351
    2,884
    Dec 6, 2013
    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

    Rinnegatamante GBAtemp Psycho!

    Member
    3,127
    3,271
    Nov 24, 2014
    Italy
    Bologna
    Added some screenshots to OP.
     
  8. xXDungeon_CrawlerXx

    xXDungeon_CrawlerXx GBAtemp Maniac

    Member
    1,275
    591
    Jul 29, 2015
    Liverpool
    Could you upload the .elf file or create a .cia for me? :)
     
  9. Rinnegatamante
    OP

    Rinnegatamante GBAtemp Psycho!

    Member
    3,127
    3,271
    Nov 24, 2014
    Italy
    Bologna
  10. cmdj13

    cmdj13 GBAtemp Regular

    Member
    139
    72
    Aug 28, 2015
    Gambia, The
    In front of my WiiU
    Really cool project, ans works really well (at least with some .objs I extracted from SM3DL some time ago)! :)
     
  11. xXDungeon_CrawlerXx

    xXDungeon_CrawlerXx GBAtemp Maniac

    Member
    1,275
    591
    Jul 29, 2015
    Liverpool
  12. Rinnegatamante
    OP

    Rinnegatamante GBAtemp Psycho!

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

    gbaboy123 Banned

    Banned
    412
    115
    May 14, 2011
    United States
    tree with wi fi
    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

    Rinnegatamante GBAtemp Psycho!

    Member
    3,127
    3,271
    Nov 24, 2014
    Italy
    Bologna
    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

    GalladeGuy Freeze Kirby :3

    Member
    2,588
    2,652
    Oct 28, 2015
    United States
    Last edited by GalladeGuy, Mar 10, 2016
  16. Games&Stuff

    Games&Stuff GBAtemp Advanced Fan

    Member
    787
    564
    Oct 8, 2015
    Belgium
    Amazing work!
     
  17. kprovost7314

    kprovost7314 GBAtemp's Official Bara Master

    Member
    1,714
    931
    Dec 24, 2014
    United States
    In that bara manga ( ͡° ͜ʖ ͡°)
    Oh gawd Susan the monkey is here. Otherwise great homebrew!
     
  18. MajorMajora

    MajorMajora Advanced Member

    Newcomer
    67
    5
    Jan 3, 2016
    United States
    Can this view models from 3DS games you have downloaded?
     
  19. Octoling

    Octoling Banned

    Banned
    304
    61
    Dec 28, 2015
    United States
    Same place as [INSERT NAME HERE]
    Lets see some oras models plz
     
  20. GREAFOX

    GREAFOX Advanced Member

    Newcomer
    67
    6
    Feb 16, 2016
    France
    Thanks but I don't understant. Why to start the 2.7 version ?