Archived

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

The Geekman

3D Studio Max Models in OpenGL

Recommended Posts

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
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
quote:
Original post by The Geekman
Where can I find that Gamasutra article?

On Gamasutra. http://www.gamasutra.com. Can''t you do ANY of your own searching???


How appropriate. You fight like a cow.

Share this post


Link to post
Share on other sites