PDA

View Full Version : Triangle Strips in XSI?


TonyEdwards
11-30-2006, 07:25 PM
Can anybody point me in the right direction for XSI support for triangle strips?

I noticed there are SI_TriStripList and SI_TriStrip dotXSI templates which XSI ignores. As of 5.0 of the dotXSI file format there appears to be an XSI_TriangleStripList template which XSI obviously supports. I'm still using 4.2 so I can't tell myself. Are triangle strips always generated in a dotXSI file with 5.X or must you manually specify lists or strips to be exported?

Is there a way to access or manipulate triangle strips through the SDK... a relatively easy way?

The Triangle object has a NeighborTriangles property and I could see how that could be used as a start but I was hoping there was already something in the SDK that returned a triangle strip collection or something.

In reviewing the documentation for 5.11 I don't see any object model changes that would lead me to believe it's handled any differently than in 4.2.

Any ideas, info or experience would greatly be appreciated?

Oh, yeah I'm using accessing the SDK via the Scripting COM if that matters.

TonyEdwards
12-01-2006, 05:44 AM
Okay...

so I fee like a complete idiot. Now that I'm home in front of XSI, right there in the Geometry section of the dotXSI export options is a drop down for Polygon Type with Triangle Strips as an option. :banghead:

What I don't get though is why the documentation says the SI_TriStripList and SI_TriStrip templates are not supported and ignored in XSI yet I was able to export and import a file with the templates? :shrug: I guess I'm not reading something right...

As for a collection of triangle strips in the XSI SDK, I never found anything. I couldn't find any Python solutions or tutorials on triangle stripping and I don't know or at this point want to know enough C or C++ to read through what stuff I did find. If you can actually program then here are some links to start out with.
Triangle Strips for OpenGL in Tcl (http://wiki.tcl.tk/10379)
Creating efficient triangle strips (http://www.codercorner.com/Strips.htm)

CGTalk Moderation
12-01-2006, 05:44 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.