Collada Importer tS7.61

free scripts, plugins, models, textures
User avatar
trueBlue
Captain
Posts: 5216
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: Collada Importer tS7.61

Post by trueBlue »

Success except for the missing eyes, fur is reversed, and is more shinny.
Used your WolfUVFix.RsObj with D3D Material Converter - Scene Instancing
Wolf Fixed Fur reversed.png
User avatar
trueBlue
Captain
Posts: 5216
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: Collada Importer tS7.61

Post by trueBlue »

I notice the differences with the DefaultModelShader in the D3D Material Converter and your DefaultModelTextureShader in the Collada Importer
The D3D Material Converter's DefaultModelShader has SpecularColor and the Collada Importer's DefaultModelTextureShader does not
DefaultModelShader.png
DefaultModelShader.png (8.95 KiB) Viewed 614 times
You have an Input for it but it is not being used
You are using a bitmap that is the same as the Image Texture shader
This increases the size of the object
It is not using compression as well
SPECULARCOLOR.png
DAE has specular color
<specular>
<color>1.0 1.0 1.0 1.0</color>
</specular>
User avatar
trueBlue
Captain
Posts: 5216
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: Collada Importer tS7.61

Post by trueBlue »

Not sure if this is from using your Collada Exporter or Importer
Infinite lights are being converted to Directional lights
Directional.png
Directional.png (10.75 KiB) Viewed 555 times
Import Collada Scene.png
.
If I replace the Directional lights with the C:\trueSpace761Std\Scripts\preobjects/light03 and light04, it looks better
Infinite lights.png
.
Enable Shadow is not working for the spotlights
IE: They are always enabled
User avatar
trueBlue
Captain
Posts: 5216
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: Collada Importer tS7.61

Post by trueBlue »

Imported the original Wolf dae again
Actor Animation.png
.
I thought you had this fixed in the previous version
User avatar
clintonman
Captain
Posts: 5432
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: Collada Importer tS7.61

Post by clintonman »

trueBlue wrote: 15 Aug 2023, 19:00 Imported the original Wolf dae again
Actor Animation.png
.
I thought you had this fixed in the previous version
I assume you're talking about it facing downward?

If so here it is in Blender and Lightwave.

WolfBlender.jpg
Blender facing down, bad skinning.

WolfLightwave.jpg
Lightwave facing down, no animation.
Clinton Reese

http://clintons3d.com
User avatar
trueBlue
Captain
Posts: 5216
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: Collada Importer tS7.61

Post by trueBlue »

I see, thanks for sharing
User avatar
clintonman
Captain
Posts: 5432
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: Collada Importer tS7.61

Post by clintonman »

trueBlue wrote: 12 Aug 2023, 18:05 I notice the differences with the DefaultModelShader in the D3D Material Converter and your DefaultModelTextureShader in the Collada Importer
The D3D Material Converter's DefaultModelShader has SpecularColor and the Collada Importer's DefaultModelTextureShader does not
DefaultModelShader.png
You have an Input for it but it is not being used
You are using a bitmap that is the same as the Image Texture shader
This increases the size of the object
It is not using compression as well
SPECULARCOLOR.png

DAE has specular color
<specular>
<color>1.0 1.0 1.0 1.0</color>
</specular>
For collada you can only have a color or a texture, not both. So you can't have a specular color and a specular texture.
Clinton Reese

http://clintons3d.com
User avatar
trueBlue
Captain
Posts: 5216
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: Collada Importer tS7.61

Post by trueBlue »

Here is a HLSL Script the gets SpecularColor from an image

Materials - DX9 library
D3D Ultimate Mapped Material
SpecReflectSchlickMap
Schlick - HLSL Script Brick

Code: Select all

void NewFunction(in float3 normal, in float3 lightvec, in float3 eye, in float4 SpecularColor, in float4 DiffuseColor, in float SpecularCoef, in float4 lightcolor, out float4 result)
{
float3 Reflection = normalize(2.0 * normal * dot(normal,lightvec) - lightvec);
float RdotV = max(dot(Reflection, eye),0.0);
float SchlickTerm = RdotV / (SpecularCoef - (SpecularCoef * RdotV) + RdotV);
float4 Diffuse = DiffuseColor * max(0.0f,dot(lightvec, normal));
float4 Specular = SpecularColor * SchlickTerm;
result.xyz = (Diffuse + Specular) * lightcolor;
result.a = DiffuseColor.a;
}
User avatar
trueBlue
Captain
Posts: 5216
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: Collada Importer tS7.61

Post by trueBlue »

Experimenting with the Dino with painted vertices
Dino.png
Collada Enhansed Export
Collada Import is missing the SolidVertexColorShader, FeederGPUVertexShader, and Gooch2Shader 'Model shader'
ImportDinoDAE.png
.
What did I do wrong?
Attachments
Dino.RsObj
(397.78 KiB) Downloaded 47 times
User avatar
clintonman
Captain
Posts: 5432
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: Collada Importer tS7.61

Post by clintonman »

trueBlue wrote: 21 Aug 2023, 15:32 Experimenting with the Dino with painted vertices
Dino.png
Collada Enhansed Export
Collada Import is missing the SolidVertexColorShader, FeederGPUVertexShader, and Gooch2Shader 'Model shader'
ImportDinoDAE.png
.
What did I do wrong?
The Collada file format has no concept of Gooch2Shader model shader. It only knows basic blinn, lambert and phong model shaders.
It has no concept for vertex shaders. There are no vertex shaders in collada.
For color shaders it only understands colors and textures, nothing beyond that.
Clinton Reese

http://clintons3d.com
Post Reply