Horde3D

Next-Generation Graphics Engine
It is currently 30.11.2024, 13:51

All times are UTC + 1 hour




Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: 15.05.2008, 18:48 
Offline

Joined: 15.05.2008, 05:32
Posts: 46
Location: California
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.


Top
 Profile  
Reply with quote  
PostPosted: 16.05.2008, 19:41 
Offline
Tool Developer

Joined: 13.11.2007, 11:07
Posts: 1150
Location: Germany
No that's currently not supported.


Top
 Profile  
Reply with quote  
PostPosted: 16.05.2008, 19:47 
Offline

Joined: 15.05.2008, 05:32
Posts: 46
Location: California
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?


Top
 Profile  
Reply with quote  
PostPosted: 16.05.2008, 20:20 
Offline
Tool Developer

Joined: 13.11.2007, 11:07
Posts: 1150
Location: Germany
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.


Top
 Profile  
Reply with quote  
PostPosted: 17.05.2008, 00:57 
Offline

Joined: 15.05.2008, 05:32
Posts: 46
Location: California
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?


Top
 Profile  
Reply with quote  
PostPosted: 17.05.2008, 13:14 
Offline
Tool Developer

Joined: 13.11.2007, 11:07
Posts: 1150
Location: Germany
No it has to be a copy, since the method is called recursivly and the child nodes are not allowed to overwrite the vector.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group