Horde3D
http://horde3d.org/forums/

Mirrored geometry from 3dsMax
http://horde3d.org/forums/viewtopic.php?f=2&t=330
Page 1 of 1

Author:  roarflolo [ 15.05.2008, 18:48 ]
Post subject:  Mirrored geometry from 3dsMax

Does the collada converter support mirrored geometry from 3dsMax. In 3dsMax these are done with negative scaling. In my own tools I detect that and make a mirrored copy of the geometry.

Author:  Volker [ 16.05.2008, 19:41 ]
Post subject:  Re: Mirrored geometry from 3dsMax

No that's currently not supported.

Author:  roarflolo [ 16.05.2008, 19:47 ]
Post subject:  Re: Mirrored geometry from 3dsMax

I'm going to add it, any hints as to where would be the best place to hook it in?

Go through instances early in Converter::convertModel() to duplicate-and-mirror meshes that are referenced by instances with a mirrored matrix?

Author:  Volker [ 16.05.2008, 20:20 ]
Post subject:  Re: Mirrored geometry from 3dsMax

That would be great,... I can't tell you exactly where to start, maybe arount line 500 in the converter.cpp, but you have to make sure that at the end you have a positive scale and a correct tangent space basis.

Author:  roarflolo [ 17.05.2008, 00:57 ]
Post subject:  Re: Mirrored geometry from 3dsMax

By the way, for this function:

Code:
SceneNode *Converter::processNode( ColladaDocument &doc, DaeNode &node, SceneNode *parentNode, Matrix4f transAccum, vector< Matrix4f > animTransAccum )


do you mean to pass a copy of the animTransAccum vector or a reference?

Author:  Volker [ 17.05.2008, 13:14 ]
Post subject:  Re: Mirrored geometry from 3dsMax

No it has to be a copy, since the method is called recursivly and the child nodes are not allowed to overwrite the vector.

Page 1 of 1 All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/