Jump to content
  • Advertisement

Archived

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

The Geekman

3D Studio Max Models in OpenGL

This topic is 5581 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

Advertisement
I don't know if it's 3DSMAX 4.2, but it's worth a try...

http://www.gametutorials.com/download/OpenGL/3DSLoader_OGL.zip



---------------------------------------
There are 10 type of people:
those who knows binary code
and those who doesn't
---------------------------------------

[edited by - FabioPal on May 8, 2003 5:20:40 AM]

Share this post


Link to post
Share on other sites
The MAX format stores a stack of operations rather than actual geometry, so it is not at all conducive to reading into a program. Either write your own exporter in MaxScript (it''s really not that hard) or download one...they have various exporters available for common formats such as MD3.

Share this post


Link to post
Share on other sites
Or if you''re really sadistic (like me), visit

http://www.dcs.ed.ac.uk/home/mxr/gfx/3d/3DS.spec

The spec is a little out of date, but gives you the rundown on the 3DS file format and how to read it in from a stream. You can then grab vertexes/materials/faces/etc from the data once youve decoded the mess.

*Moving Forward Along the Backward Walkway of Technology*

Share this post


Link to post
Share on other sites
I''m currently working on a exporter with MAXScript and I can say what hell is to export all the geometry / ilumination / mesh information...

Share this post


Link to post
Share on other sites
quote:
Original post by brucesinner
I''m currently working on a exporter with MAXScript and I can say what hell is to export all the geometry / ilumination / mesh information...

Perhaps, if you''re exporting an entire scene. If all you want is to export a model (as the OP is doing) it''s really very simple. There''s even an article on Gamasutra about it, IIRC, with sample source.


How appropriate. You fight like a cow.

Share this post


Link to post
Share on other sites
Does anyone have any sample Max Srcipt that I can have? Or some sample OpenGL source for importing?

------------------
ON ERROR GOTO Hell

Share this post


Link to post
Share on other sites
quote:
Original post by The Geekman
Does anyone have any sample Max Srcipt that I can have? Or some sample OpenGL source for importing?

I''d show you mine, but it''s been in quite a state of flux recently, and I''m afraid that gazing upon its hellishly ugly visage might cause permanent harm. (Also, I''m doing stuff in it that you probably don''t want to care about.) I suggest you check out that Gamasutra article; it has full source.


How appropriate. You fight like a cow.

Share this post


Link to post
Share on other sites
Hi,

I''ve used the QTip exporter (export to an .MD2 format). this is a plugin for 3dStudioMax 1-2-3-4 that is quite popular, you should be able to get it on the web. From there you can load an MD2 model quite easily (I used a code example from OpenGL Game Programming book - it''s quite good).

Hope this help,


Kiroke
www.geocities.com/kiroke2

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!