Share My Creation Basic 3D Engine (Unfinished)

Once upon a time, I tried to build a 3D engine from scratch.

The moment I realized I needed to dive into some higher mathematics in order to perform proper rotations, I kinda walked away and left it unfinished.

Example 1: Opens and displays a 3D .obj file.
Example 2: A corridor of rotating cubes.
Example 3: All of the above.

Use drag-and-drop to move the camera.

Nevertheless, I might pick it up again someday, who knows... :)
 

Attachments

  • thumbnail.png
    thumbnail.png
    75.1 KB · Views: 2,992
  • Example2.jar
    375.6 KB · Views: 434
  • Example3.jar
    375.7 KB · Views: 459
  • Example1.jar
    375.5 KB · Views: 485

ilan

Expert
Licensed User
Longtime User
hey this is really cool. how difficult would it be to create a room where you (the camera) walks in this room?
 

wonder

Expert
Licensed User
Longtime User
Thanks a lot, Ilan!!!! :D

Well, in theory it wouldn't be very difficult, but building a 3D engine from scratch is a huuuuuuuge headache.
Don't get me wrong, it's a great learning exercise, but unless you have access to the hardware layer (GPU), whatever you build will end-up running in slow motion.

If you really want to get into 3D, there's nothing like learning OpenGL. Your options are:
B4A OpenGL lib
B4A LibGDX OpenGL functions
B4A jPCT lib
C++ OpenGL (freeglut)
 

kopperfeld

Member
Licensed User
Longtime User
Once upon a time, I tried to build a 3D engine from scratch.

The moment I realized I needed to dive into some higher mathematics in order to perform proper rotations, I kinda walked away and left it unfinished.

Example 1: Opens and displays a 3D .obj file.
Example 2: A corridor of rotating cubes.
Example 3: All of the above.

Use drag-and-drop to move the camera.

Nevertheless, I might pick it up again someday, who knows... :)

I have written such a thing some time ago - and Yes, it's slow ^^ >
https://www.b4x.com/android/forum/threads/basic-3d-engine.31063/#post-252485
 
Top