glossiness value in vray_what the exact height map value correspond to a range 0-1 ?


#1

hey guys ::slight_smile: , so im looking for an answer , , hopefully i find one
,as you see im not good at math , so i dont know the operation that makes a range of values of a height map which is (0 - 256) to be … squashed maybe ? all the way to be between a range of values from 0 -1 ,

so let say as a test i made the value of the glossinsess at 0.75 , so later on i needed to make height map (which is 0 - 256) but the maximum white value should be at a value same as the spinner value of the glossiness in this case 0.75

what the maximum white should i use to make it same as 0.75 ?

i hope you got the idea of the question


#2

Hi,

First of all, I’m not really sure to understand well what you’re talking about.

A height map is basically a displacement map which is not a texture with a range of values between 0-255 because generally speaking, the displacement map is an 18 or 32 bits texture.

However, if you’re using an 8 bits texture it makes sense and then, the solution is pretty easy.
There are two approaches in order to solve your problem :

  • Basic maths.
  • Photoshop gradient map :slight_smile: .

For the basic maths, let’s say 1 = 255 and 0 = 0, if you want to find a value for 0.75, you
just have to do the following: 255*0.75 = 191.25 = +/- 191

OR

Create your texture normally, within a range in between 0 and 255 and then, clamp the
values by using a gradient map which 0 as the darker value and 191 (= 75% brightness inside the PS swatch) as the brightest one.

Cheers,
Mathias


#3

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.