Terrain Storage #2
Replies: 3 comments 4 replies
-
That's very good point that I did not think of! We should save them as binary (Image, .res or custom extension), so the editor does not re-import them and the loading/saving time stays fast. I stand by using binary and nothing can change that!
Image. Because the maps are only data and not visuals. Or a custom resource loader that imports them as binary, which would be an Image either way.
Like the way you have in your editor? It seemed very ugly. Sorry. Instead we should use the TerrainStorage resource to define the data directory.
Badly. I barely understood. I'm still processing those. What TerrainStorage?TerrainStorage holds layer materials, height, quad density, clipmap levels and any other data that is needed for generating everything. |
Beta Was this translation helpful? Give feedback.
-
TerrainStorageGenerated from a menu because needs to be saved to disk. Should be exposed, it will be easier to find where terrain's data is saved. Edit: also has each Layer Material and automatically combines to a TextureArray and other data arrays. Layer Material list should be exposed. TerrainMaterialCreated by the user, because terrain acts as a mesh. Terrain material property should accept ShaderMaterial as well, for those who want to make their own. |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Juan wrote:
Terrain Storage
The terrain can be stored directly as high resolution material index regions + mipmaps, so only what is needed is streamed-in. Foliage indices can also be saved as well as decoration indices or LODs for different draw distances.
--
My interpretation:
HTerrain
HTerrain allows the user to specify a directory, then stores all maps in there and handles all file management for the user. I adopted this approach. It contains files like:
They were imported as Textures and connected to shaders. The maps were not saved inside of shaders or materials. They were converted to Images for processing or saving. He made his own custom resource loader that handled files.
New system
What are your thoughts? What other aspects should we discuss on? How do you interpret Juan's statements?
Beta Was this translation helpful? Give feedback.
All reactions