Page 1 of 1

Mapping basic interior spaces on a simple planar polygon

PostPosted: Mon Dec 05, 2022 6:11 pm
by v-cube
Hello,

I remember having seen this a while back ago here in the forum:

https://www.youtube.com/watch?v=MnuLQM_ ... 263DBazaar

can anybody help me to find it? I think it was an OSL script.

IMHO it would be nice to have this as an easy accessible material type.

Best

Andreas

Re: Mapping basic interior spaces on a simple planar polygon

PostPosted: Mon Dec 05, 2022 6:48 pm
by frankmci
I think this is where I got the free version I have played with, and modified to work in Octane/C4D. It's kind of buggy, but can be made to work.
https://github.com/julsVFX/osl/tree/main/jiWindowBox

There's also this one, based on Julius's same OSL code, but presumably cleaned up better than I could do it. I've bought a copy, but haven't had a chance to test it yet. If it works the way it should, totally worth the $10 if you need it for a project.
https://edgardavey.gumroad.com/l/oslbox

... and nope. Doesn't look like Edgar Davey updated the OSL code to make it a generally applicable shader. It still only works when applied to planes created facing -Z, which makes it a pain to work with in production. To be properly usable, it really needs inputs for axis projection, orientation, etc. This just appears to have Julius's old OSL pre-applied to 22 poly planes with new EXR textures that aren't all that great. Probably best to stick to the free one.

Someone with better understanding of OSL than I should be able to incorporate an OSL[Projection] node to make this a lot more useful.
@calus @milanm ?