Thread: Pivot script
View Single Post
Old 12th January 2015, 11:58 PM   #6
jentron
Senior Member
Professional user
 
Join Date: Nov 2007
Posts: 139
Default Re: Pivot script

Quote:
Originally Posted by Andy View Post
That works for the translate tag, at least in the THREE.js collada loader...
Next request, there is a <shininess> tag. I think you can just export the same number as in AC3D:
Code:
<technique sid="common">
<phong>
<diffuse>
<color>0.627451 0.250980 0.250980 1.000000</color>
</diffuse>
<specular>
<color>0.427000 0.541000 0.612000 1.000000</color>
</specular>
<reflective>
<color>1.000000 1.000000 1.000000 1.000000</color>
</reflective>
<reflectivity>
<float>1.0000000</float>
</reflectivity>
<transparent opaque="A_ONE">
<color>0.000000 0.000000 0.000000 1.000000</color>
</transparent>
<shininess>
<float>50.0000000</float>
</shininess>
</phong>
</technique>
There is also a transparency tag (1 is fully transparent) and the transparent color plays somehow, too.
Code:
<technique sid="common">
<lambert>
<diffuse>
<color>0.020000 0.020000 0.020000 1.000000</color>
</diffuse>
<specular>
<color>0.800000 0.800000 0.800000 1.000000</color>
</specular>
<reflective>
<color>1.000000 1.000000 1.000000 1.000000</color>
</reflective>
<reflectivity>
<float>1.000000</float>
</reflectivity>
<transparent opaque="A_ONE">
<color>0.900000 0.900000 1.000000 1.000000</color>
</transparent>
<transparency>
<float>0.9</float>
</transparency> 
</lambert>
</technique>
jentron is offline   Reply With Quote