POV-Ray : Newsgroups : povray.binaries.images : Gravity Well 4 Server Time
18 Aug 2024 08:27:22 EDT (-0400)
  Gravity Well 4 (Message 1 to 9 of 9)  
From: Bill DeWitt
Subject: Gravity Well 4
Date: 1 Jun 2001 16:29:23
Message: <3b17fb23@news.povray.org>
A little more detail to show the wrapping of levels around the planets.


Post a reply to this message


Attachments:
Download 'GW04.jpg' (125 KB)

Preview of image 'GW04.jpg'
GW04.jpg


 

From: Simon Lemieux
Subject: Re: Gravity Well 4
Date: 1 Jun 2001 18:42:32
Message: <3B181B5C.F5A60862@yahoo.com>
>  A little more detail to show the wrapping of levels around the planets.

Wow, I wonder since in theory you wouldn't have any friction and decided to
throw a marble in this gravity well...  Well, I think if you'd look at it from a
camera angle like the one you currently have, it would just look like a marble
rolling from side to side, never stopping since there would be no friction,
etc...  but on the top side, as a 2D view of this, you would probably see the
marble orbiting around planets and accelerating near them and slowing down when
it's far away...

Which is very realisitic!

I wonder actually what it would like if the "planets" you got there were
orbiting around each other like a solar system and see the grid deform to show
the gravity change in space...  And throw the marble then!  What an animation it
would be!


-- 
||  'How do you know I'm mad?' said Alice.
||  'You must be,' said the Cat, 'or you wouldn't have come here.'
--
 Simon Lemieux  (lem### [at] yahoocom)


Post a reply to this message

From: Bill DeWitt
Subject: Re: Gravity Well 4
Date: 1 Jun 2001 23:40:04
Message: <3b186014@news.povray.org>
"Simon Lemieux" <lem### [at] yahoocom> wrote :
>
> you would probably see the
> marble orbiting around planets and accelerating near them and slowing down
when
> it's far away...

    That's the idea... if I had all the numbers right at least...


Post a reply to this message

From: Simon Lemieux
Subject: Re: Gravity Well 4
Date: 2 Jun 2001 01:39:28
Message: <3B187D18.10836FEF@yahoo.com>
>     That's the idea... if I had all the numbers right at least...

All the numbers right?  But you do know such formulae right?  Otherwise, maybe I
could help?


-- 
||  'How do you know I'm mad?' said Alice.
||  'You must be,' said the Cat, 'or you wouldn't have come here.'
--
 Simon Lemieux  (lem### [at] yahoocom)


Post a reply to this message

From: Simen Kvaal
Subject: Re: Gravity Well 4
Date: 2 Jun 2001 05:33:53
Message: <3b18b301@news.povray.org>
>
> Wow, I wonder since in theory you wouldn't have any friction and decided
to
> throw a marble in this gravity well...  Well, I think if you'd look at it
from a
> camera angle like the one you currently have, it would just look like a
marble
> rolling from side to side, never stopping since there would be no
friction,
> etc...  but on the top side, as a 2D view of this, you would probably see
the
> marble orbiting around planets and accelerating near them and slowing down
when
> it's far away...
>

I have seen this in real life:

In Trondheim, Norway, there's a museum called Vitensenteret (the
Knowledge-center) which have this large, about 2x2 metres, "sink" with two
holes to resemple the potential from a twin star system. Then there are som
small balls to drop, push, throw or whatever into the sink to see it move
about as a planet would in real life. This was built to demonstrate chaotic
motion, as this kind of dynamical system is chaotic. In fact, one could
easily demonstrate it by letting the ball go from the same starting point
twice and observe what path it might take.

~simenkv.


Post a reply to this message

From: Bill DeWitt
Subject: Re: Gravity Well 4
Date: 2 Jun 2001 08:32:12
Message: <3b18dccc@news.povray.org>
"Simon Lemieux" <lem### [at] yahoocom> wrote in message
news:3B187D18.10836FEF@yahoo.com...
> >     That's the idea... if I had all the numbers right at least...
>
> All the numbers right?  But you do know such formulae right?  Otherwise,
maybe I
> could help?

    There's a chance you could help. Do you have the patience of a saint?
The perseverance of a bulldog? The kindness of a mother and the wisdom of
Job?

    In that case I would love to learn about orbits.


Post a reply to this message

From: Simon Lemieux
Subject: Re: Gravity Well 4
Date: 2 Jun 2001 15:18:28
Message: <3B193D12.BA0EAE64@yahoo.com>
>     There's a chance you could help. Do you have the patience of a saint?
> The perseverance of a bulldog? The kindness of a mother and the wisdom of
> Job?

Patience of a saint?  My friends often call me The Saint or Simon Templar, but
it might be for other reasons...  As for the others, I dunno...  But it cost not
much to try, so why not!

>     In that case I would love to learn about orbits.

The planets -as any other things- have a few vector values: Force(F), Speed(v),
Position(s) and Acceleration(a) (I'm french but I think the variables are
universal)

A vector is somewhat a line that goes from the origin and points out with a
Length and a Direction.

A car that is always running at 100mph will have a Speed vector of length 100mph
and any direction it is going in....  But then the accelerations for making it
turn are a bit complex...  Just as the ones that will move the planets into
orbit ;)


The relation between the vectors goes like this:
F = ma (where m is the mass of the object)
so a = F/m

vf = vi + a(Delta t)  (vf = final speed, vi = initial speed, Delta t is the
elapsed time since vi to vf)

(Delta s) = vi*(Delta t) + (a (Delta t)^2)/2
Delta is is the movement since last position, you just add (si) to (Delta s)


It is possible to multiply/divide a vector with a constant, such as (F = ma).
You would only have to multiply the Length of the vector with the constant or
divide. And the direction stays the same.

When adding vectors together, -let me try this graphically- you draw the first
vector as a line (point A to B) of length Length and angle Direction.  Then you
draw the second vector with point C over point B and then from there you draw
the line with length Length and angle Direction:

                   (C)
                   /
                  /
                 /
(A)------------(B)

or

       (B).........
       / \ angle |
      /   \      /
     /___  \____/
    /    \  \
   /      \  \
  / angle |   \
(A)........   (C)


So now that you know how to compute the length of the final position of a car
going in a direction. You might'd like to know how to get the vector's
component, that is X, Y, Z.  If you want to work in 3D you'll need two Angles
for the direction, but you don't need it for your planets, since they'll move in
a 2D axis...

X = Length * cos( angle )
Y = Length * sin( angle )

You can now move the car to that position and then rotate it to face its
direction and continue playing...

Sorry for the lack of drawings, if the too many formulaes and explanations
comfused you too much I might try to rewrite this in a PDF with pictures and
good formulas...

At last the gravitationnal formula:

F = G * ( m1 * m2 )/(d^2)
Where m1 is the mass of current planet, 
m2 is the mass of second planet,
d is the distance that separate both planets,
and G is the gravitationnal constant:
   G = 6.67 *10^-11  (unit: N*m^2/kg^2)

Hmm, since you would need d to be a vector and then have the multiplication of a
vector with another vector (d^2)...  This is very difficult to explain, i'll try
in another post...  Try to understand what I just said in this post as a first
lesson, then we'll move on to the next!

Simon

-- 
||  'How do you know I'm mad?' said Alice.
||  'You must be,' said the Cat, 'or you wouldn't have come here.'
--
 Simon Lemieux  (lem### [at] yahoocom)


Post a reply to this message

From: Shay
Subject: Re: Gravity Well 4
Date: 6 Jun 2001 11:22:37
Message: <3b1e4abd$1@news.povray.org>
Thanks for posting that, Bill. I enjoyed learning it.

 -Shay


Post a reply to this message

From: Ian Burgmyer
Subject: Re: Gravity Well 4
Date: 8 Jun 2001 19:51:10
Message: <3b2164ee$1@news.povray.org>
This looks very cool!

What'd you do to get the effect?

-Ian


Post a reply to this message

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