Horde3D

Next-Generation Graphics Engine
It is currently 03.12.2021, 02:18

All times are UTC + 1 hour




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: 10.08.2010, 08:09 
Offline

Joined: 21.08.2008, 11:44
Posts: 354
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 424 times
Top
 Profile  
Reply with quote  
PostPosted: 11.08.2010, 14:33 
Offline
Tool Developer

Joined: 13.11.2007, 11:07
Posts: 1149
Location: Germany
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 528 times
Top
 Profile  
Reply with quote  
PostPosted: 14.08.2010, 13:51 
Offline
Engine Developer

Joined: 10.09.2006, 15:52
Posts: 1217
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"


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 2 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