POV-Ray : Newsgroups : povray.general : Gravity Well simulation? Server Time
7 Aug 2024 19:23:53 EDT (-0400)
  Gravity Well simulation? (Message 1 to 10 of 13)  
Goto Latest 10 Messages Next 3 Messages >>>
From: Bill DeWitt
Subject: Gravity Well simulation?
Date: 28 May 2001 10:22:54
Message: <3b125f3e$1@news.povray.org>
I want to make an animation that shows how planets look in one of those
diagrams that show the gravity well as a flat surface that is dented where
the planets lay on it. I hope to make it look like spongy rubber instead of
a grid, maybe a mesh, but I can't imagine calculating all the points as the
pieces move...

    Any ideas gratefully accepted.


Post a reply to this message

From: Nekar Xenos
Subject: Re: Gravity Well simulation?
Date: 28 May 2001 10:31:03
Message: <3b126127@news.povray.org>
"Bill DeWitt" <bde### [at] cflrrcom> wrote in message
news:3b125f3e$1@news.povray.org...
>
>     I want to make an animation that shows how planets look in one of those
> diagrams that show the gravity well as a flat surface that is dented where
> the planets lay on it. I hope to make it look like spongy rubber instead of
> a grid, maybe a mesh, but I can't imagine calculating all the points as the
> pieces move...
>
>     Any ideas gratefully accepted.
>
>
I think that if you have the formula and can do isosurfaces, you could just do
an isosurface using the formula of the gravity well. Hmm, come to think of it, I
wonder what the formula that Gail posted in p.o-t. would look like as an
isosurface.

--
/* Nekar Xenos */#local N=<-20,40,100>;#local K=<20,-40,100>;#local R=seed(0);
blob{#while((K-N).x>0)#local X=N;#local N=N+<rand(R),rand(R),1>/3;#local N=(
vlength(N-K)<vlength(X-K)?N:2*X-N);sphere{<N.y,-N.x,N.z>,1,1 scale .02}sphere{N
,1,1 scale.02}sphere{<-N.x-40,N.y,N.z>1,1 scale.01}sphere{<N.x+40,-N.y,N.z>1,1
scale.01 }#end pigment{rgbt 1}interior{media{emission <2,4,5>*5}}hollow}


Post a reply to this message

From: Rick [Kitty5]
Subject: Re: Gravity Well simulation?
Date: 28 May 2001 10:38:33
Message: <3b1262e9@news.povray.org>
>     I want to make an animation that shows how planets look in one of
those
> diagrams that show the gravity well as a flat surface that is dented where
> the planets lay on it. I hope to make it look like spongy rubber instead
of
> a grid, maybe a mesh, but I can't imagine calculating all the points as
the
> pieces move...

how about using a cloth sim (or patch) - i think it will do it


--
Rick

Kitty5 WebDesign - http://Kitty5.com
Hi-Impact database driven web site design & e-commerce
TEL : +44 (01625) 266358 - FAX : +44 (01625) 611913 - ICQ : 15776037
POV-Ray News & Resources - http://Povray.co.uk

PGP Public Key
http://pgpkeys.mit.edu:11371/pks/lookup?op=get&search=0x231E1CEA


Post a reply to this message

From: Gail Shaw
Subject: Re: Gravity Well simulation?
Date: 28 May 2001 10:41:11
Message: <3b126387@news.povray.org>
Bill DeWitt <bde### [at] cflrrcom> wrote in message
news:3b125f3e$1@news.povray.org...
>
>     I want to make an animation that shows how planets look in one of
those
> diagrams that show the gravity well as a flat surface that is dented where
> the planets lay on it. I hope to make it look like spongy rubber instead
of
> a grid, maybe a mesh, but I can't imagine calculating all the points as
the
> pieces move...
>

As a surface, I have no idea, but you could use splines and create
parallel lines, kinda like in the image Tor Olav Kristensen posted
on 22 Nov 2000, titled "Iso-sombrero (78KB)" (But without the
underling surface)

Would probably work fairly well for a still, as for animating it
<shudder>

Gail
*************************************************************************
* gsh### [at] monotixcoza                *   Step into the abyss,           *
* http://www.rucus.ru.ac.za/~gail/   *   and let go.        Babylon 5   *
*************************************************************************
* The difficult we do immediately, the impossible takes a little longer *
*************************************************************************


Post a reply to this message

From: Bill DeWitt
Subject: Re: Gravity Well simulation?
Date: 28 May 2001 10:47:20
Message: <3b1264f8$1@news.povray.org>
"Rick [Kitty5]" <ric### [at] kitty5com> wrote in message
news:3b1262e9@news.povray.org...
> >     I want to make an animation that shows how planets look in one of
> those
> > diagrams that show the gravity well as a flat surface that is dented
where
> > the planets lay on it. I hope to make it look like spongy rubber instead
> of
> > a grid, maybe a mesh, but I can't imagine calculating all the points as
> the
> > pieces move...
>
> how about using a cloth sim (or patch) - i think it will do it

    I haven't been able to play with that yet. I followed the link to the
Windows version and it never loaded the page.

    I'm thinking Iso-Surface. Each planet should be a spot where the minus Y
is less and less for x and z. If done right you could load planets into a
macro that would write in how many planets and their masses...

    I am working on it, but my math is usually not up to such tasks...


Post a reply to this message

From: Bill DeWitt
Subject: Re: Gravity Well simulation?
Date: 28 May 2001 10:48:21
Message: <3b126535$1@news.povray.org>
"Nekar Xenos" <j-p### [at] citywalkcoza> wrote :
>
> I think that if you have the formula and can do isosurfaces, you could
just do
> an isosurface using the formula of the gravity well.

    Right, for me the problem usually is working the formula into the
isosurface...


Post a reply to this message

From: Bill DeWitt
Subject: Re: Gravity Well simulation?
Date: 28 May 2001 10:50:40
Message: <3b1265c0$1@news.povray.org>
"Gail Shaw" <gsh### [at] monotixcoza> wrote :
>
> As a surface, I have no idea, but you could use splines and create
> parallel lines, kinda like in the image Tor Olav Kristensen posted
> on 22 Nov 2000, titled "Iso-sombrero (78KB)" (But without the
> underling surface)
>
> Would probably work fairly well for a still, as for animating it
> <shudder>

    That -would- be scary...


Post a reply to this message

From: Nekar Xenos
Subject: Re: Gravity Well simulation?
Date: 28 May 2001 11:06:22
Message: <3b12696e@news.povray.org>
"Bill DeWitt" <bde### [at] cflrrcom> wrote in message
news:3b1264f8$1@news.povray.org...

> > how about using a cloth sim (or patch) - i think it will do it
>
>     I haven't been able to play with that yet. I followed the link to the
> Windows version and it never loaded the page.

Same here.


--
/* Nekar Xenos */#local N=<-20,40,100>;#local K=<20,-40,100>;#local R=seed(0);
blob{#while((K-N).x>0)#local X=N;#local N=N+<rand(R),rand(R),1>/3;#local N=(
vlength(N-K)<vlength(X-K)?N:2*X-N);sphere{<N.y,-N.x,N.z>,1,1 scale .02}sphere{N
,1,1 scale.02}sphere{<-N.x-40,N.y,N.z>1,1 scale.01}sphere{<N.x+40,-N.y,N.z>1,1
scale.01 }#end pigment{rgbt 1}interior{media{emission <2,4,5>*5}}hollow}


Post a reply to this message

From: Christoph Hormann
Subject: Re: Gravity Well simulation?
Date: 28 May 2001 11:11:20
Message: <3B126ADF.F8F2BA50@gmx.de>
Bill DeWitt wrote:
> 
>     I haven't been able to play with that yet. I followed the link to the
> Windows version and it never loaded the page.
> 

Maybe try it again, my page was not available yesterday, but it should
work again now, just the counter is broken, i hope that will be OK by
tomorrow too.

Christoph

-- 
Christoph Hormann <chr### [at] gmxde>
IsoWood include, radiosity tutorial, TransSkin and other 
things on: http://www.schunter.etc.tu-bs.de/~chris/


Post a reply to this message

From: Bill DeWitt
Subject: Re: Gravity Well simulation?
Date: 28 May 2001 12:39:49
Message: <3b127f55@news.povray.org>
I've made a start using isosurfaces. Here's the relevant portion...

#declare POSX = sin(clock*(pi*2))*5;
#declare POSZ = cos(clock*(pi*2))*5;

#declare Well1=function{sqr(-y)*(x^2+z^2)-5 }
#declare Well2=function{sqr(-y)*((x+POSX)^2+(z+POSZ)^2)-0.5 }

  isosurface{
      function { -y&Well1&Well2 }


Post a reply to this message

Goto Latest 10 Messages Next 3 Messages >>>

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