OSL: How does one tranform or project?

Maxon Cinema 4D (Export script developed by abstrax, Integrated Plugin developed by aoktar)

Moderators: ChrisHekman, aoktar

Post Reply
EOA
Licensed Customer
Posts: 15
Joined: Thu Oct 06, 2016 7:16 pm

So I'm having some trouble using the osl textures and using them in a practical project

- how does one transform or project these in c4d?

Tried asking in the c4d specific group on facebook, and the general also, with no luck so far. I am siting in C4D with osl node and the wood script which seems to be defaulting to a "xyz/ world"-ish setting - with no projection input options at all... so the texture seemingly can't ie. ever be made to stick to any moving object, in example - if I move the wooden drawer it slides through the wood texture. Unless you do a whole baking process... but then one can't use the generative nature of the osl wood and carve into it with a boole to show the inner structure of the wooden desk.

Anybody have a non destructive solution for this?

I'm sure it must be very simple node I am missing - because seems unlikely anyone would add a "wood script thingy" without being able to actually "stick it" to an object rather than world, right? I mean you can't move or rotate or scale any object in the 3D world like this? Or even make a multi-wood parts thing look natural because all the tiles textures meet up....

It is doable with a 3 dimensional noise with octanes own xyz projected noises to tie those 3D noise to the object space so you can animate with it without baking. So it feels like it should be possible with the osl ones? But still, there are no input points, and the same question seems to have been unanswered for over a year on the general forum here: viewtopic.php?f=9&t=74347

Please help. Or let me know if it impossible so I can stop trying.
hazenkind
Licensed Customer
Posts: 91
Joined: Mon Sep 10, 2018 7:42 am

Try this:
Last edited by hazenkind on Fri Nov 05, 2021 7:41 am, edited 1 time in total.
EOA
Licensed Customer
Posts: 15
Joined: Thu Oct 06, 2016 7:16 pm

hazenkind wrote:Try this:
OctaneWood.txt
Thanks so much, I though it was faulty when it crashed my original scene, but it works beautifully when I input it into a fresh scene. Just what I needed. - Should be there by default! You are a lifesaver. Have a nice day.
hazenkind
Licensed Customer
Posts: 91
Joined: Mon Sep 10, 2018 7:42 am

EOA wrote:
hazenkind wrote:Try this:
OctaneWood.txt
Should be there by default! You are a lifesaver. Have a nice day.
Yepp, OSL need some more Love by Otoy. Cause not everybody is an developer :D Anyway, have Fun with it.
Post Reply

Return to “Maxon Cinema 4D”