Mesh to heightmap

i’m just trying to render an accurate heightmap from a mesh. this is starting to give me a headache. this is the setup that i used to render a heightmap from my mesh

and this is the result

what am missing?

Did you try baking instead?

If you want to go with your method, you need to make sure you use a 32bit image format, linear/raw mode and remove the ramp converter since it is going to remap your values.

You can plug textures/values to the material output directly, you do not need to use the emit shader.

Also how are you setting up the displaced mesh?

1 Like

I think you can replace the ColorRamp node for a simple Math multiply node or remove it completely and it should fix.

The colorRamp is clamping the output between 0 and 1

1 Like

getting rid of the ColorRamp and setting the output to 32bit instead of 16 did the trick. can’t thank you enough guys :slight_smile:

you can use this setup to have more control

1 Like