Base terrain editing tools for Castle Engine Editor#612
Open
Base terrain editing tools for Castle Engine Editor#612
Conversation
…rce texture rendering.
…sending height texture to CPU every frame).
Contributor
Author
|
I don't know why, but the video doesn't work for me in Firefox. Works on Chrome-based browsers |
Member
|
…ow players can terraform at runtime) From @and3md example on https://github.com/and3md/castle-engine-terrain-editor-example/
- license header - use more case, and take care of COMPILER_CASE_ANALYSIS - level->flatten - try on-demand switching to ctmShader - display Terrain.Mode - better lighting - better button names - remove some unused test data
…de" inside, honor CASE_ANALYSIS
…, in FrameTerrainEditor
Member
Fixed now (got broken because of changes in master how is Also:
|
…nnot make arrays with such index) Also rename shader terrain2 -> terrain_heights_in_texture Also put brush shaders in separate files, terrain_edit_brush
…ing it for actions disabled too much (like 137 keys)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR add basic TCastleTerrain edit suport for our editor:
With it you can:
Raise/lower/level terrain operations supports many brushes shapes like cone, pyramid, square, circle, ring etc.
You can set many parameters like strength, size, rotation etc.
See the video:
terrain_edit.webm
Most of the code is in
TCastleTerrainEditModeclass.There are two way to modify terrain height. The faster one is not working in TCastleControl so it is comneted in
AlterTerrainfunction.It can be uncomented using this example code:
https://github.com/and3md/castle-engine-terrain-editor-example