1. Deleted User

    OP Deleted User Newbie

    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

    Joined:
    Jun 3, 2015
    Messages:
    665
    Country:
    United States
    I think you're overestimating the number of libraries you have available.
     
  3. Deleted User

    OP Deleted User Newbie

    Why? Is there not many 3D rendering libraries out there?
     
  4. doctorgoat

    doctorgoat GBAtemp Advanced Fan
    Member

    Joined:
    Jun 3, 2015
    Messages:
    665
    Country:
    United States
    With working 3DS ports? No.
     
  5. Deleted User

    OP Deleted User Newbie

    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

    Joined:
    Jun 3, 2015
    Messages:
    665
    Country:
    United States
    He wrote the code for rendering that it's using.
     
  7. Deleted User

    OP Deleted User Newbie

    From scratch? I'll have to look into all of this. :/
     
  8. Jack_Sparrow

    Jack_Sparrow Ruthless Pirate
    Banned

    Joined:
    Nov 17, 2015
    Messages:
    855
    Country:
    United States
    You underestimate the power of The Dark Side .
     
    Deleted User likes this.
  9. Deleted User

    OP Deleted User Newbie

    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

    Joined:
    Nov 17, 2015
    Messages:
    855
    Country:
    United States
    Oh yeah, PM me the pics :tpi:
     
    Deleted User likes this.
  11. MasterFeizz

    MasterFeizz GBAtemp Maniac
    Member

    Joined:
    Oct 15, 2015
    Messages:
    1,081
    Country:
    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. Deleted User

    OP Deleted User Newbie

    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 Maniac
    Member

    Joined:
    Oct 15, 2015
    Messages:
    1,081
    Country:
    United States
    The code has comments, just remove the vertices for the second cube
     
  14. Deleted User

    OP Deleted User Newbie

    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 Maniac
    Member

    Joined:
    Oct 15, 2015
    Messages:
    1,081
    Country:
    United States
    No, it's on the same vbo
     
  16. Deleted User

    OP Deleted User Newbie

    Well, what part of the vbo do I need to modify/remove to get only one cube?
     
  17. MasterFeizz

    MasterFeizz GBAtemp Maniac
    Member

    Joined:
    Oct 15, 2015
    Messages:
    1,081
    Country:
    United States
    Actually on the new examples it only has one cube and draws it once, maybe check the shader code
     
  18. Deleted User

    OP Deleted User Newbie

    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 Maniac
    Member

    Joined:
    Oct 15, 2015
    Messages:
    1,081
    Country:
    United States
    No the code should draw 1 cube, unless you mesed with the code that checks the 3d slider
     
  20. Deleted User

    OP Deleted User Newbie

    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)
     
Draft saved Draft deleted
Loading...

Hide similar threads Similar threads with keywords - physics, should,