Page 2 of 2

Re: OSL Shader like VRoom - Check it out

Posted: Thu Apr 26, 2018 7:59 pm
by baltort
pxlntwrk wrote:Great ! Thank you very much ! ;)
Moreover in cinema 4d, there is an input slot for the template!
Image
The C4D solution is very elegant, but I can't see a way to carry it over to LW. As far as I can see, there's no way to pass a texture filename as a string into a LW node. You can pass a texture as colour information, but this relies on the UV coordinates of the sample point and delivers a single pixel sample of info rather than the whole texture. The box room idea needs multiple samples for the walls, mid-ground, and curtain layer to make a single output sample.

I shall investigate further to see if it's workable!

J.

Re: OSL Shader like VRoom - Check it out

Posted: Thu Apr 26, 2018 11:37 pm
by juanjgon
Thanks! Really cool. Yes, in LW we have the limitation related to the fact that there is not a "string" type node. Let me think about it. I suppose that I could add a custom node type to support this kind of parameters.

Thanks,
-Juanjo

Re: OSL Shader like VRoom - Check it out

Posted: Sat Apr 28, 2018 2:42 pm
by KVNOODLES
It could be so great !

Re: OSL Shader like VRoom - Check it out

Posted: Sat Aug 25, 2018 9:04 am
by 3dworks
juanjgon wrote:Thanks! Really cool. Yes, in LW we have the limitation related to the fact that there is not a "string" type node. Let me think about it. I suppose that I could add a custom node type to support this kind of parameters.

Thanks,
-Juanjo
is this still on the agenda? would be great! :-)

Re: OSL Shader like VRoom - Check it out

Posted: Wed Nov 21, 2018 2:54 pm
by nico_cad
hi guys, we have need your help.
in lw native can use a random image on objetc and obtain this render.
if want similar effect in octane what's the procedure?
I do not understand how to use osl.

thanks for help :D

Re: OSL Shader like VRoom - Check it out

Posted: Wed Nov 21, 2018 5:45 pm
by nico_cad
baltort wrote:Hi all,

I've had a bit of a hack at the code and got it working at my end. I'm hardcoding the texture into the OSL file, so you'll need to correct for your own file location. If you're on windows then make sure you use forward slashes in the path as shown. I've also had to tweak the co-ordinate system and modify the boolean pins to integers. All credit to Julius Ihle for making it in the first place!

Cheers,

James
setup.jpg

james!!!! how can use it? i see only my cube?!?!?!?!?
can share the scene?
:o :o

Re: OSL Shader like VRoom - Check it out

Posted: Thu Nov 22, 2018 9:15 am
by nico_cad
ok works fine!!! now is necessary randomize the image!! :P