Hey everyone!
I made a 3D engine in Flash 8 a long time ago and never really finished it. I came across a few issues I never figured out how to solve.
http://zavaboy.com/fla/cubespin8.swf
Controls:
Click and drag to change camera viewpoint.
Mouse scroll wheel moves camera closer and further.
Keys 1-8 load different objects. (Some objects may be complex enough to slow down your computer.)
Two major issues:
1. Surfaces do not always render properly because I'm trying to render them in order of distance from the camera. This isn't working very well and the idea behind it isn't flawless.
2. I don't know how to clip surfaces that go behind the camera. This greatly distorts the surface once the camera has passed trough it.
I will not work on this project anymore because 1) it's an old project so the code would be a bit hard to get back into (I didn't comment much) and 2) I'm interested in a completely different method of rendering which will just about scrap everything I've done in this project anyway. I, however, learned a lot from this project.
I built this by making it translate OBJ files into polygons drawn on the screen. It's flawed. I would much rather build a 3D engine which utilizes pixels on a bitmap object and figures out which surface each pixel hits first. I believe what I'm trying to accomplish would be scanline rendering.
Any suggestions, comments, questions, criticism?