warbler_grass icon indicating copy to clipboard operation
warbler_grass copied to clipboard

Control width of grass at the base

Open thedodd opened this issue 1 year ago • 2 comments

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

It would be awesome to be able to control the width of the generated grass at its base. I'm currently using explicit mode based on my own mesh triangles, but my experimentation so far from the component settings has been fruitless. Perhaps a width setting, similar to height should be accepted.

Describe the solution you'd like

Just as users can declare the height of the grass, being able to declare the width of the grass at the base would be awesome.

Describe alternatives you've considered

N/A

Describe what is for debate

N/A

Additional context

Being able to generate skinny grass, instead of all the grass being rather wide at the base, would be nice in some contexts.

thedodd avatar Jul 14 '23 16:07 thedodd

Hey @thedodd, sorry for not replying, I had to concentrate on my thesis for quite a while and simply forgot. I assume you don't need to answer anymore but I assume that other may have the same problem

Your suggestion to have a width component which can control the width at the base seem fair but I think it posses some difficulties and would make the api a bit more confusing to use as it slowly becomes unclear which settings refer to the chunk and which to the grass blades. It would raise the question, how to detect the base of the grass (given a generic grass mesh), to name an example.

There are actually already 2 ways to archive what you want:

  • You could use the scale field of the Transform component to down-scale in the xz-direction. This would be rather hacky and I'd not recommend that
  • The mesh used for the grass is actually just a example mesh for grass I set up. In this example I swapped the default grass mesh to a completely different one. If you'd want a thinner grass mesh, you'd have to take the default mesh defined here and make it a bit thinner

I'm not opposed to have a easier way to change the width with a component. If someone stumbles upon this and would like to have this feature feel free to write a short comment so I now it is wanted

EmiOnGit avatar Sep 30 '23 14:09 EmiOnGit

I achieved this by swapping out the grass mesh but i agree it would be nice if the crate had built in controls for this perhaps. Perhaps it could Mut the 'mesh' that is inside the handle in a simple way in a system. on <Change> of some settings resource or something.

ethereumdegen avatar May 21 '24 14:05 ethereumdegen