Author Topic: animated tree - 1st try  (Read 11934 times)

Offline Kadri

  • Member
  • *
  • Posts: 8232
Re: animated tree - 1st try
« Reply #30 on: August 05, 2015, 12:51:34 PM »

Displacing the hidden ground a little brings too much wobbling to the object.
Might work maybe but did not like it so much for trees.
For objects that are on water it might work better probably. Because there is a small Y displacement too.

Just changing the leaning effect in time is nice but doesn't look random like a wind effect.
Animating at the same time the Y rotation might be useful for objects that are not uniformly straight.

For trees it could be added maybe just for a little different motion.

If we could change the leaning effect with  other nodes that would be nice.
But it would still need different displacement like David is trying here probably.
« Last Edit: August 05, 2015, 10:33:04 PM by Kadri »

Offline kaedorg

  • Member
  • *
  • Posts: 795
Re: animated tree - 1st try
« Reply #31 on: August 05, 2015, 01:00:30 PM »
Here is the next try. Better but as I said previously, the twist at the base of the trunk is really bad.
I reduced a lot the values in the transform input shader.
No change on the PF for this one.
I think that the twist happens because I animate the 3 values. So next one will be with 2 animated values.


David

Offline Kadri

  • Member
  • *
  • Posts: 8232
Re: animated tree - 1st try
« Reply #32 on: August 05, 2015, 01:19:21 PM »

Much better.

Offline Kadri

  • Member
  • *
  • Posts: 8232
Re: animated tree - 1st try
« Reply #33 on: August 05, 2015, 01:30:20 PM »

Just because i like GIF's :)


Offline Dune

  • Terragen Alpha Tester (Win)
  • ***
  • Posts: 13691
  • Corkscrew Bird
    • www.ulco-art.nl
Re: animated tree - 1st try
« Reply #34 on: August 05, 2015, 03:55:09 PM »
Both nice. It's funny to watch the individual leaves of your tree, David. They rotate and go up and down, kind of. The best of course, would be to keep the stem of the leaf in place, wiggle the leaftop/end a little AND the whole tree and branches with their leaves. But that's awfully complicated; you'd need a mask based on the individual UV'd leaf (like the opacity map) to make a gradient for each leaf's movement (base black, tip white). But then the branches, pff... 
I like your gif too, Kadri, fascinating. So that's the strength of the rotation (by normal) animated? I have asked before if it's possible to have different bases for 'sitting on' and angle/normal. So you could add a displacement, but only the normal would be used to give an object another angle on the ground it's sitting on. I recall even as issue in the alpha forum, but I guess that's far from being a possibility. Rare use also, I guess. I wanted it to get trees to fall by wind, all in more or less one direction, but without needing to restrict the rotation of the instances from 0-360 to say 0-60. I did that another way (which worked).
In case you still haven't seen enough of my work: www.ulco-art.nl

Offline Kadri

  • Member
  • *
  • Posts: 8232
Re: animated tree - 1st try
« Reply #35 on: August 05, 2015, 04:11:54 PM »

Not sure what you exactly mean Ulco.
The GIF version is only animated with the "Lean effect".

I tried the "Minimum and Maximum Y rotation" too as i tried to explain in my above post.
But it rotates only in the Y axis. I think you mean this?
If a grass object -for example- does have a bended shape it could help to sell a little more variance in motion maybe.

Offline Kadri

  • Member
  • *
  • Posts: 8232
Re: animated tree - 1st try
« Reply #36 on: August 05, 2015, 07:12:46 PM »

The leaning effect could still be used with more then one populations
in the same space (masked) with different timing and-or values to break the similarity in the motion.

Offline Oshyan

  • Planetside Staff
  • *
  • Posts: 12203
  • Holy snagging ducks!
Re: animated tree - 1st try
« Reply #37 on: August 05, 2015, 07:30:34 PM »
The effect in that GIF is pretty cool!

kaedorg, I think for one thing your displacement is too *strong* (too high a value for Displacement Amplitude and/or multiplier). It also is moving in perhaps too many dimensions. I think 2 dimensions is probably fine, although of course a real tree moves in 3. But I would guess, for example, there is more side-to-side movement than up-and-down movement in real life...

- Oshyan

Offline Matt

  • Planetside Staff
  • *
  • Posts: 3032
  • I'm the crazy one
Re: animated tree - 1st try
« Reply #38 on: August 05, 2015, 08:37:23 PM »
When you use a Mesh Displacer, it's important to think about the direction of the displacement. For a wind effect, you want to displace in all 3 directions. I would use a Redirect Shader with 3 differently-seeded fractals plugged into X, Y and Z inputs. That way you will have random 3D deformation.

Displacement shaders displace along what they think is the surface normal. But for a wind effect you don't want to displace along the surface normal. Even if you did, with mesh displacement in current versions the surface normal isn't available anyway, so it just displaces along a vector pointing outwards from the object's origin, and that's why you see it bulging in and out at the base of the trunk. Either way, surface normal or vector pointing away from the origin, neither of those are going to look much like wind. Using the Redirect Shader you control the direction of the displacement.

Matt
« Last Edit: August 05, 2015, 08:40:30 PM by Matt »
Just because milk is white doesn't mean that clouds are made of milk.

Offline Kadri

  • Member
  • *
  • Posts: 8232
Re: animated tree - 1st try
« Reply #39 on: August 05, 2015, 08:53:01 PM »

Another small test.
This time with a transformed powerfractal that is restricted in altitude with a surface layer and an animated leaning effect.
Looks like it works (the restriction) but i have not looked closer.

If anyone wants to play more the file is below. There are many more possibilities.

Looks like you have something on your mind for the future Matt?  ::)  :)


« Last Edit: August 05, 2015, 09:19:51 PM by Kadri »

Offline Matt

  • Planetside Staff
  • *
  • Posts: 3032
  • I'm the crazy one
Re: animated tree - 1st try
« Reply #40 on: August 05, 2015, 11:33:29 PM »
Looks like you have something on your mind for the future Matt?  ::)  :)

Always :) This particular technique has been done by members of this forum before, so you don't have to wait for me to add something to make it happen. But truly realistic wind animation that considers the structure of the tree is another story that we will get to in future...

Matt
Just because milk is white doesn't mean that clouds are made of milk.

Offline Kadri

  • Member
  • *
  • Posts: 8232
Re: animated tree - 1st try
« Reply #41 on: August 06, 2015, 12:09:35 AM »

Yes, i was just having fun the first time myself :)

Offline kaedorg

  • Member
  • *
  • Posts: 795
Re: animated tree - 3st try
« Reply #42 on: August 06, 2015, 04:04:40 AM »
For this test, i followed Hannes' idea.
2 exact copies of the tree.
First one has the mesh displacer. Opacity set to 0 for the bark.
Second one has opacity set to 0 for the leaves.

I agree with Matt. Displacement is too strong for leaves. But now I get a method and it is just a question of time (and render time  :P) to find the good values.
I'll also study Ulco and Kadri ideas.


David

Offline Dune

  • Terragen Alpha Tester (Win)
  • ***
  • Posts: 13691
  • Corkscrew Bird
    • www.ulco-art.nl
Re: animated tree - 1st try
« Reply #43 on: August 06, 2015, 05:54:33 AM »
@ Kadri; your setup is exactly what I meant. Interesting to see where you get this, David.
In case you still haven't seen enough of my work: www.ulco-art.nl

Offline Kadri

  • Member
  • *
  • Posts: 8232
Re: animated tree - 1st try
« Reply #44 on: August 06, 2015, 08:07:16 AM »
@ Kadri; your setup is exactly what I meant...

:)

David that is close.Depends on the look you want.
I have more smaller moves in my mind for example.
Edit: One thing i would change is the animation seems to stop in the middle for all the leaves.
« Last Edit: August 06, 2015, 08:20:01 AM by Kadri »

 

anything