Warp or Distort OSL C4D Noises

Forums: Warp or Distort OSL C4D Noises
Maxon Cinema 4D (Export script developed by abstrax, Integrated Plugin developed by aoktar)

Moderator: aoktar

Re: Warp or Distort OSL C4D Noises

Postby SSmolak » Tue Mar 05, 2024 7:59 pm

SSmolak Tue Mar 05, 2024 7:59 pm
It all depends on texture space. Transform is done inside node.
nois_spac.jpg
Architectural Visualizations http://www.archviz-4d.studio
User avatar
SSmolak
Licensed Customer
Licensed Customer
 
Posts: 1095
Joined: Sat Feb 07, 2015 5:41 pm
Location: Poland

Re: Warp or Distort OSL C4D Noises

Postby astrofalcon » Wed Mar 06, 2024 5:46 am

astrofalcon Wed Mar 06, 2024 5:46 am
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
astrofalcon
Licensed Customer
Licensed Customer
 
Posts: 13
Joined: Wed Apr 26, 2017 4:32 am

Re: Warp or Distort OSL C4D Noises

Postby jobigoud » Wed Mar 06, 2024 10:42 am

jobigoud Wed Mar 06, 2024 10:42 am
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.
User avatar
jobigoud
OctaneRender Team
OctaneRender Team
 
Posts: 230
Joined: Sat Aug 15, 2015 1:28 pm

Re: Warp or Distort OSL C4D Noises

Postby astrofalcon » Wed Mar 06, 2024 4:17 pm

astrofalcon Wed Mar 06, 2024 4:17 pm
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
astrofalcon
Licensed Customer
Licensed Customer
 
Posts: 13
Joined: Wed Apr 26, 2017 4:32 am

Re: Warp or Distort OSL C4D Noises

Postby jobigoud » Wed Mar 06, 2024 5:15 pm

jobigoud Wed Mar 06, 2024 5:15 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.
User avatar
jobigoud
OctaneRender Team
OctaneRender Team
 
Posts: 230
Joined: Sat Aug 15, 2015 1:28 pm

Re: Warp or Distort OSL C4D Noises

Postby astrofalcon » Wed Mar 06, 2024 5:45 pm

astrofalcon Wed Mar 06, 2024 5:45 pm
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
astrofalcon
Licensed Customer
Licensed Customer
 
Posts: 13
Joined: Wed Apr 26, 2017 4:32 am

Re: Warp or Distort OSL C4D Noises

Postby jobigoud » Wed Mar 06, 2024 5:55 pm

jobigoud Wed Mar 06, 2024 5:55 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).
User avatar
jobigoud
OctaneRender Team
OctaneRender Team
 
Posts: 230
Joined: Sat Aug 15, 2015 1:28 pm

Re: Warp or Distort OSL C4D Noises

Postby astrofalcon » Wed Mar 06, 2024 7:42 pm

astrofalcon Wed Mar 06, 2024 7:42 pm
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
astrofalcon
Licensed Customer
Licensed Customer
 
Posts: 13
Joined: Wed Apr 26, 2017 4:32 am

Re: Warp or Distort OSL C4D Noises

Postby SSmolak » Wed Mar 06, 2024 11:44 pm

SSmolak Wed Mar 06, 2024 11:44 pm
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
User avatar
SSmolak
Licensed Customer
Licensed Customer
 
Posts: 1095
Joined: Sat Feb 07, 2015 5:41 pm
Location: Poland

Re: Warp or Distort OSL C4D Noises

Postby astrofalcon » Thu Mar 07, 2024 3:25 am

astrofalcon Thu Mar 07, 2024 3:25 am
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
astrofalcon
Licensed Customer
Licensed Customer
 
Posts: 13
Joined: Wed Apr 26, 2017 4:32 am
Previous

Return to Maxon Cinema 4D


Who is online

Users browsing this forum: No registered users and 12 guests

Sat Apr 27, 2024 9:08 pm [ UTC ]