Jump to content
  • Advertisement
Sign in to follow this  
CyberSlag5k

New to MAXScript, writing exporter

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

None of the export options native to max really work well for what I need, so I have decided to write my own. I am a programmer (not an artist) and I don't have much experience with 3ds max. I have zero experience with max script, but I hear it's easy to pickup. Is the best place to start learning the SDK maxscript tutorials? What are some other good resources for learning max script? I'm not terribly interested in max or maxscript beyond this one plugin, but I will learn what I must to get it done. The program I am writing is a model loader, so I will need to pull the following information out of any max object: mesh geometry -unique list of vertices -indexed list of polygons referencing vertex list normals -both per-surface and per-vertex materials textures animation keyframes (complete with normals for each frame) Max should already store all of the this data, should it not? I will also wish to export the file such that all of that data is pack contiguously (as I specify) and written in binary (for speed). Is all of this possible, and doable within a week or so (including learning time)? And if anyone has any suggestions, I would be most appreciative to recieve them. Thank you.

Share this post


Link to post
Share on other sites
Advertisement
Perhaps there's a better forum to post this in? I thought maybe general or graphics programming? I thought this one made the most sense since max is an art program (and you guys are the artists), but I'd be happy to move it (or have a mod move it) if there's a better place for it.

Share this post


Link to post
Share on other sites
really the best place to look is the maxscript documentation that comes with max. it includes the source for a simple exporter, and has everything you need (providied its sometimes hidden pretty deep in the documentation) to get started writing the exporter you want. There has never been a really good book published on MaxScript (not that I've read anyway) there is a small section in the 3DSMax 6 Bible, but it doesnt say much. The best thing to do it stick with the documentation. Its not too hard.

The only other thing to do is search around online and find a maxscript exporter and discect it. Find the code that does what you want to do and figure out what its doing.

pulling it off in a week isnt going to be easy espically if you have no knowledge of maxscript.

anyway, look through the "How To" section of the maxscript documentation, it has the code for a custom exporter in text mode. it wouldnt be hard to change it to binary (look up binstream in the documentation), and start adding in your own data to it.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • 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!