Horde3D
http://www.horde3d.org/forums/

Problems with wrong pathes in Collada converter
http://www.horde3d.org/forums/viewtopic.php?f=3&t=1214
Page 1 of 1

Author:  Siavash [ 10.08.2010, 08:09 ]
Post subject:  Problems with wrong pathes in Collada converter

Hi, there is a few problem with the Collada converter related to file paths that makes the converter and XML parser to fail write and read files. for example :
Code:
./C:\ourModel.dae
is passed instead of :
Code:
C:\ourModel.dae
and same problem for the outputs. Diff of the main.cpp is included.

Best Regards, Siavash.

Attachments:
File comment: ColladaConverter/main.cpp - Patch
Collada Converter Patch.zip [642 Bytes]
Downloaded 941 times

Author:  Volker [ 11.08.2010, 14:33 ]
Post subject:  Re: Problems with wrong pathes in Collada converter

I did come across this problem too and solved it a bit differently. I have tested it only under windows but it should make drag n drop possible again and make debugging a bit easier.

The patch also contains some changes for the ColladaConv.bat file, that let you convert models dragged onto the batch file to be converted right into the samples content directory.

Attachments:
File comment: Error handling and Drag n Drop for ColladaConverter
ColladaConverter.patch [3.29 KiB]
Downloaded 1020 times

Author:  marciano [ 14.08.2010, 13:51 ]
Post subject:  Re: Problems with wrong pathes in Collada converter

Although drag&drop can be very handy, it will not work well in general as ColladaConv does not know the base path to which all resource paths should be relative.

Another thing you could do is creating a small batch file which processes you repository or just a part of it. The following bat file for example, located in Horde's Win32 folder, would compile all models and animations in 'repository' and output them to 'content' where the sample assets are located.

Code:
ColladaConv models -type model -base "../repository" -dest "../content"
ColladaConv animations -type anim -base "../repository" -dest "../content"

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