Horde3D

Next-Generation Graphics Engine
It is currently 29.03.2024, 15:27

All times are UTC + 1 hour




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: 16.05.2008, 07:44 
Offline

Joined: 15.05.2008, 05:32
Posts: 46
Location: California
This is from the log file:

5.047 Loading resource 'palm%20tree%2001.tif'
5.047 Resource 'palm%20tree%2001.tif' of type 7: No data loaded (file not found?)

The converter should be able to handle this, no?


Top
 Profile  
Reply with quote  
PostPosted: 16.05.2008, 09:01 
Offline

Joined: 15.05.2008, 05:32
Posts: 46
Location: California
I added a function to Collada Converter utils.cpp.h which does URL Decoding (source from here: http://www.koders.com/cpp/fid6315325A03 ... B17DD.aspx) and in DaeImage::parse I replaced

fileName = extractFileName( fileName, true );

with
fileName = extractFileName( URLDecode(fileName), true );

and that fixes the problem. There may be other places in the code where strings should be URL Decoded.


Top
 Profile  
Reply with quote  
PostPosted: 16.05.2008, 10:18 
Offline
Tool Developer

Joined: 13.11.2007, 11:07
Posts: 1150
Location: Germany
Are the init_from nodes in collada ensured to be url encoded? I couldn't find any information about that in the Collada specifications. I'm asking because if the user has an image called test%20.png the urldecode would convert that to test .png which may not be what was intended.


Top
 Profile  
Reply with quote  
PostPosted: 16.05.2008, 16:46 
Offline

Joined: 15.05.2008, 05:32
Posts: 46
Location: California
I don't know. Feeling ColladaMax v3.05B URL Encodes those.

Besides, I think having a file called "my texture.png" is way more common than having a file called "my%20texture.png". :)


Top
 Profile  
Reply with quote  
PostPosted: 16.05.2008, 19:49 
Offline
Tool Developer

Joined: 13.11.2007, 11:07
Posts: 1150
Location: Germany
Ok, I integrated it into the SVN! Thanks for pointing that out.


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

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 23 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