๐งต Untitled Thread
Anonymous at Mon, 28 Oct 2024 13:42:29 UTC No. 1000240
What can you do in OSL that you can't do in a shader node graph? Why would you use OSL?
Anonymous at Mon, 28 Oct 2024 14:31:44 UTC No. 1000242
>>1000240
https://docs.blender.org/manual/en/
> OSL is different from, for example, RSL or GLSL, in that it does not have a light loop. There is no access to lights in the scene, and the material must be built from closures that are implemented in the renderer itself. This is more limited, but also makes it possible for the renderer to do optimizations and ensure all shaders can be importance sampled.
So it seems like just a limited variant of shaders.
Anonymous at Mon, 28 Oct 2024 16:45:13 UTC No. 1000251
>>1000242
as I understand it, OSL includes a lot of things including lights, but, blender does not implement these things in their version of OSL. Correct me if I am wrong. To do these things you need to modify the blender C++.
Anonymous at Tue, 29 Oct 2024 05:53:08 UTC No. 1000298
a closure is just a built in shader BSDF "node"
regular blender works in the same way where blender provides you with a bunch of BSDFs where you can control the parameters of them, mix and match them and so on, but in both cases you cant change what it does under the hood
really there isnt any advantage to it
Anonymous at Tue, 29 Oct 2024 12:20:00 UTC No. 1000319
>>1000298
>really there isnt any advantage to it
I always thought that with OSL you could inject outside functions into your shading from other libraries not included with blender and also use things like for loops and if statements
Anonymous at Tue, 29 Oct 2024 13:37:40 UTC No. 1000323
>>1000319
It's probably best to grab a fully open-ended 3rd party renderer like MALT to do that
https://malt3d.com/
Anonymous at Tue, 29 Oct 2024 13:59:14 UTC No. 1000324
>>1000323
I don't need to introduce some no name software / malware onto my carefully constructed $5k+ machine.
Anonymous at Tue, 29 Oct 2024 14:25:04 UTC No. 1000327
>>1000324
It's probably the most popular alt renderer for Blender. It feels a bit janky at first though, like, it's running some python and opens an empty cmd side window to do some internal stuff.
Anonymous at Tue, 29 Oct 2024 14:55:21 UTC No. 1000329
>>1000327
definitely not downloading that crap