POV-Ray : Newsgroups : povray.binaries.animations : Wild Hose with Collision Detection Server Time
20 Jul 2024 11:15:35 EDT (-0400)
  Wild Hose with Collision Detection (Message 1 to 9 of 9)  
From: Rune
Subject: Wild Hose with Collision Detection
Date: 18 Feb 2001 17:59:26
Message: <3a9053ce@news.povray.org>
The same animation as before, but in larger resolution, spheres replaced
with blob components, and collision detection added.

The collision detection is just a simple bouncing function. The particles
just keep bouncing with the same percentage loss of energy at each bounce.
The good thing is that it should work with not just planes, but any object,
though I haven't tested it yet.

Rune
--
\ Include files, tutorials, 3D images, raytracing jokes,
/ The POV Desktop Theme, and The POV-Ray Logo Contest can
\ all be found at http://rsj.mobilixnet.dk (updated January 28)
/ Also visit http://www.povrayusers.org


Post a reply to this message


Attachments:
Download 'hose2.mpg' (111 KB)

From: Jan Walzer
Subject: Re: Wild Hose with Collision Detection
Date: 18 Feb 2001 18:13:13
Message: <3a905709@news.povray.org>
but the particles itself don't have collision-det. between them, have they ?

--
plane{y,0 pigment{color rgb 1}}camera{location<1,5,-2>look_at
0}light_source{10 color 1}#macro m(a,b,c,n,i)#if(i=0)cylinder{a,b,c/3
pigment{color rgb z}}#else #local f=vlength(a-b)/32;#local d=(b-a)/8;#local
e=(vcross(d,n)/vlength(vcross(d,n)))*f*4;m(a-e,a+2*d+e,f,n,i-1)m(a+e,a+2*d-e
,f,n,i-1)m(a+3*d-e,a+3*d+e,f,n,i-1)m(a+3*d-e,a+5*d-e,f,n,i-1)
m(a+6*d-e,a+6*d+e,f,n,i-1)m(a+8*d-e,a+8*d+e,f,n,i-1)#end #end
m(-4*x,2*x,1/8,y,4) // Jan Walzer


Post a reply to this message

From: Andy Cocker
Subject: Re: Wild Hose with Collision Detection
Date: 18 Feb 2001 18:43:33
Message: <3a905e25@news.povray.org>
Thanks Rune.. that is exactly what I had in mind. I trust it wasn't too
difficult?

I'd like to have control over the amount of energy lost on each bounce...
they didn't quite bounce as much as I'd have liked.

Well done (again)!  :-)

--
Andy Cocker

---------------------------------------------------------------
listen to my music at:
www.mp3.com/lunarland
---------------------------------------------------------------

'I spilled spot remover on my dog. He's gone now. '
'I went to a restaurant that serves "breakfast at any time."
So I ordered french toast during the Renaissance. '

 - Steven Wright.
---------------------------------------------------------------


Post a reply to this message

From: Rune
Subject: Re: Wild Hose with Collision Detection
Date: 19 Feb 2001 13:08:42
Message: <3a91612a$1@news.povray.org>
"Jan Walzer" wrote:
> but the particles itself don't have
> collision-det. between them, have they ?

No, and I have no plans of implementing it.

Rune
--
\ Include files, tutorials, 3D images, raytracing jokes,
/ The POV Desktop Theme, and The POV-Ray Logo Contest can
\ all be found at http://rsj.mobilixnet.dk (updated January 28)
/ Also visit http://www.povrayusers.org


Post a reply to this message

From: Rune
Subject: Re: Wild Hose with Collision Detection
Date: 19 Feb 2001 13:08:47
Message: <3a91612f@news.povray.org>
"Andy Cocker" wrote:
> Thanks Rune.. that is exactly what I had in mind.
> I trust it wasn't too difficult?

Not really. I made a weird bug though that took me a while to figure out.

> I'd like to have control over the amount of energy
> lost on each bounce...

If you mean what I think you mean, then it is already taken care of. You can
set one variable that affects all bounces. You cannot control the energy
loss for the 1st bounce, the 2nd bounce etc.

> they didn't quite bounce as much as I'd have liked.

Well, water drops don't really bounce very much, do they? But anyway, as I
said, you can control it yourself when the system is released.

> Well done (again)!  :-)

Thanks you! :)

Rune
--
\ Include files, tutorials, 3D images, raytracing jokes,
/ The POV Desktop Theme, and The POV-Ray Logo Contest can
\ all be found at http://rsj.mobilixnet.dk (updated January 28)
/ Also visit http://www.povrayusers.org


Post a reply to this message

From: Tony[B]
Subject: Re: Wild Hose with Collision Detection
Date: 19 Feb 2001 19:46:39
Message: <3a91be6f@news.povray.org>
Ooooooh!


Post a reply to this message

From: Sander
Subject: Re: Wild Hose with Collision Detection
Date: 20 Feb 2001 04:35:32
Message: <MPG.14fb939f589946d9896eb@NEWS.POVRAY.ORG>
In article <3a9053ce@news.povray.org>, Rune says...
> The same animation as before, but in larger resolution, spheres replaced
> with blob components, and collision detection added.
> 
> The collision detection is just a simple bouncing function. The particles
> just keep bouncing with the same percentage loss of energy at each bounce.
> The good thing is that it should work with not just planes, but any object,
> though I haven't tested it yet.
> 
> Rune
This looks great in MP7, no cycling in MP6.4 however. I would really 
like to see a longer animation with more detail :)
-- 
Regards,  Sander


Post a reply to this message

From: Rune
Subject: Re: Wild Hose with Collision Detection
Date: 20 Feb 2001 11:14:08
Message: <3a9297d0@news.povray.org>
"Sander" wrote:
> This looks great in MP7, no cycling in MP6.4 however.

It cycles fine for me with Media Player v6.4...
I'm using Win95.

> I would really like to see a longer animation with
> more detail :)

Maybe later... :)

Rune
--
\ Include files, tutorials, 3D images, raytracing jokes,
/ The POV Desktop Theme, and The POV-Ray Logo Contest can
\ all be found at http://rsj.mobilixnet.dk (updated January 28)
/ Also visit http://www.povrayusers.org


Post a reply to this message

From: Rune
Subject: Re: Wild Hose with Collision Detection
Date: 20 Feb 2001 11:14:09
Message: <3a9297d1@news.povray.org>
"Tony[B]" wrote in various threads:
> Wow...

:D

> Whoa...

:D

> Ooooooh!

:D

Rune
--
\ Include files, tutorials, 3D images, raytracing jokes,
/ The POV Desktop Theme, and The POV-Ray Logo Contest can
\ all be found at http://rsj.mobilixnet.dk (updated January 28)
/ Also visit http://www.povrayusers.org


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.