Topic: 3D engine in flash Pages that link to <a href="https://ozoneasylum.com/backlink?for=31643" title="Pages that link to Topic: 3D engine in flash" rel="nofollow" >Topic: 3D engine in flash\

 
Author Thread
zavaboy
Paranoid (IV) Inmate

From: f(x)
Insane since: Jun 2004

IP logged posted posted 02-13-2010 22:26 Edit Quote

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?

White Hawk
Maniac (V) Inmate

From: zero divided.
Insane since: May 2004

IP logged posted posted 02-19-2010 23:19 Edit Quote

I wouldn't know enough to make an intelligent comment, or even know what to ask, but I'm impressed with the effort all the same.

I barely manage simple stuff in LUA, so it's all magic to me.

zavaboy
Paranoid (IV) Inmate

From: f(x)
Insane since: Jun 2004

IP logged posted posted 02-22-2010 02:30 Edit Quote

Thanks for the compliment White Hawk.



Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu