Page 2 of 2

Re: Warp or Distort OSL C4D Noises

PostPosted: Tue Mar 05, 2024 7:59 pm
by SSmolak
It all depends on texture space. Transform is done inside node.
nois_spac.jpg

Re: Warp or Distort OSL C4D Noises

PostPosted: Wed Mar 06, 2024 5:46 am
by astrofalcon
As far as I can tell the transform and projection ports on the C4D OSL noises simply do not work. I'm just trying to distort or warp one C4D noise with another but in world space / texture space. The simplest option would be if you could expose Global Scale and Relative Scale as inputs on the C4D noises.

I know this is all works in UV space but it does not in world space.

Octane.jpg

Re: Warp or Distort OSL C4D Noises

PostPosted: Wed Mar 06, 2024 10:42 am
by jobigoud
Please do try with the "Noise 4D" node. It is not an old version, it is the implementation of the C4D noises that is integrated into Octane core engine. This should work with the projection.

Re: Warp or Distort OSL C4D Noises

PostPosted: Wed Mar 06, 2024 4:17 pm
by astrofalcon
Thank you for your help with this jobigoud but the issue all along with the other version of the C4D noise is that it only works in 2D space or UV space. The other C4D noise works in 3D world space but I can not distort or warp this version...

2D Noise.jpg


3D Noise.jpg

Re: Warp or Distort OSL C4D Noises

PostPosted: Wed Mar 06, 2024 5:15 pm
by jobigoud
The noise uses the 3D position of the shading point as an input but if you use "Texture space" then this position is projected to the object UV before being passed to the function. So in this case each plane has the same noise as I imagine they all have the same UVs. If you use World space it should work.

Re: Warp or Distort OSL C4D Noises

PostPosted: Wed Mar 06, 2024 5:45 pm
by astrofalcon
Thank you again for your time jobigoud but there are not any options in that version of the C4D noise to change the texture space. Sorry on my other screen shot the incorrect attributes where being displayed from the OSL version of the C4D Noise. Something is broken here as I've tried doing this multiple times over the years never with any success in Octane. Octane simply can not do this in C4D with these procedural noises. Maybe aoktar can shed some light on this issue.

Octane C4D Noise Bad.jpg

Re: Warp or Distort OSL C4D Noises

PostPosted: Wed Mar 06, 2024 5:55 pm
by jobigoud
Even if you now add the Projection node, for example XYZ to UVW? The projection node is what does this conversion in Octane. (By default the XYZ to UVW is set to Object space, change it to World space).

Re: Warp or Distort OSL C4D Noises

PostPosted: Wed Mar 06, 2024 7:42 pm
by astrofalcon
Thats it! jobigoud!! The whole time I was missing the position parameter because it was folded up! Thank you! I'll keep testing your OSL projection nodes and report back with any issues. Thank you!!

- Shawn

Re: Warp or Distort OSL C4D Noises

PostPosted: Wed Mar 06, 2024 11:44 pm
by SSmolak
How did you connect output of this OSL node to Projection input of Noise4D ? This connection doesn't work for me.

Re: Warp or Distort OSL C4D Noises

PostPosted: Thu Mar 07, 2024 3:25 am
by astrofalcon
You can set a Projection node (Texture Projection) to OSL and then I'm just using the OSL scripts jobigoud created. The trick is to use the green version of the C4D noises. Not the maroon OSL version of the C4D noise. This one does not work for custom projections.