Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

ShadyWRX

How do they do that??

This topic is 5650 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

Share this post


Link to post
Share on other sites
Advertisement
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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
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]

Share this post


Link to post
Share on other sites
I got that 3DExploration, but that didnt recognize neither the .max model files or the c++ header file that had the coordinates.

Any suggestions?

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!