Horde3D

Next-Generation Graphics Engine
It is currently 16.04.2024, 19:26

All times are UTC + 1 hour




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

Joined: 15.06.2011, 06:49
Posts: 2
Hi, I was using the ColladaCov tool shipped with Horde3D_SDK_1.0.0_Beta4 to covert my dae model to horde model format. After I converted my model,I got the following files,

woman.anim
woman.geo
woman.scene.xml
clothes.material.xml
trousers.material.xml

my model was a woman wearing clothes and trousers,the clothes was textured using a jpg image,and the trousers was colored using pure red color in maya.

the content in [clothes.material.xml] was:
<Material>
<Shader source="shaders/model.shader" />
<ShaderFlag name="_F01_Skinning" />

<Sampler name="albedoMap" map="models/woman/clothes.jpg" />
</Material>
it is exactly right.

but the content in [trousers.material.xml] was:
<Material>
<Shader source="shaders/model.shader" />
<ShaderFlag name="_F01_Skinning" />

</Material>
that looks some strange,where is my trousers's material color?

I am sorry for my poor english,and any reply would be appreciated.
So many thanks,
ieagle.


Top
 Profile  
Reply with quote  
PostPosted: 29.07.2011, 09:35 
Offline

Joined: 17.11.2009, 17:00
Posts: 205
Location: Russia, Moscow
Material colors are not imported through collada converter by default. You should use material color shader, which can be found here and then edit the material. You may also want to read the whole thread that I linked to, because it covers practically the same question as yours.


Top
 Profile  
Reply with quote  
PostPosted: 29.07.2011, 11:32 
Offline

Joined: 15.06.2011, 06:49
Posts: 2
Irdis wrote:
Material colors are not imported through collada converter by default. You should use material color shader, which can be found here and then edit the material. You may also want to read the whole thread that I linked to, because it covers practically the same question as yours.


First of all,thanks for reply.

I have read the whole thread that you showed to me.and I got the way to solve my problem.That is,first I should get an additional shader to process the materal color shading,and then pass my materal color through an uniform in the material xml file.

That seems make sense when I only have several models to convert.but for a large number of models,it would time consuming.I am thinking if .dae file contains model's material color,if it does and if someone makes a patch to the converting tool would be helpful.


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