ShellFurGodot icon indicating copy to clipboard operation
ShellFurGodot copied to clipboard

Non constant fur length

Open br3eze opened this issue 2 years ago • 11 comments

Describe the bug Length is not so big, so should they be so long?

To Reproduce Fur + Wind (settings are on the screenshot)

Expected behavior Constant long

Screenshots Screenshot_20220309_155649

Environment Arch Linux Intel hd 620 / rtx2060 Godot 3.4.x Plugin 0.2.0 GLES3

br3eze avatar Mar 09 '22 09:03 br3eze

Yeah you are right. Wind can effect the length of the fur. It's a bit difficult to avoid without making the vertex shader way more complicated, but I think I can improve it quite a bit. I'm getting started on some improvements for the next version right now and I'll be sure to improve this.

Arnklit avatar Mar 09 '22 10:03 Arnklit

May be it will be helpful. It is not about only a wind, also it ruins all when you use high gravity or too low dump values.

br3eze avatar Mar 09 '22 10:03 br3eze

Hello. We are preparing to release and want to use you plugin. Should we wait or search another way to deal with a fur? We are working with 3.5 branch.

br3eze avatar Jul 20 '22 10:07 br3eze

Hi Breeze, I've been on summer vacation, so sorry for the delay. Is this in relation to this bug? Or just the plugin in general?

Arnklit avatar Jul 29 '22 07:07 Arnklit

It's ok, no hurry. And if we can set length and spring as gradients with a fur texture, then only this bug.

Why spring? Because there is no way to make an adequate fur on a low-poly model. Just for example: 10 cm long fur on a dog 1500 polys model. It will lay on the model and will show every polygon on the dogs back. I have no clue how to make it right.

br3eze avatar Aug 15 '22 12:08 br3eze

"And if we can set length and spring as gradients with a fur texture" - now I know that we can't.

br3eze avatar Dec 11 '22 17:12 br3eze

I'm sorry br3eze I'm really not sure what your limitations are and what you need, could you try and post some screenshots of the issues? I know there are issues with fur not keeping it's length with strong physics forces, but that's not something I can easily fix.

I'm currently spending my time updateing my other plugin Waterways to Godot 4.0, but when I'm done with that I hope to get to working on updating shell fur to Godot 4.0.

Arnklit avatar Dec 11 '22 17:12 Arnklit

Yeah, may be I was not quite concrete or it is my English. This is what I mean: image_2022-07-19_23-51-02

You can't make a gradient of a fur length: short on feet and ears, and long on a body. Just an example for clearness.

Also, I don't know how to orient a nap - it just grows perpendicularly. So, your personage looks very weird.

I know nothing about shaders creation yet. But may be an alpha rgb channels values of a texture can bu used for some parameters. How and can it be even done in a shader code not even imagine. Just sharing a thought.

br3eze avatar Dec 11 '22 18:12 br3eze

You can use the ldtg texture to control the length. If all you want to control is the length, you should put your length data in the red channel and leave the other channels full white. The examples in the demo scene also use this, so you can look there.

This is an example texture, that has a gradient in the red channel, but is white in the other channels, try that out as the ldtg texture. ldgt

If you want to orient the growth you need to make a blend shape in Blender and set that in the "Blendshape Styling" section. I also do this in the demo, the Rat has a blend shape that orients the fur, it's also detailed in the documentation.

Arnklit avatar Dec 12 '22 09:12 Arnklit

Please excuse my inattention and thank You for Your patient!

br3eze avatar Dec 12 '22 10:12 br3eze

Unusable in real projects, if Your personage should move. If it can move fast, unusable^2. What can we do with this? How to clamp fur's length? I mean, may be You know how to reduce this effect at least?

https://dropmefiles.com/iBtId

br3eze avatar May 31 '23 18:05 br3eze