Horde3D

Next-Generation Graphics Engine
It is currently 19.03.2024, 06:13

All times are UTC + 1 hour




Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: 22.09.2009, 20:08 
Offline
Engine Developer

Joined: 10.09.2006, 15:52
Posts: 1217
We have done a small tweak to ColladaConv to make the whole asset export pipeline more efficient/convenient. There is a new option -dest now to specify the output folder. This is very useful, however a serious annoyance was that ColladaConv has always overwritten materials that were often modified by hand. To avoid this, the new default behavior now is to not overwrite a material file that is already existing. If that is not desired, the argument -forceMat can be used to overwrite all materials.

This is a small change but I think it can save a lot of time since no manual copying of assets is required any more when a model is updated.


Top
 Profile  
Reply with quote  
PostPosted: 01.02.2010, 02:39 
Offline
Engine Developer

Joined: 10.09.2006, 15:52
Posts: 1217
We have prepared a nice ColladaConv update which will improve the whole content pipeline a lot: Instead of just single files, ColladaConv can now process a whole directory tree or even repository. This enables to do full content rebuilds very easily and further reduces the need for copying around files manually.

Being able to do fully automated content builds has a couple of advantages:
  • Less manual work when adding or modifying assets
  • Better multi-platform support: We can produce different output files for different platforms, as would be required for mobile platforms (especially textures)
  • More file-format independence: My favorite one ;) We can optimize the final asset format without having to worry that projects will have to spend hours to reconvert their assets
  • Regression testing of ColladaConv: Whenever there is a change, we can just recompile and test the whole sample repository to see if everything works as expected


Top
 Profile  
Reply with quote  
PostPosted: 30.03.2010, 14:50 
Offline

Joined: 24.03.2010, 10:17
Posts: 55
Hi.

I'm having problems with the latest (SF SVN, rev. 228) ColladaConv.
First problem: On Linux and OSX absolute pathnames start with "/", so ColladaConv bails out at the very start, because it wants the first arg to be a non-option value, which windows-like start with a "/" as well. Former versions of ColladaConv used to have "-" as option value. Certainly this is easy to fix, but here's the
Second problem: Not sure if I understood all the options correctly like "/base" and "/dest"
I'd like to convert a simple DAE file with an absolute path to a dest directory with a absolute path name as well, but I didn't really succeed.
If I don't set the "/base" path, it is assumed to be "./" and then the abs path is added which results in a file-not-found-error.
So, the question is basically: how is the whole thing meant to be with regards to /base and /dest and shouldn't it be possible to convert a single model with abs-path?

Thanks in advance!

Alex


Top
 Profile  
Reply with quote  
PostPosted: 31.03.2010, 01:34 
Offline
Engine Developer

Joined: 10.09.2006, 15:52
Posts: 1217
AlexL wrote:
On Linux and OSX absolute pathnames start with "/", so ColladaConv bails out at the very start, because it wants the first arg to be a non-option value, which windows-like start with a "/" as well. Former versions of ColladaConv used to have "-" as option value.

Good point, this needs to be changed again for cross-platform support.

AlexL wrote:
Not sure if I understood all the options correctly like "/base" and "/dest"

We have yet to update the documentation but here is the intended usage in a nutshell.

The dest path is the directory to which the output is written. The base path specifies the path where your collada files are located (your repository). The input file or directory is relative to the specified base path. The idea is that ColladaConv will recreate the hierarchy under the base path and use that for cross-references of composite resources (a model scene file for example references materials and a geo resource). If you want to use absolute paths, you should always specify a base path.

The following works under Windows:
Code:
ColladaConv models/man/man.dae /base C:\MyRepository /dest C:\MyContentFolder

This will convert the asset C:\MyRepository\models\man\man.dae and write the output to C:\MyContentFolder\models\man\. All resource references for the asset are using the path models/man, for example the scene.xml file references the resource models/man/man.geo


Top
 Profile  
Reply with quote  
PostPosted: 13.04.2010, 12:37 
Offline

Joined: 24.03.2010, 10:17
Posts: 55
Thanks for the explanation.
Also thanks for changing the "/" to "-" option char in svn 234, so asset conversion works for me both on OSX and Linux.


Top
 Profile  
Reply with quote  
PostPosted: 27.06.2010, 19:15 
Offline
Engine Developer

Joined: 10.09.2006, 15:52
Posts: 1217
I finally took the time to update the content pipeline documentation in the svn trunk. Feedback is welcome in case anything is unclear.


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

All times are UTC + 1 hour


Who is online

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