Jump to content
Sign in to follow this  
sant0s81

[Solved] HF Layer to COPs, normalize hight

Recommended Posts

Posted (edited)

Hello,

I have a HF with different layers/masks.

In COP I want to modify these layers.

The problem is, that when I SOP Import the height, I get a white image only.
In the viewer I can normalize the height - but of course it has no effect on the shader tree.

I tried to add a fitrange to get the height normalized, but somehow nothing is changing in the shader tree.

Is there a correct way, doing that?

Thx alot,

sant0s

Edited by sant0s81

Share this post


Link to post
Share on other sites

I think you're on the right track, perhaps create a new attribute from the height and cops will pick it up.

You can leverage the promotion technique to get the minimum and maximum height values and store them as detail attributes.

Then the fit might work.

f@height_NORMALIZED = fit(@height,detail(0,"lowest"),detail(0,"highest"),0,1);
v@Cd =f@height_NORMALIZED;

 

Untitled-1.jpg

  • Like 1

Share this post


Link to post
Share on other sites
Posted (edited)

There is a "remap range" function right in the SOP import. I think the equalize node can normalize colors in COPs, too.

Edited by konstantin magnus
  • Thanks 1

Share this post


Link to post
Share on other sites
Posted (edited)

@konstantin magnus ,

thanks alot, I just didnt see the "remap range" - works perfect! :)

And thx for the VEXSnippet @Atom
Just started to learn VEX more serious and I actually understand what you wrote there... thats so cool! :D

Great day to y'all,

sant0s

Edited by sant0s81

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×