-
A 3d engine in flash?
How can I make a 3d engine in flash? Bare in mind that I do want the camera to be moved and rotated. Any help will be appreciated.
-
supervillain
It's going to take a lot of complicated math and ActionScript...
3DFS is an establish 3D flash engine, and there's a few others that exist. But from scratch... how comfortable are you with AS?
-
imagination through stupidity
Originally Posted by lemming77
How can I make a 3d engine in flash? Bare in mind that I do want the camera to be moved and rotated. Any help will be appreciated.
if you don't have a strong programing background you won't be able to make anything like that in any language from scratch. something like a 3d engine takes a lot of planning and thought, best wishes.
i'm pretty sure there are some books on 3d engines in C or JAVA, check those out.
Nothing to see here, move along.
-
To asnwer your question, Gerbick, I'm quite comfortable with AS. I've got a 3d engine going, now, but I do have one last question. Is there a way to deform a bitmap using AS? Like with the free transform tool?
-
imagination through stupidity
flash 8 gives us various bitmap filters and whatnot. check out BitmapData, BitmapFilter, BlurFilter and DisplacementMapFilter
Nothing to see here, move along.
-
Well, although that sounds helpful, I'm still on flash MX 2004. Any other suggestions?
-
If you want something fast enough for a 3D engine then you are pretty much stuck with triangle patches or quad patches made from 2 triangles. This can be done with very basic 2D vector math pretty simple stuff if you've already built a 3D engine. If you hope to render any reasonable number of faces I would suggest that you use the standard actionscript used for a MovieClip perspective transform and adapt it to tri strips, otherwise your rendering engine will be performing about 30% more work.
Also it pays to keep in mind while developing your transform function ...that ... creating a seamless meshes is almost impossible even using a dynamicly calculated masking coefficient, a RGBA lighting model works with tri's but has problems with quads due to the overlapping MovieClips. It really pays if you have built your engine with faces having indices into an objects vertice and line list otherwise optimizing Texture Mapping would be very difficult.
Hope these thoughts save you some work
-
imagination through stupidity
wait for AS3 where we have access to DisplayList
Nothing to see here, move along.
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|