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 »

I tried an object with trueSpace's Binn Model Shader

Collada Enhansed Export

Error

Code: Select all

ERR   Source object: /Scripts/CustomCommands/ColladaPostProcessor/RunOptions Error: Microsoft JScript runtime error Description: Invalid procedure call or argument Error code: 0x800a0005 - (null) Line: 605, Char: 7 Script text:  color = Node.Value(textureNode, "SpecularColor");
Status Message is stuck "fix textures"
The CubeBlinn folder did not have the dae file
I used the other trueSpace's dae
It imported but not with the Binn Model Shader

Tried again, this time no error
Attachments
CubeBlinn.RsObj
(120.37 KiB) Downloaded 49 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: 22 Aug 2023, 19:30 I tried an object with trueSpace's Binn Model Shader

Collada Enhansed Export

Error

Code: Select all

ERR   Source object: /Scripts/CustomCommands/ColladaPostProcessor/RunOptions Error: Microsoft JScript runtime error Description: Invalid procedure call or argument Error code: 0x800a0005 - (null) Line: 605, Char: 7 Script text:  color = Node.Value(textureNode, "SpecularColor");
Status Message is stuck "fix textures"
The CubeBlinn folder did not have the dae file
I used the other trueSpace's dae
It imported but not with the Binn Model Shader

Tried again, this time no error
Added a check for SpecularColor connector to avoid the error.
Truespace isn't exporting the blinn model shader. Looks like maybe everything exports as phong. The enhanced export is not fixing it or translating it to blinn.
Attachments
ColladaPostProcessor.RsObj
(272.96 KiB) Downloaded 50 times
Clinton Reese

http://clintons3d.com
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 »

Update August 23

No script changes

rsx plugin version 1638426
fixed translation animation bug - no motion in XYZ directions
import collada directional light as a truespace infinite light instead of a truespace directional light
texture model shader checked the bitmap compression option and removed the unused InputColor node

http://clintons3d.com/plugins/truespace ... mport.html
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 »

Is the run option "NamedAndInstancedOnly" needed?
It looks like you are creating the Name node for materials with or without NamedAndInstancedOnly checked or unchecked
Best results from scene instanced and named materials

The name of the materials can be set by adding a node that has a "Name" input connector and exporting that connector to the D3D material node.
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: 24 Aug 2023, 15:11 Is the run option "NamedAndInstancedOnly" needed?
It looks like you are creating the Name node for materials with or without NamedAndInstancedOnly checked or unchecked
It's required for full processing of instanced materials that have been named.
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 »

Maybe I am doing this wrong
Selected Materials, Cube, Cube,1, and Sphere
Saved as Collada Enhanced with NamedAndInstancedOnly checked

The Sphere's DefaultModelTextureShader (Fish) is not being applied even though the image was exported
Missing fish.png
.
Two Cubes and Sphere with Scene Instanced
Cubes material Name = Cubes
Sphere material Name = Sphere
Attachments
Space 3D.RsScn
(662.41 KiB) Downloaded 49 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: 24 Aug 2023, 16:40 Maybe I am doing this wrong
Selected Materials, Cube, Cube,1, and Sphere
Saved as Collada Enhanced with NamedAndInstancedOnly checked

The Sphere's DefaultModelTextureShader (Fish) is not being applied even though the image was exported
Missing fish.png
.
Two Cubes and Sphere with Scene Instanced
Cubes material Name = Cubes
Sphere material Name = Sphere
DAEinBlender.jpg

Imported to Blender. Looks ok to me.
"The Sphere's DefaultModelTextureShader (Fish) is not being applied", what are you looking at that makes you say that?
Are you using the dae file inside the folder with the images?
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 »

clintonman wrote: 24 Aug 2023, 17:02
trueBlue wrote: 24 Aug 2023, 16:40 Maybe I am doing this wrong
Selected Materials, Cube, Cube,1, and Sphere
Saved as Collada Enhanced with NamedAndInstancedOnly checked

The Sphere's DefaultModelTextureShader (Fish) is not being applied even though the image was exported
Missing fish.png
.
Two Cubes and Sphere with Scene Instanced
Cubes material Name = Cubes
Sphere material Name = Sphere
DAEinBlender.jpg


Imported to Blender. Looks ok to me.
"The Sphere's DefaultModelTextureShader (Fish) is not being applied", what are you looking at that makes you say that?
Are you using the dae file inside the folder with the images?
1.) Look in Materials/Materials, 1
Missing Fish.png
.
2.) Yes

Imported into trueSpace
Imported into trueSpace.png
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 »

Ok, now I understand. It did not import into trueSpace is what you're saying.
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 »

clintonman wrote: 24 Aug 2023, 17:46 Ok, now I understand. It did not import into trueSpace is what you're saying.
Looks like your FBX Importer does add and apply the DefaultModelTextureShader image
Post Reply