Sep/080
3D Engine V0.52
Made a huge leap forward the last few weeks, this version of the engine is actually quite usefull and easy for most simple 3D things. But I’m not quite ready to release source code yet there are still a few things to do, to make it more of a complete engine. Below is a demo of what it is capable of right now;
Bugfixes:
- Altered the 3D camera translation function to something that also works when looking down on an object.
Known bugs:
- The triangular polygons are now textured with only two triangles, this can still be increased…
- Focal point singularity, some 3D points that are in the focal point of the camera move to an infinite distance.
- Some polygons are incorrectly culled.
New features:
- Added a cylinder primitive
- Added a cone primitive
- Added UV mapping for all primitves; cube, sphere, cylinder and cone
- Added 3D lighting, for the moment it will support multiple light entities with only white light
- Added ambient lighting
- Added 3D surface normals
- Added colouring and texturing support for triangular polygons
Upcoming features:
- View frustum culling
- Performance increase
- Directional light and light with different colours
- Roll camera movement
- Object rotation
- Texture perspective correction
- 3D particles!
Maybe phong shading will also be possible one day with gradients but it’s not uber important. And I thought about doing shadows with the new bitmapfilter api, but that is all still very experimental. What matters the most at the moment is creating a finished version of which I will release all the source code for free. Soon I will also post about the inner workings of a 3D engine, something that I couldn’t find (as in all info being on one page) on the interwebs.