General Category > Ongoing Anim8or Development

Animated Parameteric Plug-in Scripts

<< < (3/7) > >>

2020 Hindsight:
I’ve had a bit of a play with the animated waves, and tried to give the impression of interaction between an object and water.

I added a function to the script to make a boat hull shaped splash. I felt that otherwise it looks artificial - I probably should do another animation without calling the addBoat() function, and compare them:
/* Function: $addBoat( float $x, float $y, float $direction, float $length, float $width )
 *
 * x,y - Center of boat
 * direction - direction boat is pointing
 * length - length of the boat
 * width - width of the boat
 */

If you set the width to the same value as the length, then your boat is a coracle, or Rover from The Prisoner, as I have animated! (Well a sphere is a lot easier to model than a boat!)

Having the ball bobbing around a bit would help with the realism.

The function adds a number of decaying wave sources around the periphery of the boat:
$DecayingWaveOrigins.push( ($x + $len_x * $dy - $len_y * $dx,
                            $y + $len_x * $dx + $len_y * $dy,
                            1, 12) ); // amplitude, wave length

The last two parameters set the wave height and the wave length.

Anyway here is the result:
[/youtube]

I notice that the video on YouTube isn’t as sharp as the video I uploaded. I have been using the “Intel IYUV codec” for video compression. Is there a better choice for uploading to YouTube?

2020 Hindsight:
The addBoat() function can make boat shaped splashes too (well ellipses anyway).

Here is an animation I made testing this functionality – you see the splashes but I haven’t added a boat.

I think I used a length of 20, a width of 5, and an angle of PI/6 radians (which is 30 degrees).

2020 Hindsight:
Waves around ball but with no call of addBoat()
(For comparison with "Waves around a ball animation, with decaying waves around the ball.")

[/youtube]
The second video is the video I posted before of "Waves around a ball animation, with decaying waves around the ball."

As I mentioned in the earlier post: It is a shame that the YouTube video quality is so fuzzy – the video I uploaded was nice and crisp. I have been using the “Intel IYUV codec” for video compression. Is there a better choice for uploading to YouTube?

johnar:
 Just wanted to say how sweet that animated water looks.
At first it looked, to me, like the ground grid was underneath  and scene mode had been flooded.
 Really cool stuff.


 

Steve:
johnae the ground grid is underneath the water. The water has an index of refraction of 1.3 which redirects the rays as you look trough the surface.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version