Horde3D http://horde3d.org/forums/ |
|
About the ColladaCov tool http://horde3d.org/forums/viewtopic.php?f=1&t=1553 |
Page 1 of 1 |
Author: | ieagle [ 29.07.2011, 08:04 ] |
Post subject: | About the ColladaCov tool |
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. |
Author: | Irdis [ 29.07.2011, 09:35 ] |
Post subject: | Re: About the ColladaCov tool |
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. |
Author: | ieagle [ 29.07.2011, 11:32 ] |
Post subject: | Re: About the ColladaCov tool |
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. |
Page 1 of 1 | All times are UTC + 1 hour |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |