Page 1 of 1

shading variable with TextureMapFile

Unread postPosted: Sat Apr 18, 2020 12:01 am
by fudoh
Hi!
Is it possible to assign an already imported TextureMapFile as source in a shading variable?

Something like:
diff = "project://scene/Nor/TEX_Nor/NorTest_Skin_Diffuse"

Direkt link to the harddisk works as expected:
diff = "F:/TEX_Nor/NorTest_Skin_Diffuse"


Greetings,
René

Re: shading variable with TextureMapFile

Unread postPosted: Mon Apr 20, 2020 9:28 am
by dboude
Hi,

No it's not possible.

Cheers

Re: shading variable with TextureMapFile

Unread postPosted: Mon Apr 20, 2020 9:36 am
by sam
you can mimic this using a texture switch driven by a shading variable. This is how this should be done (or with a blend...). Shading Variables adds a new dimension to values, doing what you propose would add a new dimension since the shading graph would have multiple representations too...

Re: shading variable with TextureMapFile

Unread postPosted: Wed Apr 22, 2020 12:13 pm
by tom_tm
Hi Sam,
may you provide a sample how we can mimic this by a switch?
I don't get how it should be done :-(

Thanks Tom

Re: shading variable with TextureMapFile

Unread postPosted: Wed Apr 22, 2020 12:52 pm
by dboude
Hi,

Here is an example. The shading variable values are defined in the material linker but it's the same setup if you set them in a shading layer.

Switch_Shading_Variable.project
(43.1 KiB) Downloaded 109 times


Cheers