Repository navigation
Editing the Terrain in realtime? #987
|
Hello, I have been exploring Terrain3D for a while now and quite love what you have so far, my main question is how does one edit the terrain in real time, there is the set_height function on terrain data but it subtly points towards Terrain3DRegion.get_map(), I have played around with that a little bit but couldn't get it to update the landscape, what would be a way of making a simple brush for example to add height to a terrain in realtime? I am sorry if the question is too general of too stupid but I have been looking through the docs for quite some time unable to quite wrap my head around it and also searched relevant discussions here. the most relevant one being #461 , but couldn't quite wrap my head around doing something like this |
Replies: 1 comment 3 replies
|
Editing the terrain at runtime is well supported. The set_height() documentation tells you to read set_pixel() which tells you to call update_maps(). #461 is a brief question about making a hand-editor in your game. Creating a hand editor is related to, but very different from runtime editing. It's two orders of magnitude more complex. There have been many more discussions about making your own hand editor on github and in our discord. I would say you need to learn how to use the API to do realtime edits and build a lot more infrastructure before you're ready to take on the challenge of building an in game hand editor. |
Editing the terrain at runtime is well supported.
The set_height() documentation tells you to read set_pixel() which tells you to call update_maps().
#461 is a brief question about making a hand-editor in your game. Creating a hand editor is related to, but very different from runtime editing. It's two orders of magnitude more complex. There have been many more discussions about making your own hand editor on github and in our discord. I would say you need to learn how to use the API to do realtime edits and build a lot more infrastructure before you're ready to take on the challenge of building an in game hand editor.