What libs should I use if I want to make a 3D game with physics?

Discussion in '3DS - Homebrew Development and Emulators' started by Voxel, Dec 27, 2015.

  1. Voxel
    OP

    Voxel Fable Junkie

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

    Our Patreon
    5,199
    5,924
    Jun 27, 2015
    United Kingdom
    England, UK
    Hello everyone,

    I just wanted to ask which libs are suitable for making a 3D homebrew app, and also possibly a lib which can implement physics into that 3D game?
    (and by 3D, I don't mean stereoscopic, I mean stuff like 3D shapes; 3D rendering, etc.)

    Thank you for any answers! :)

    P.S. - I already tried Citro3D, but I'm having trouble with drawing 3D objects.
     


  2. doctorgoat

    doctorgoat GBAtemp Advanced Fan

    Member
    624
    234
    Jun 3, 2015
    United States
    I think you're overestimating the number of libraries you have available.
     
  3. Voxel
    OP

    Voxel Fable Junkie

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

    Our Patreon
    5,199
    5,924
    Jun 27, 2015
    United Kingdom
    England, UK
    Why? Is there not many 3D rendering libraries out there?
     
  4. doctorgoat

    doctorgoat GBAtemp Advanced Fan

    Member
    624
    234
    Jun 3, 2015
    United States
    With working 3DS ports? No.
     
  5. Voxel
    OP

    Voxel Fable Junkie

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

    Our Patreon
    5,199
    5,924
    Jun 27, 2015
    United Kingdom
    England, UK
    That's a bit shit, then...

    Although I remember that Smea has done stuff like 3DSCraft and Portal3DS, but I've never been too sure on what libraries he's used. Has he only used Ctrulib for 3D rendering? Or has he used some other libraries too?
     
  6. doctorgoat

    doctorgoat GBAtemp Advanced Fan

    Member
    624
    234
    Jun 3, 2015
    United States
    He wrote the code for rendering that it's using.
     
  7. Voxel
    OP

    Voxel Fable Junkie

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

    Our Patreon
    5,199
    5,924
    Jun 27, 2015
    United Kingdom
    England, UK
    From scratch? I'll have to look into all of this. :/
     
  8. Jack_Sparrow

    Jack_Sparrow Ruthless Pirate

    Banned
    855
    477
    Nov 17, 2015
    United States
    The Black Pearl
    You underestimate the power of The Dark Side .
     
    Voxel likes this.
  9. Voxel
    OP

    Voxel Fable Junkie

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

    Our Patreon
    5,199
    5,924
    Jun 27, 2015
    United Kingdom
    England, UK
    Well, looking at some of the rendering scripts, he's using Vectors in his work. pehaps I need to fiddle around with his code to make a sexy textured cube? ;)
     
  10. Jack_Sparrow

    Jack_Sparrow Ruthless Pirate

    Banned
    855
    477
    Nov 17, 2015
    United States
    The Black Pearl
    Oh yeah, PM me the pics :tpi:
     
    Voxel likes this.
  11. MasterFeizz

    MasterFeizz GBAtemp Advanced Fan

    Member
    888
    827
    Oct 15, 2015
    United States
    3d rendering on the 3ds is fairly simple if you are familiar with modern opengl. Take a look at ctrulibs sample codes, even though they are deprecated they are a very good starting point
     
  12. Voxel
    OP

    Voxel Fable Junkie

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

    Our Patreon
    5,199
    5,924
    Jun 27, 2015
    United Kingdom
    England, UK
    They used Citro3D, but I was having a problem with the gputest example. I made the squares into cubes, but I want to get rid of the unneeded extra cube that it renders on the right.
     
  13. MasterFeizz

    MasterFeizz GBAtemp Advanced Fan

    Member
    888
    827
    Oct 15, 2015
    United States
    The code has comments, just remove the vertices for the second cube
     
  14. Voxel
    OP

    Voxel Fable Junkie

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

    Our Patreon
    5,199
    5,924
    Jun 27, 2015
    United Kingdom
    England, UK
    I know the code has comments, but I can't see a 2nd set of vertices for the 2nd cube. :blink:

    Does it duplicate the cube in any way?
     
  15. MasterFeizz

    MasterFeizz GBAtemp Advanced Fan

    Member
    888
    827
    Oct 15, 2015
    United States
    No, it's on the same vbo
     
  16. Voxel
    OP

    Voxel Fable Junkie

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

    Our Patreon
    5,199
    5,924
    Jun 27, 2015
    United Kingdom
    England, UK
    Well, what part of the vbo do I need to modify/remove to get only one cube?
     
  17. MasterFeizz

    MasterFeizz GBAtemp Advanced Fan

    Member
    888
    827
    Oct 15, 2015
    United States
    Actually on the new examples it only has one cube and draws it once, maybe check the shader code
     
  18. Voxel
    OP

    Voxel Fable Junkie

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

    Our Patreon
    5,199
    5,924
    Jun 27, 2015
    United Kingdom
    England, UK
    I see two shader files; test_gsh.shader and test_vsh.shader.

    Do I need to remove code involving one of these shaders?
     
  19. MasterFeizz

    MasterFeizz GBAtemp Advanced Fan

    Member
    888
    827
    Oct 15, 2015
    United States
    No the code should draw 1 cube, unless you mesed with the code that checks the 3d slider
     
  20. Voxel
    OP

    Voxel Fable Junkie

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

    Our Patreon
    5,199
    5,924
    Jun 27, 2015
    United Kingdom
    England, UK
    I haven't touched any of the 3D slider code. (at least I don't think I did; I'll redownload the examples folder again and check them both)