Uewdl / GodotRuntimeTextureSplatMapPainting

Texture and Splat Map painting in-game for Godot Engine (also World Vector3 to UV mapping)

Home Page:https://alfredbaudisch.com/blog/gamedev/godot-engine/godot-engine-in-game-splat-map-texture-painting-dirt-removal-effect/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Godot Engine In-game Splat Map Texture Painting (Dirt Removal Effect)

Texture and Splat Map painting in-game for Godot Engine (also World Vector3 to UV mapping).

GodotRuntimeTexturePainting.mp4

Resulted splat map from the video above:

image

Usages

  • Actual painting something in game
  • Terrain and mesh deformation
  • Anything else you can imagine by blending textures. Because it's just a matter of interpolating the painted textures with anything else with shaders (sample shader included here).

Features

  • World Vector3 to UV mapping methods
  • Any kind of brush
  • Multiple brushes
  • Multiple splat maps and multiple textures blended
  • Mesh can be anywhere in the world and can be rotated

Alternative Solution

My other implementation uses Vertex Painting in order to get the alpha value of texture interpolations. It's simpler, but less flexible and can produce rough results:

Credits

Tips and Support

You can support the development of my open-source contributions and this project on Patreon, a PayPal donation or buy me a coffee with Ko-fi. Or of course, you can get my Godot UI Masterclass Course and learn how to make data-driven and responsive user interfaces with Godot from scratch (the final result is open-source).

Patrons

  • Mike King

Updates

For news and more code and art experiments and prototypes:

About

Texture and Splat Map painting in-game for Godot Engine (also World Vector3 to UV mapping)

https://alfredbaudisch.com/blog/gamedev/godot-engine/godot-engine-in-game-splat-map-texture-painting-dirt-removal-effect/


Languages

Language:GDScript 100.0%