dimanche 28 janvier 2018

How to get hight (int16) value back to rgb form?

I have int16 * heights[width * height] array, that hold the terrain height, i load them form a file directly as int16 *.

I need to write the heights into a bmp file.

How do i get int16 back into rgb format considering they came form a bmp file (rgb format) in the first place?

Thanks.

Aucun commentaire:

Enregistrer un commentaire