- Home /
How to read raw files for custom terrain generation system?
I am creating a custom terrain generation system which loads in heightmaps from grayscale images. This works fine for low height ranges, but for high height ranges, stepping appears.
So I want to add option to import heightmaps as raw files. Problem is, I don't know how to read this file format and extract the height data.
Any help would be appreciated.
You can just write and read data as raw byte[] with File.WriteAllBytes(path, bytes) and File.ReadAllBytes(path). It will be the fastest data type to read from (lower loading times).
Your answer
Follow this Question
Related Questions
Understanding heightmap RAW imports 1 Answer
Terrainmap is lined 1 Answer
Writing a Custom Collider 0 Answers
why heightmap flips in terrain import raw(certain case)? 0 Answers
What makes up the binary data of a 16-bit heightmap? 0 Answers