Horde3D

Next-Generation Graphics Engine
It is currently 16.12.2017, 02:33

All times are UTC + 1 hour




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: 27.04.2010, 15:36 
Offline

Joined: 24.03.2010, 10:17
Posts: 55
During asset conversion we noticed that the ColladaConverter does not produce binary-equal files with the same input file.
This caused problem's for us because our Source Control System (Perforce) always noted a change within the file and wanted to update the file.

The reason: SceneNode's and MorphTarget's "name" (char name[256]) not completely zeroed.

The attached patch zeroes-out the "name" member using memset in the respective c'tors (which seemed cleaner to me than doing this during the strcpy), so the same input file always results in identical output files (including animation).


Attachments:
collada_identical_files_patch.txt [670 Bytes]
Downloaded 191 times
Top
 Profile  
Reply with quote  
PostPosted: 28.04.2010, 07:33 
Offline
Tool Developer

Joined: 13.11.2007, 11:07
Posts: 1149
Location: Germany
Thanks for the patch! I integrated it into the SVN(s)


Top
 Profile  
Reply with quote  
PostPosted: 28.04.2010, 21:28 
Offline
Engine Developer

Joined: 10.09.2006, 15:52
Posts: 1217
Thanks Alex, this is indeed very useful, also for QA'ing ColladaConv (regression testing after refactorings).


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

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


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