About Store Forum Documentation Contact
Donations:
364$/mo



Post Reply 
Tree/grass sway speed
Author Message
aceio76 Offline
Silver Supporter

Post: #1
Tree/grass sway speed
How do you change how much the leaves of trees and grass sway? Can this be done via the editor and read as part of the game, or this has to be done via code? If code, can someone please point out where to look.

thanks,

www.thinkplaystudios.com
09-06-2011 12:23 AM
Visit this user's website Find all posts by this user Quote this message in a reply
kulesz Offline
Member

Post: #2
RE: Tree/grass sway speed
I don't know, if it's possible. But it would be a very useful feature - maybe Esenthel could add this to the todo list? smile It shouldn't be hard to implement I think.
09-06-2011 07:07 AM
Find all posts by this user Quote this message in a reply
Wireframe Offline
Member

Post: #3
RE: Tree/grass sway speed
I need that too.
That would be great!grin
(This post was last modified: 09-06-2011 12:10 PM by Wireframe.)
09-06-2011 12:09 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #4
RE: Tree/grass sway speed
bending intensity is dependent on Vertex Position Y component
09-06-2011 01:01 PM
Find all posts by this user Quote this message in a reply
kulesz Offline
Member

Post: #5
RE: Tree/grass sway speed
Hmmm, so can it be changed in-game?
One more thing, maybe it'd be easy and fast to implement: it would be great to set a direction, where the bending would occur more likely - it'd allow to make realistic weather (wind) simulation.
09-06-2011 01:06 PM
Find all posts by this user Quote this message in a reply
aceio76 Offline
Silver Supporter

Post: #6
RE: Tree/grass sway speed
If it's dependent on the vertex position, then I'd think no.

www.thinkplaystudios.com
09-06-2011 09:11 PM
Visit this user's website Find all posts by this user Quote this message in a reply
kulesz Offline
Member

Post: #7
RE: Tree/grass sway speed
There's always an option :-)
09-07-2011 07:39 AM
Find all posts by this user Quote this message in a reply
aceio76 Offline
Silver Supporter

Post: #8
RE: Tree/grass sway speed
Well, I bought an engine so that I can use it right away as much as possible so that I can start to do what I intended to do, which I'm sure many of us share (build games), and having to figure out what is meant by "bending intensity is dependent on Vertex Position Y component" is not what I want to do. At this point, my experienced artist is guessing what doing something on the mesh may or may not produce what we think is meant by that one-liner response.

Can someone who cares about the paying consumer please elaborate more on how to do this?

(sorry if I sound frustrated, because I am)

www.thinkplaystudios.com
(This post was last modified: 09-07-2011 04:56 PM by aceio76.)
09-07-2011 04:55 PM
Visit this user's website Find all posts by this user Quote this message in a reply
ronalmb Offline
Member

Post: #9
RE: Tree/grass sway speed
To see if I understand the answer correctly:

The amount that the grass/tree effect sways is dependent upon the Y coordinate of each vertice. The closer to the ground the vertice is, the less it will sway, while the higher vertices sway further.

If this is so, what access, if any, do we have to that part of the engine - so that we can tweak or create an alternate sway affect for plants and low lying grasses? Is this something the engine can handle or a limitation of the engine. What we would like to do is improve the amount of swaying that grass has. Any insight will be greatly appreciated!

Thank you for your time.
09-07-2011 05:09 PM
Find all posts by this user Quote this message in a reply
aceio76 Offline
Silver Supporter

Post: #10
RE: Tree/grass sway speed
It's not just for grass, but for trees as well.

www.thinkplaystudios.com
09-07-2011 05:11 PM
Visit this user's website Find all posts by this user Quote this message in a reply
kulesz Offline
Member

Post: #11
RE: Tree/grass sway speed
...and make it wind dependent smile
09-07-2011 07:12 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #12
RE: Tree/grass sway speed
all swaying parameters are hard-coded in the built-in shaders.

if you want custom swaying, just make your own shaders.

besides:
"bending intensity is dependent on Vertex Position Y component" that is already mentioned in the documentation - http://www.esenthel.com/wiki/index.php?t...Techniques

you can adjust Mesh scale in Model Editor (increase), then decrease Game Object scale in World Editor
this will increase swaying but preserve object size in the game
09-07-2011 09:22 PM
Find all posts by this user Quote this message in a reply
aceio76 Offline
Silver Supporter

Post: #13
RE: Tree/grass sway speed
Thank you very much! This is perfect!

www.thinkplaystudios.com
09-07-2011 09:52 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply