Warp or Distort OSL C4D Noises

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

Moderators: ChrisHekman, aoktar

User avatar
SSmolak
Licensed Customer
Posts: 1157
Joined: Sat Feb 07, 2015 5:41 pm
Location: Poland
Contact:

It all depends on texture space. Transform is done inside node.
nois_spac.jpg
Architectural Visualizations http://www.archviz-4d.studio
astrofalcon
Licensed Customer
Posts: 29
Joined: Wed Apr 26, 2017 4:32 am
Contact:

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
User avatar
jobigoud
OctaneRender Team
Posts: 250
Joined: Sat Aug 15, 2015 1:28 pm

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.
astrofalcon
Licensed Customer
Posts: 29
Joined: Wed Apr 26, 2017 4:32 am
Contact:

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
User avatar
jobigoud
OctaneRender Team
Posts: 250
Joined: Sat Aug 15, 2015 1:28 pm

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.
astrofalcon
Licensed Customer
Posts: 29
Joined: Wed Apr 26, 2017 4:32 am
Contact:

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
User avatar
jobigoud
OctaneRender Team
Posts: 250
Joined: Sat Aug 15, 2015 1:28 pm

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).
astrofalcon
Licensed Customer
Posts: 29
Joined: Wed Apr 26, 2017 4:32 am
Contact:

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
Attachments
Octane Working.jpg
User avatar
SSmolak
Licensed Customer
Posts: 1157
Joined: Sat Feb 07, 2015 5:41 pm
Location: Poland
Contact:

How did you connect output of this OSL node to Projection input of Noise4D ? This connection doesn't work for me.
Architectural Visualizations http://www.archviz-4d.studio
astrofalcon
Licensed Customer
Posts: 29
Joined: Wed Apr 26, 2017 4:32 am
Contact:

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.
Attachments
5hJy5hVj1a.jpg
Post Reply

Return to “Maxon Cinema 4D”