 |
 |
|
 |
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Hi, all.
The other day I had an idea of how to make realistic animated ocean
waves. Now I have implemented a first version of it and it turned out
quite well. It's not finished, I still have some things to try. It also
needs a better material.
Animation: http://www.daniel-nilsson.com/ocean01.mpg (1.6Mb)
Statistics: http://www.daniel-nilsson.com/ocean01.txt (for 250 frames)
The ocean surface is a mesh2 generated from a parametric surface defined
by three functions: x(u,v,t), y(u,v,t), z(u,v,t). I tried to use a
parametric object instead of mesh but it is much slower and looks no
better. The material is a uv mapped texture map using a function pattern
that controls the amount of foam.
There is no data saved between frames, no slow simulations, just
functions. It actually rendered much faster then I though it would,
almost 10 frames/minute on one core of my core2 quad @2.4GHz for 320x240
and no aa.
I'll post the code when it is finished and cleaned up.
--
Daniel Nilsson
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Daniel Nilsson <pov### [at] daniel-nilsson com> wrote:
> Animation: http://www.daniel-nilsson.com/ocean01.mpg (1.6Mb)
Hum... Media Player won't play media...
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
clipka nous illumina en ce 2009-01-22 19:31 -->
> Daniel Nilsson <pov### [at] daniel-nilsson com> wrote:
>> Animation: http://www.daniel-nilsson.com/ocean01.mpg (1.6Mb)
>
> Hum... Media Player won't play media...
>
>
Same thing here. Refuse to play.
--
Alain
-------------------------------------------------
Where the press is free and every man able to read, all is safe.
Thomas Jefferson
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
clipka wrote:
> Daniel Nilsson <pov### [at] daniel-nilsson com> wrote:
>> Animation: http://www.daniel-nilsson.com/ocean01.mpg (1.6Mb)
>
> Hum... Media Player won't play media...
>
>
Try right-click on link, save to desktop, then play it from there. Works
OK for me.
Jack
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Alain <ele### [at] netscape net> wrote:
> > Hum... Media Player won't play media...
> >
> Same thing here. Refuse to play.
Glad to here it's not just my MP being crapped up again... had a problem
recently with that "alien in the park" movie, where my MP wouldn't install a
proper codec automatically for some stupid reason, so I had to find out how to
do that manually.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
jj <noname@newsgroup> wrote:
> > Hum... Media Player won't play media...
> >
> Try right-click on link, save to desktop, then play it from there. Works
> OK for me.
Was the first thing I did when it didn't play right from the net. No-go though.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
On Fri, 23 Jan 2009 04:53:50 EST, "clipka" <nomail@nomail> wrote:
>jj <noname@newsgroup> wrote:
>> > Hum... Media Player won't play media...
>> >
>> Try right-click on link, save to desktop, then play it from there. Works
>> OK for me.
>
>Was the first thing I did when it didn't play right from the net. No-go though.
>
>
VCL Media Player plays just about anything even broken downloads.
--
Regards
Stephen
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Alain wrote:
> clipka nous illumina en ce 2009-01-22 19:31 -->
>> Daniel Nilsson <pov### [at] daniel-nilsson com> wrote:
>>> Animation: http://www.daniel-nilsson.com/ocean01.mpg (1.6Mb)
>>
>> Hum... Media Player won't play media...
>>
>>
> Same thing here. Refuse to play.
>
Hmm, I encoded it with mencoder in linux with some settings I found on
the net. If someone can tell me some working options I'll use them.
Otherwise I will experiment some and test in windows before posting the
next time. I'm new to video encoding so I though that a MPEG-1 file is a
MPEG-1 file, and works everywhere. Obviously, that's not the case.
--
Daniel Nilsson
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Stephen <mcavoysAT@aolDOTcom> wrote:
> VCL Media Player plays just about anything even broken downloads.
Thanks for the advice, but I'd like to stick to WMP if it can be helped.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Daniel Nilsson <pov### [at] daniel-nilsson com> wrote:
> Hmm, I encoded it with mencoder in linux with some settings I found on
> the net. If someone can tell me some working options I'll use them.
> Otherwise I will experiment some and test in windows before posting the
> next time. I'm new to video encoding so I though that a MPEG-1 file is a
> MPEG-1 file, and works everywhere. Obviously, that's not the case.
That's what I thought as well - and I also thought that a .wma file is a .wma
file... but WMP keeps giving me painful lessons on this topic :-/
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
clipka wrote:
> Thanks for the advice, but I'd like to stick to WMP if it can be helped.
Purely out of curiosity: Why?
(I ask this because it makes little sense to me. VLC, like mplayer, is
quite notorious for its extensive and high-quality support for a very
wide variety of video and audio formats, so there's a high probability
that it will play almost anything you throw at it, if it's a video file.
And it's not like it would *replace* WMP. You would have it alongside
it, so you can always *choose* which one to use. Thus I honestly don't
see any logical reason to avoid trying VLC.)
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
On Fri, 23 Jan 2009 12:38:42 EST, "clipka" <nomail@nomail> wrote:
>Stephen <mcavoysAT@aolDOTcom> wrote:
>> VCL Media Player plays just about anything even broken downloads.
>
>Thanks for the advice, but I'd like to stick to WMP if it can be helped.
>
>
Like Warp said, you can use it alongside your usual app. I do.
--
Regards
Stephen
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
"clipka" <nomail@nomail> wrote:
> Daniel Nilsson <pov### [at] daniel-nilsson com> wrote:
> > Animation: http://www.daniel-nilsson.com/ocean01.mpg (1.6Mb)
>
> Hum... Media Player won't play media...
It comes up in Quicktime on my Windows XP SP3, and plays OK. But I've forgotten
how I changed the default MPEG player to QT. :-( WMP gives me trouble with some
other formats, too. (BTW, I downloaded the xvid codec package today; will be
using that from now on to compress my own animations into MPEG. Seems to be of
excellent quality.)
I like the animation, especially the look of the foam. My only suggestion would
be to speed up the action 2-3 times. Kind of slow as-is.
Ken W.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Warp <war### [at] tag povray org> wrote:
> > Thanks for the advice, but I'd like to stick to WMP if it can be helped.
>
> Purely out of curiosity: Why?
>
> (I ask this because it makes little sense to me. VLC, like mplayer, is
> quite notorious for its extensive and high-quality support for a very
> wide variety of video and audio formats, so there's a high probability
> that it will play almost anything you throw at it, if it's a video file.
> And it's not like it would *replace* WMP. You would have it alongside
> it, so you can always *choose* which one to use. Thus I honestly don't
> see any logical reason to avoid trying VLC.)
Exactly because of that: I do not *want* two things for the same job. Probably
because I'd hate having to adapt to different UIs on a daily basis.
And, having all my mp3 collection in WMP's media library, and having gotten
accustomed to how it's operated, I'd prefer that one single thing to be the
WMP, not some new piece of software.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Stephen wrote:
> On Fri, 23 Jan 2009 04:53:50 EST, "clipka" <nomail@nomail> wrote:
>
>> jj <noname@newsgroup> wrote:
>>>> Hum... Media Player won't play media...
>>>>
>>> Try right-click on link, save to desktop, then play it from there. Works
>>> OK for me.
>> Was the first thing I did when it didn't play right from the net. No-go though.
>>
>>
> VCL Media Player plays just about anything even broken downloads.
Yeah. I forgot to mention that I was using VLC.
Jack
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Alain <ele### [at] netscape net> wrote:
> clipka nous illumina en ce 2009-01-22 19:31 -->
> > Daniel Nilsson <pov### [at] daniel-nilsson com> wrote:
> >> Animation: http://www.daniel-nilsson.com/ocean01.mpg (1.6Mb)
> >
> > Hum... Media Player won't play media...
> >
> >
> Same thing here. Refuse to play.
Works nicely here both from within Firefox itself or with Totem, let alone more
robust Mplayer and Vcl. The WMP in my father's older XP box wouldn't even play
mp3, a barebones piece of crap. :P
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Stephen <mcavoysAT@aolDOTcom> wrote:
> On Fri, 23 Jan 2009 12:38:42 EST, "clipka" <nomail@nomail> wrote:
>
> >Stephen <mcavoysAT@aolDOTcom> wrote:
> >> VCL Media Player plays just about anything even broken downloads.
> >
> >Thanks for the advice, but I'd like to stick to WMP if it can be helped.
> >
> >
> Like Warp said, you can use it alongside your usual app. I do.
No, he can't. He's on a moral crusade about the immoral FSF advances. ;)
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
clipka wrote:
> Exactly because of that: I do not *want* two things for the same job. Probably
> because I'd hate having to adapt to different UIs on a daily basis.
Well, if you willingly want to succumb to resistance to change, then I
suppose you'll have to suffer WMP's deficiencies.
It still doesn't make sense to me, but that's just me.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
"nemesis" <nam### [at] gmail com> wrote:
> > Like Warp said, you can use it alongside your usual app. I do.
>
> No, he can't. He's on a moral crusade about the immoral FSF advances. ;)
:P
No, he's just too lazy to learn the UI of two apps doing just about the same.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Warp <war### [at] tag povray org> wrote:
> clipka wrote:
> > Exactly because of that: I do not *want* two things for the same job. Probably
> > because I'd hate having to adapt to different UIs on a daily basis.
>
> Well, if you willingly want to succumb to resistance to change, then I
> suppose you'll have to suffer WMP's deficiencies.
>
> It still doesn't make sense to me, but that's just me.
I imagine it's just perfectly normal inertia as one grows older... (can't
compete with some other guys here yet, but anyway, me I've never been older
before than today :))
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
"Kenneth" <kdw### [at] earthlink net> wrote:
> It comes up in Quicktime on my Windows XP SP3, and plays OK. But I've forgotten
> how I changed the default MPEG player to QT. :-(
Oops, I forgot to mention that I'm using Firefox.
KW
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |