Horde3D

Next-Generation Graphics Engine
It is currently 22.11.2024, 01:27

All times are UTC + 1 hour




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: 06.09.2015, 11:31 
Offline

Joined: 05.09.2015, 07:02
Posts: 1
Hello.

I was reading thru the code for H3D collada converter and found a strange line of code regarding adjusting for Z_UP flag in collada.
Code:
if( !_daeDoc.y_up )
{   
   swap( v.pos.y, v.pos.z );
   v.pos.z *= -1;
}

Swap of z and y coordinate is obvious, but the negation of z is strange.

I was importing a Blender model with a modified H3D converter for my own engine and everything worked fine, skeletal animations, meshes. The only thing wrong was that the model was pointing in the negative z direction when it should point in positive z direction. Can than be because of that line of code?


Top
 Profile  
Reply with quote  
PostPosted: 06.09.2015, 21:56 
Offline
Tool Developer

Joined: 13.11.2007, 11:07
Posts: 1150
Location: Germany
Probably yes. I think the reason for this line was left handed vs. right handed coordinate system. But it has been a long time ago that I've ocupied myself with that code.


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

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 11 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:  
Powered by phpBB® Forum Software © phpBB Group