Jump to content
  • Advertisement

Archived

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

X_Andi

MaxScript (3D Studio Max 4): Finding Triangle Strips

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

Hello everybody, At the moment I am working on a 3D Studio Max 4 Script that is able to export models into our special engine format. The method is quite simple: I convert the active selection into an Editable_Mesh an write then the X-, Y- and Z-coordinate of every vertex into an ASCII File. The problem: Sometimes 3DS Max uses Triangle Strips and sometimes it prefers to use Triangle Lists. How can I find out, what method is used for each vertex? Or do you know a method how to convert everything into triangle lists? The code:
...
o = selection as array	-- store the selected objects in an array
   for i = 1 to o.count do	-- repeat for each selected object
   (
   converttomesh o	-- convert this object to a mesh
   for t = 1 to o[i].numverts do
...
[/CODE]

Thank you very much!

Andi     
Xenoage Games

Share this post


Link to post
Share on other sites
Advertisement
I don''t know the answer to your question, but you might also want to try asking it at the Discreet forums. There is a fairly active MaxScript community.
http://support.discreet.com/~max

--
http://www.3dcgi.com/

Share this post


Link to post
Share on other sites
Hi 3dcgi,

thank you very much for your help, but the problem is already solved
With "getface" I can find the Vertices for each Triangle, that''s all I want.

Bye,

Andi


Xenoage Games

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!