3
$\begingroup$

The question is quite open, with a fundamental question, the OSL nodes are fantastic, but they have a great limitation, the fact that they don't work with "GPU" type renderings and moreover it doesn't seem to work at all on Eevee render. So I was wondering if it was possible somehow (Maybe with the help of some makeup) Convert an OSL node script to a blender node / nodes. This is a question to be directed to better research on the subject.

$\endgroup$
2
  • 3
    $\begingroup$ Some, you can. One thing you can do in OSL that you can't, in nodes, is cast your own probing rays for sampling the scene in some way, If your node depends on that, no go. $\endgroup$
    – Robin Betts
    Commented Apr 8, 2020 at 17:51
  • $\begingroup$ Is there any tool that does this, or do you have to study osl well? It looks very complicated $\endgroup$
    – Noob Cat
    Commented Apr 9, 2020 at 16:10

1 Answer 1

3
+100
$\begingroup$

There was an old project that does this:

https://github.com/LazyDodo/oslpy

It is better to wait for an EEVEE GLSL node in future and rewrite the shader in GLSL

$\endgroup$
2
  • $\begingroup$ note: if you want to convert a specific shader, it might be done manually, for loops though things have to be repeated manually $\endgroup$
    – Eyad Ahmed
    Commented Apr 12, 2022 at 19:31
  • 1
    $\begingroup$ Sounds interesting but sadly this doesn't seem to work very well $\endgroup$
    – Noob Cat
    Commented Apr 12, 2022 at 20:05

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .