OSL raytype contribution

Post, discuss and share handy resources like textures, models and HDRI maps in this forum.
Forum rules
Please do not post any material that is copyrighted or restricted from public use in any way. OTOY NZ LTD and it's forum members are not liable for any copyright infringements on material in this forum. Please contact us if this is the case and we will remove the material in question.
bigskyedit
Licensed Customer
Posts: 20
Joined: Tue Jul 19, 2016 4:29 pm

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.
J3DM
Posts: 1
Joined: Wed Apr 29, 2020 6:20 am

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!
iamfoss
Licensed Customer
Posts: 2
Joined: Fri Feb 11, 2022 5:53 pm

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
ceen
Licensed Customer
Posts: 110
Joined: Wed Jun 10, 2015 9:43 pm

Yes this is not working in C4D Plugin right?
3080ti
User avatar
bepeg4d
Octane Guru
Posts: 10325
Joined: Wed Jun 02, 2010 6:02 am
Location: Italy
Contact:

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
Post Reply

Return to “Resources and Sharing”