cg Vertex Shader and multiple objects

Started by
11 comments, last by SKerner 18 years, 10 months ago
Quote:Original post by skow
Quote:Original post by SKerner
That do you mean by 'animating the model'?
Do you mean windmovement without shader and to move the branches by altering the angle instead?


I mean by using a modeling program to make the tree and keyframe animate it.


I see. This is out of question, cause I wrote a growth simulation to automatically generate the trees. I can't model them.
Advertisement
Quote:Original post by Anonymous Poster
I see. This is out of question, cause I wrote a growth simulation to automatically generate the trees. I can't model them.


Something you could try is only changing the x/z values dependent on the y value. This would cause the tree to sway back and forth, while keeping everything connected. Make sure to have the effect be small at the root of the tree, you don’t want the tree moving around ;)
I already tried this. I defined a wind vector and gave every vertex a flexibility value, depending on the thickness of the branch.
But the movement is still quite unrealistic, cause it makes the whole tree sway back and fourth like a spring.
I wonder how Speedtree is dowing the movement stuff. Are there any papers out there concerning Speedtree?

This topic is closed to new replies.

Advertisement