Thread: 3d
View Single Post
  #26  
Old 08-08-2004, 02:43 PM
Polo Polo is offline
Classic Systems Admin
Join Date: Sep 2002
Location: Vancouver, Canada
Posts: 735
Polo is on a distinguished road
Send a message via AIM to Polo
Mine was a balloon and not a sphere (The script aslso contains a diablo hehe), and is different from Kai's and Amon-Ra's examples in that mine is shape independant, and works much like a proper 3d engine, in that you just weed co-ordinate polygons and normals, It is because mine is shape independant that it uses showpoly2, as whiilst working out what polygons are hidden when you have a shape like a sphere is easy, it becoms much more difficult when you are making shapes such as carrots and tables, especially when the drawing code is independant of the data.

For those intrigued, mine uses a tensor which is manipulated and polygons drawn from that as necessary.

And um.. mines rather efficient, but can probably be tweaked, and weighs it at 169 lines, including setting the definitions for the balloon shape, although its probably only 130-140 commands, as i put in a lot of spacing for clarity.


Added:
I just saw what Amon had put about using 3d studio max to get the vertexes and this is how mine works, with the drawing not relying on the data being a certain type of shape. I'd still rather use showpoly2 than go through every single possible situation (2 sided polygons, clipped, obfuscation etc..). Amon's excample is very good, and I agree somewhat with what he says about Kai misdirecting the thread.
__________________
Be good little players, or Master Storm will ban you!



Proof that the staff are crazy..
*Ghost Pirate: I'm a little teacup short and stubbe here is my raygun here is my butt
DragonX: Jumping jack rabbits Batman! Our eggo waffles have been stolen! To the batmobile Robin!
X-Mann (RC): I have a head ache

Last edited by Polo; 08-08-2004 at 02:48 PM.. Reason: Additions....