Page 1 of 1
Can clarisse support interior mapping shader?

Posted:
Mon May 16, 2022 7:14 pm
by 1mi8
Hi
I try to make a interior mapping shader by oslscriptedshader, but I didn't succeed. I can't write oslscript. The oslscript is correct in some renderer, maybe it's wrong in clarisse.
Can clarisse support interior mapping shader by correct oslscript, or by other way?
Re: Can clarisse support interior mapping shader?

Posted:
Tue May 17, 2022 8:46 pm
by sam
Hi
First, your setup is wrong and you aren't supposed to plug a texture to the shader. The shader expects a file path to a texture. I guess the shader usage is documented where you found it.
This script doesn't seem to work with Angie too. It was already adapted to work for VRay so I guess it will need some adapting too. I sincerely haven't got the time to look at this code to try to find out why it doesn't work.
If you don't know how to write OSL code, I suggest you to find another OSL script that does that. It may work.
Re: Can clarisse support interior mapping shader?

Posted:
Wed May 18, 2022 10:51 pm
by nguiard
Hi,
Sam is right, you simply need to put the filename of the texture instead of plugging a image file node and it works.
There is a more recent version of the shader on the website specified at the beginning of the script. However, it doesn't work directly because it specifies labels with white spaces for each attribute and we don't support it. You either need to remove the labels or to replace the white spaces by underscores.
Hope it helps!
Re: Can clarisse support interior mapping shader?

Posted:
Thu May 19, 2022 11:13 am
by 1mi8
Thanks for Sam and nguiard's reply.
It work.