-
I got to looking at some of the 3d programming people were doing, and I came up with this:
http://www.angelfire.com/games3/halberd/3dline.swf
and then I made it so that you can create new frames from within the movie:
http://www.angelfire.com/games3/halberd/3dline.swf
Here are the controls:
left/right-change x coordinates of all points
up/down-change y coordinates of all points
PgUp/PgDown-change z coordinates of all points
The first is just an estimated tetrahedran(sp?), while the second allows you to create different shapes. I just completed it, and the interface isn't friendly. Here is how it works:
left text boxes let you asign from top to bottom the name of the point(must be just a number), and the x,y,z coordinates of it, x being the second box, z being the last. The right text boxes are for the lines. THe top is the line number, the bottom two are the numbers of the points. You must have created points to make the line, or else it will glitch. If you overwrite points, then you will need to rewrite the lines connect to them, or else the lines will get stuck to where the overwritten point was. Press the buttons below the text boxes every time you want to create a point or line. The button on the far right hides all points, and just to the left of that is a button that hides all lines.
You probably noticed that it is a little slow, does anybody know a fast method for creating wire frames? Also, I am currently attempting to add faces to the design, but need to figure out how to draw triangles of any type to the screen. I've started to figure out a method, but if you already have one it could speed things up. Thanks for your time, I hope you enjoyed my program.
-
madskool.wordpress.com
'Angelfire' wouln't let me link directly to your site. How do I get into it?
If you're interested, my 3D stuff is at:-
http://au.geocities.com/brutfood/
-
To view it, don't press the link. Instead, copy the url directly into the address bar. This has worked for everyone else so spread the word. Angelfire just has that built in so sites don't link directly to it.
-
I checked out your 3d builder, it is quite impressive. I wouldn't have thought to do cylinders like that. Mine still has a ways to go, but I think the effect will turn out well. Btw, that second link should read:
http://www.angelfire.com/games3/halberd/3dface.swf
And I now have a newer version with actual facing on the models. I don't have the z-indexing right, and I might be stumped on how to do it. Maybe you can help me. How do you decide which objects are in front, and once that is done, how do you actually change the depths. I assume you have to do something with the .swapDepths command, but I don't see anything short of cataloging the depths in order of every single shape.
-
madskool.wordpress.com
Yes, the advantage of cylinders is that they enabled me to create solid 3D objects in Flash 5. The MX drawing API enables you to do much more, but for now I wanted to stick with Flash 5 compatibility.
I use swapDepths() to do the z-bufferring. It's a very crude algorithm - and far from perfect. I just work out a stacking order based on the z-coordinate of each shape.
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
|