thanks. But i don’t understand. Which one is the right scripts the 1st or the 2nd (I see 2 pieces of code )?
I did the following : I copied one of the code in the script editor, gave it a name.
Then created a script node and selected my script name.
But i have an error “OSL script compilation failed, see console for error”
May be I copied the wrong code.
Can you give me the right one please.
Sorry for bothering you I am a newbie in blender.
Hello, sorry for reviving this topic, but now that we have OSL in GPU I consider it worth to revisit it.
I have been trying but I get errors when using gpu?
Maybe osl gurus can take a look again.
if there is any way to exclude/include objects from AO, or if ambient occlusion node would have an object selection input, this maybe can be workaround in some cases… blender is robust and getting stronger every day… but I cannot live without the rendertime boolean - vraydistancetex…
Hi there, is there any implementation of this in newer versions of Blender? Or at least some kind of workaround that would give similar results that work with GPU compute?
I’m not a node/math wizard so I don’t have the slightest clue how to implement this