Page 2 of 2

Re: OSL raytype contribution

PostPosted: Fri May 08, 2020 4:51 pm
by bigskyedit
This is amazing. Thank you.
Is there a way to have a material to show reflections from an environment, but have another object not have the reflections from environment, but still have other reflections? Basically I want to control what objects are getting reflections from the environment.

Re: OSL raytype contribution

PostPosted: Thu May 28, 2020 6:55 pm
by J3DM
Hi. Yes this is great fitch. If we say I have metal this function hides it from specular but also from itself ( reflection&refraction) . If I want to specify from what object with the second material I want to hide rays. Can anyone help me in this matter. Thanks!

Re: OSL raytype contribution

PostPosted: Sat Feb 26, 2022 4:50 pm
by iamfoss
Thanks for sharing this tool! Hoping i could get some direction here. I have spent hours trying to figure out how to apply this to my scene. There is a skull that is receiving color from a greyscale light kit pro object that is colored - not a light its an s-curve. its meant to just be background but is affecting how everything looks do to the color cast.

1) I created an octane diffuse material and colored it teal, applied it to the S object.
2) opened the node editor, and added the new octane material as well as the OSL Texture node
3) copied the code below, and pasted it into the code section of the OSL texture
4) stuck - i cant seem to figure out how to link it to the color objects material to stop the casting.

Any advice or help would be greatly appreciated! Thanks guys

Photos attached

Image
Image

Re: OSL raytype contribution

PostPosted: Fri May 13, 2022 7:59 am
by ceen
Yes this is not working in C4D Plugin right?

Re: OSL raytype contribution

PostPosted: Mon May 16, 2022 7:37 am
by bepeg4d
Hi,
you don't need to start with a generic OSL texture node anymore, now RayType is included in Octane/c4doctane, and it is called RaySwitch:
https://docs.otoy.com/cinema4d/RaySwitch.html

The above issue should be solved with Light Linking, not RaySwitch, in my opinion :roll:
https://docs.otoy.com/cinema4d/Workingw ... nking.html

ciao,
Beppe