Advertisement

How do they do that??

Started by December 05, 2002 08:11 PM
8 comments, last by ShadyWRX 22 years, 2 months ago
i was looking at the LOTR contest code and i saw like one guys thing that had code for his ring and it was like static short face_indicies[3600][6] = { with 3600 values... im definately sure he didnt rite them up... Did he use like 3D studio max, and make his object and then export it into a coordinate format somehow??? Anyone? Thanks Mike
I haven''t messed with those programs for a while, but I seem to remember a couple of them could save directly to C code or headers. If they don''t, then Milkshape for instance exports VRML, and I''m sure you can just copy and paste the vertex/face info.

For a ring, however, I''m sure I would prefer to generate the coordinates procedurally. That might give me some control over the level of detail.

Tom
"E-mail is for geeks and pedophiles." -Cruel Intentions
Advertisement
i just wana know how to draw a sphere
lol

or anything rounded...
gluSphere

search for Deep Exploration (was 3DExploration). It can handle many 3d file format and can convert between them.
It can also convert a 3d model direct to openGL display list code.
some constructive thinking and a little bit of trigonometry (think of it as drawing a bunch of horisontal circles along the circumference of a bunch of vertical circles ) - it''s not that difficult if you really think about it. If you''re go for speed and don''t want to mess with all the maths, go for gluSphere(), as stated above.

Crispy
"Literally, it means that Bob is everything you can think of, but not dead; i.e., Bob is a purple-spotted, yellow-striped bumblebee/dragon/pterodactyl hybrid with a voracious addiction to Twix candy bars, but not dead."- kSquared
Advertisement
thanks guys

Crispy... i would have drawn an a circle using polar cords and a gl_polygon and then rotated it on axis (around the diameter) a certain ammount of times depending on its radius...

[edited by - ShadyWRX on December 6, 2002 8:31:09 AM]
I got that 3DExploration, but that didnt recognize neither the .max model files or the c++ header file that had the coordinates.

Any suggestions?
quote:
Original post by ShadyWRX
I got that 3DExploration, but that didnt recognize neither the .max model files or the c++ header file that had the coordinates.

Any suggestions?



I don''t think it will read .max files, as they are a propietary format. I think they will read .3ds files, which you can export from 3dStudioMax.



----------------
Interesting quote deleted at request of owner
----------------Amusing quote deleted at request of owner
Its kinda easy really. I have written a converter that converts a 3d model format into something easier i can work with. So i suspect he did the same or something similar.

This topic is closed to new replies.

Advertisement