Everyone told me I was crazy and that it was quite expensive, but I did it. Interactive grass system.
How does it work?
At first it may seem that objects use a collision, or something like that, but no.
I used a blender to stuff bones into the grass(I’m not that crazy, so I combined three blades of grass)
When touching, object bends in the direction opposite to the player’s position relative to the blade of grass itself
What about optimization?
Optimization works incredibly!
I tried very hard, read articles on improving optimization, and in the end, I achieved this result:
in the video you can see about 1000 blades of grass!
I have a very weak computer, so there was a calculation that everything should work perfectly. And I did it!
This whole system will be used in my upcoming project. If you want to know more, I can send you a twitter and discord server in reply
Update:
I thought about it and decided to create a plugin that allows you to create such grass. With it, you can change the size of the grass, the degree of its development, and also use a brush for application. If you like this idea, then support this post!
Will this ever become open-sourced/sold? It would be extremely cool in games like (think of assassin games) sneaking around, general tomfoolery, and stealth.
This is something I was thinking of for my future game whenever I get to that point, I have no clue how I’d do it though, since I’m still in the beginner stages of coding.
My game will have a emphasis on stealth at times, so hiding in bushes, around objects etc, I also thought of grass but think grass and bush movement would just add to the game if I could do it . As my game will take the more “realistic” approach to environmental design.
(I’m first working on getting comfortable with scripting, I know it’s not best to just jump into a big project)
You don’t have to study Lua from beginning to end to write something like this. It is enough just to study what exactly will be used, as well as to study everything related to it. Good luck!
I went to your Twitter and have to say, your work is amazing, I need to learn how to do this because again my game will also need this kind of thing, think shadow of the tombraider, it’s where my inspiration comes from, but of course it will be different.
I’m sure with time and more practice I’ll eventually be able to script things on my own more better, currently trying to do a menu system for practice.