XSI to .MESH Conversion Source Code Released

Hi guys,

Super busy on new stuff but I've had a few requests for this so here it is. Attached is the source for the XSI-.MESH conversion. Many of the #included files come from the XSI SDK which is included in the XSI ModTool. There are also a few simple classes used from the rest of our engine (like Iron::Vector3 and Iron::Mesh::Vertex) but those are very simple and you should be able to reproduce their behavior regardless. You will need them in your own engine anyhow so it won't be wasted time.

http://www.ironcladgames.com/ConvertXSI.cpp

Enjoy!

Blair

8,255 views 7 replies
Reply #1 Top

Oh, and I accidently logged into the wrong account to post that. It is in fact a legit post.

Reply #2 Top

...Interesting...

Reply #3 Top

So I can't find anywhere in that (DumpMeshVertex specifically) where you set the "Color" value of the vertex that appears in the .mesh file.

Im guessing its just set to 0 in the vertex class?

 

Also the cached vert list seems to be processed elsewhere? Im guessing in or after 'SaveMeshData' since you need the normals.

Reply #4 Top

Thanks Blair.

 

Dont be a stranger. Or tell one of your fellow IC'ers to hope on every so often. We like to see yall around.

Reply #5 Top

*Squeals*

Blair is alive! :P

Reply #6 Top

Glad i was sitting down when i saw this.. IC is alive!! TY Blair!

Now which one of you code monkeys is gonna make a 3dsmax plugin out of this? :p

Reply #7 Top

<_<

>_>

Yeah...

 

I wish the file output code was avalible, that would be very nice (just to check some things, my exports seem to work fine... seem.)