Horde3D
http://horde3d.org/forums/

ColladaConverter - Non-identical output with identical input
http://horde3d.org/forums/viewtopic.php?f=11&t=1154
Page 1 of 1

Author:  AlexL [ 27.04.2010, 15:36 ]
Post subject:  ColladaConverter - Non-identical output with identical input

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 973 times

Author:  Volker [ 28.04.2010, 07:33 ]
Post subject:  Re: ColladaConverter - Non-identical output with identical input

Thanks for the patch! I integrated it into the SVN(s)

Author:  marciano [ 28.04.2010, 21:28 ]
Post subject:  Re: ColladaConverter - Non-identical output with identical input

Thanks Alex, this is indeed very useful, also for QA'ing ColladaConv (regression testing after refactorings).

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