godot-landscaper

所属分类:图形图像处理
开发工具:GDScript
文件大小:0KB
下载次数:0
上传日期:2023-12-01 06:56:01
上 传 者sh-1993
说明:  草地散射器、草地着色器、地形生成器、地形纹理器和地形着色器。基于纹理和笔刷
(Grass scatterer, grass colorer, terrain builder, terrain texturer, and terrain colorer. Based in textures and brushes)

文件列表:
LICENSE (1064, 2023-10-31)
addons/ (0, 2023-10-31)
addons/terra_brush/ (0, 2023-10-31)
addons/terra_brush/Scenes/ (0, 2023-10-31)
addons/terra_brush/Scenes/inspector_menu.tscn (1312, 2023-10-31)
addons/terra_brush/icon.svg (1943, 2023-10-31)
addons/terra_brush/icon.svg.import (908, 2023-10-31)
addons/terra_brush/notes.txt (613, 2023-10-31)
addons/terra_brush/plugin.cfg (149, 2023-10-31)
addons/terra_brush/plugin_assets_manager.gd (10893, 2023-10-31)
addons/terra_brush/plugin_terra_brush.gd (3343, 2023-10-31)
addons/terra_brush/res_brush.gd (4760, 2023-10-31)
addons/terra_brush/res_brush_grass_color.gd (873, 2023-10-31)
addons/terra_brush/res_brush_grass_spawn.gd (9461, 2023-10-31)
addons/terra_brush/res_brush_terrain_color.gd (1056, 2023-10-31)
addons/terra_brush/res_brush_terrain_height.gd (3101, 2023-10-31)
addons/terra_brush/shaders/ (0, 2023-10-31)
addons/terra_brush/shaders/grass_shader.gdshader (2980, 2023-10-31)
addons/terra_brush/shaders/terrain_overlay_shader.gdshader (1046, 2023-10-31)
addons/terra_brush/shaders/terrain_shader.gdshader (383, 2023-10-31)
addons/terra_brush/textures/ (0, 2023-10-31)
addons/terra_brush/textures/default_brush.tres (433, 2023-10-31)
addons/terra_brush/textures/default_grass_gradient.tres (249, 2023-10-31)
addons/terra_brush/textures/default_grass_v1.png (22532, 2023-10-31)
addons/terra_brush/textures/default_grass_v1.png.import (858, 2023-10-31)
addons/terra_brush/textures/default_grass_v2.png (9776, 2023-10-31)
addons/terra_brush/textures/default_grass_v2.png.import (858, 2023-10-31)
addons/terra_brush/textures/ter1566.tmp (0, 2023-10-31)
addons/terra_brush/textures/ter1588.tmp (0, 2023-10-31)
addons/terra_brush/tool_terra_brush.gd (6767, 2023-10-31)
example.tscn (1928495, 2023-10-31)
icon.svg (950, 2023-10-31)
icon.svg.import (891, 2023-10-31)
project.godot (524, 2023-10-31)
road/ (0, 2023-10-31)
road/grass_color.png (28549, 2023-10-31)
road/grass_color.png.import (820, 2023-10-31)
... ...

# TerraBrush [Godot 4] [Plugin] [Alpha] Texture-based Multimesh scatterer and colorer using brushes. ![preview](https://github.com/dip000/terra-brush-scatterer/assets/58742147/6c951028-6ebe-45d5-a335-1fc86502c220) ## Content 1. [Features And How To Use Them](#1-features-and-how-to-use-them) - [Terrain Color](#11-terrain-color) - [Terrain Height](#12-terrain-height) - [Grass Color](#13-grass-color) - [Grass Spawn](#14-grass-spawn) 3. [Performance Concerns](#performance-concerns) 4. [Roadmap To Beta And Asset Library](#roadmap-to-beta-and-asset-library) 5. [Author Notes](#author-notes) # 1. Features And How To Use Them Follow the next steps: 1. Download and install this Plugin. See [installing_plugins](https://docs.godotengine.org/en/stable/tutorials/plugins/editor/installing_plugins.html) 2. Open a scene, and instantiate a TerraBrush node in the scene tree. It will create a new terrain 3. Select the TerraBrush node and activate the brush you want from the inspector 4. Hover over your terrain and click and drag to start terra-brushing! ## 1.1 Terrain Color Select your color then left-click to paint your terrain or right-click to smooth it out!
_Brush settings on TerraBrush inspector:_
![terrain_color](https://github.com/dip000/terra-brush-scatterer/assets/58742147/289fb511-5a60-4a24-962b-fa6d4ff2154e)
_Coloring terrain:_
![terrain_color](https://github.com/dip000/terra-brush-scatterer/assets/58742147/74e76b8a-9005-459c-8ef8-89f966e0f02b) ## 1.2 Terrain Height Set the strength of the height brush then left-click to create mountains, and right-click to create valleys
**Max height** is the relative height of the entire heightmap
_Brush settings on TerraBrush inspector:_
![terrain_height_brush](https://github.com/dip000/terra-brush-scatterer/assets/58742147/b74e7b96-cede-4343-9354-0914bf42262f) _Heighting terrain:_
![terrain_height](https://github.com/dip000/terra-brush-scatterer/assets/58742147/aa45f08c-96e9-4a06-8fc0-53ce52da11a8) ## 1.3 Grass Color Select your color then left-click to paint your grass or right-click to smooth its color out!
Do note that only the top of the grass is being colored. That's because the bottom half is taking the color of the terrain!
_Brush settings on TerraBrush inspector:_
![grass_color](https://github.com/dip000/terra-brush-scatterer/assets/58742147/10fb619f-a751-4d0d-b249-71433ffe1065) _Coloring grass:_
![grass_color](https://github.com/dip000/terra-brush-scatterer/assets/58742147/60c77a62-44f5-4034-86a8-296c946663f8) ## 1.4 Grass Spawn Select your color then left-click to spawn your grass or right-click to clear it!
Do note that the bottom half of the grasses are taking the color of the terrain!
_Brush settings on TerraBrush inspector:_
![grass_spawn_brush](https://github.com/dip000/terra-brush-scatterer/assets/58742147/82387f65-1163-4c96-9ed1-31b7902de784)
_Spawning grass:_
![grass_spawner](https://github.com/dip000/terra-brush-scatterer/assets/58742147/d0c71618-df0a-4e26-997a-f294d7a48084)
### Grass properties * **Spawn Type:** Action to perform while left-clicking over the terrain. Spawn random grass variants or spawn a specific one while brushing * **Variant:** The variant to spawn with Spawn Type set to "Spawn one specific variant". Variants are set in the "Variants" property under "Grass Settings" * **Density:** How many grass instances are inside the area you have painted with this brush * **Billboard:** Tipes of billboarding. BillboardY (grass always looks at the cammera), CrossBillboard (for each grass, spawns another 90 degrees in the same position), and Scatter (Scatters the grass with random rotations) * **Enable Details:** Renders the details of your grass variant texture. These are the sharp margin edges in the preview grass shown here * **Detail Color:** Recolor of your details * **Quality:** Subdivisions for each blade of grass. This affects its sway animation and gradient color smoothness (because is vertex colored) * **Size:** Size of the average blade of grass in meters * **Gradient Mask:** The color mix from the grass roots to the top as seen from the front. BLACK=terrain_color and WHITE=grass_color * **Variants:** A list of the grass textures to show. Uses the preview images shown here. Does not create extra materials but is capped at 4 # Performance concerns * This version now supports GL Compatibility rendering! But it is limited to one grass variant due to the lack of shader instance variables in Compatibility * Coloring the grass is optimized by using vertex colors. This means that the shader is only coloring as less as 4 vertex per instance (The vertices of a square) * You can actually set how many vertex to use per grass in: Grass Spawn Brush > Quality # Roadmap to Beta and Asset Library 1. [X] Save and bake textures, shaders, and materials in the user folder - [X] Keep TerraBrush open for modifications - [X] Clear all plugin dependencies. Like in [this repository for shaders](https://github.com/dip000/my-godotshaders/tree/main/StylizedCartoonGrass) 2. [X] Add support for multiple grass billboarding options - [X] Cross billboard - [X] Billboard Y - [X] Scatter 3. [ ] Add Terrain generator brush - [ ] Click over the terrain and create a mesh surface - [ ] Meshes are ImmediateMesh that are generated dynamically instead of using a shader 4. [ ] Asset Library friendly - [ ] [asset library requirements](https://docs.godotengine.org/en/stable/community/asset_library/submitting_to_assetlib.html) - [ ] In-code Documentation following [style guides](https://docs.godotengine.org/en/stable/tutorials/scripting/gdscript/gdscript_styleguide.html#doc-gdscript-styleguide) # Author notes Hi, thanks for passing by!
I'd be glad to hear what you have to say about the grass shader [here](https://godotshaders.com/shader/stylized-cartoon-grass/). Or contact me about this plugin at [ab-cb@hotmail.com](mailto:ab-cb@hotmail.com?subject=[GitHub]%20TerraBrush%20Plugin)
See ya!

近期下载者

相关文件


收藏者