EmiOnGit / warbler_grass

A bevy plugin for creating 3d grass in your game
Apache License 2.0
120 stars 11 forks source link

Grass editor for height maps #36

Closed EmiOnGit closed 1 year ago

EmiOnGit commented 1 year ago

What problem does this solve or what need does it fill?

Currently, it is rather hard to create grass using height maps. Even though the height maps are dynamically updated every time the file change there should be a tool to change them in a bevy directly

Describe the solution you'd like

A plugin which let you change the height of marked height maps. It should be possible to lower and raise parts of the grass and if wanted the new height map should be writeable to disk if wanted. The tools provided should be kept rather simple to keep the scope tiny enough.

This tool should later be able to also draw on density maps as they are implemented

Describe what is for debate

The big question is if this should be split into a separate crate since it "bloats" this crate with functionality not needed for most people.

janhohenheim commented 1 year ago

No bloat necessary, you can just hide the editor behind a feature 😉

EmiOnGit commented 1 year ago

Mh, this is true :D

EmiOnGit commented 1 year ago

I actually already started implementing this a bit.

https://user-images.githubusercontent.com/95967983/222784730-810ec486-8982-495e-b360-984fbf6c7cf6.mp4

janhohenheim commented 1 year ago

Hehehe I love it. Don't know how much this helps you, but have you seen how I simply use the pre-existing GLTF triangles to spawn grass in Foxtrot?

EmiOnGit commented 1 year ago

Yes, I did admire that already :D I think it would be useful to make that possible from the crate. There are also algorithms to generate height maps from meshes. This would be really useful for a lot of people as the ground is often a mesh

EmiOnGit commented 1 year ago

The editor is forming but still some way to go.

https://user-images.githubusercontent.com/95967983/222926835-96f6c7ca-d40e-4945-ae31-3dbcd0f1551b.mp4