POV-Ray : Newsgroups : povray.unofficial.patches : Re: Newbie stupid question Server Time
1 Jul 2024 06:06:10 EDT (-0400)
  Re: Newbie stupid question (Message 1 to 9 of 9)  
From: Philippe Gibone
Subject: Re: Newbie stupid question
Date: 31 Jan 2003 13:12:28
Message: <3e3abc8c@news.povray.org>
Ooops I forgot to geepaig the image
Philippe

3e3aba16@news.povray.org...
> With a certain lack of imagination I tried to model a Newton pendulum with
> the mechsim macros, but I can't get rid of a bug in my scene : the two
balls
> get inside each other (look the attached image), what am I doing wrong. I
> use  MechSim_Show_All_Objects(-1, false, -1, "") to show the masses and my
> collision parameters are :
>     collision
>     {  1, 0
>      stiffness 60000
>      damping 3000
>     }
> Thanks for your help
> Philippe.
>
>
>


Post a reply to this message

From: Warp
Subject: Re: Newbie stupid question
Date: 31 Jan 2003 13:14:44
Message: <3e3abd14@news.povray.org>
You should not post binary attachments to non-binaries groups. Please
cancel your post and post to the appropriate .binaries.* group.
  (And when you do so, don't post it as bmp, but jpg or png.)

-- 
#macro M(A,N,D,L)plane{-z,-9pigment{mandel L*9translate N color_map{[0rgb x]
[1rgb 9]}scale<D,D*3D>*1e3}rotate y*A*8}#end M(-3<1.206434.28623>70,7)M(
-1<.7438.1795>1,20)M(1<.77595.13699>30,20)M(3<.75923.07145>80,99)// - Warp -


Post a reply to this message

From: Philippe Gibone
Subject: Re: Newbie stupid question
Date: 31 Jan 2003 13:20:32
Message: <3e3abe70$1@news.povray.org>
Sorry about that, how do I cancel a post ?
And which group is the binary for unofficial patches ?
Philippe


3e3abd14@news.povray.org...
>   You should not post binary attachments to non-binaries groups. Please
> cancel your post and post to the appropriate .binaries.* group.
>   (And when you do so, don't post it as bmp, but jpg or png.)
>
> --
> #macro M(A,N,D,L)plane{-z,-9pigment{mandel L*9translate N color_map{[0rgb
x]
> [1rgb 9]}scale<D,D*3D>*1e3}rotate y*A*8}#end M(-3<1.206434.28623>70,7)M(
> -1<.7438.1795>1,20)M(1<.77595.13699>30,20)M(3<.75923.07145>80,99)// -
Warp -


Post a reply to this message

From: Christoph Hormann
Subject: Re: Newbie stupid question
Date: 31 Jan 2003 16:15:13
Message: <3E3AE761.426AC982@gmx.de>
Philippe_Gibone wrote:
> 
> > With a certain lack of imagination I tried to model a Newton pendulum with
> > the mechsim macros, but I can't get rid of a bug in my scene : the two
> balls
> > get inside each other (look the attached image), what am I doing wrong. I
> > use  MechSim_Show_All_Objects(-1, false, -1, "") to show the masses and my
> > collision parameters are :
> >     collision
> >     {  1, 0
> >      stiffness 60000
> >      damping 3000
> >     }
> > Thanks for your help
> > Philippe.

This does not help to determine the origin of the problem.  A complete
scene (or at least the mechsim{} block) would be helpful.

Christoph

-- 
POV-Ray tutorials, include files, Sim-POV,
HCR-Edit and more: http://www.tu-bs.de/~y0013390/
Last updated 31 Dec. 2002 _____./\/^>_*_<^\/\.______


Post a reply to this message

From: Philippe Gibone
Subject: Re: Newbie stupid question
Date: 31 Jan 2003 16:37:15
Message: <3e3aec8b@news.povray.org>
Hi Christoph

Thanks for your time, here it is

<Source>
#version unofficial megapov 1.0;

#include "D:\Ray Tracing\MegaPov\include\mechsim.inc"

global_settings {
  assumed_gamma 1.0

  mechsim {
    gravity <0, 0, -9.81>
    method 1

    collision
    {
     1, 0
     stiffness 60000
     damping 3000
    }
    environment {
//      object plane {  z, 0}
      stiffness 60000
      damping 10000
      friction 0.1, 1.001
      method 2
    }


    #if (clock_on)
      step_count 3000
      time_step (1/30)/3000

      topology {
        load_file "tut04.dat"
        save_file "tut04.dat"
      }
    #else
      step_count 0

      topology {
        mass { <    0, 0.0, 2.4>, <0, 0, 0>, 0.1 density 5000 fixed on }
        mass { <-0.30, 0.0, 2.4>, <0, 0, 0>, 0.1 density 5000 fixed on }
        mass { <-0.70, 0.0, 2.4>, <0, 0, 0>, 0.1 density 5000 fixed on }
        mass { <-1.10, 0.0, 2.4>, <0, 0, 0>, 0.1 density 5000 fixed on }
        mass { <-1.50, 0.0, 2.4>, <0, 0, 0>, 0.1 density 5000 fixed on }
        mass { < 1.40, 0.0, 2.4>, <0, 0, 0>, 0.2 density 5000  }
        mass { <-0.30, 0.0, 1.0>, <0, 0, 0>, 0.2 density 5000  }
        mass { <-0.70, 0.0, 1.0>, <0, 0, 0>, 0.2 density 5000  }
        mass { <-1.10, 0.0, 1.0>, <0, 0, 0>, 0.2 density 5000  }
        mass { <-1.50, 0.0, 1.0>, <0, 0, 0>, 0.2 density 5000  }
        connection { 0, 5 stiffness 150000 damping 2000 }
        connection { 1, 6 stiffness 150000 damping 2000 }
        connection { 2, 7 stiffness 150000 damping 2000 }
        connection { 3, 8 stiffness 150000 damping 2000 }
        connection { 4, 9 stiffness 150000 damping 2000 }
        save_file "tut04.dat"
      }
    #end
  }
}

// ----------------------------------------

camera {
  location  <-0.10, -16.0, 1.7>*0.6
  up z
  sky z
  look_at   <0.0, 0.0, 0.7>
  angle 30
}

light_source {
  <2000, -3000, 2700>
  color rgb <1.7, 1.5, 1.2>
}

sky_sphere {
  pigment {
    gradient z
    color_map {
      [0.0 rgb <0.6,0.7,1.0>]
      [0.2 rgb <0.2,0.3,0.9>]
    }
  }
}

// ----------------------------------------

#declare T_Env=
  texture {
    pigment { color rgb 1.5 }
    finish { ambient 0.05 diffuse 0.6 }
  }


plane {
  z, 0
  texture { T_Env }
}

// ----------------------------------------

MechSim_Show_All_Objects(-1, false, -1, "")

</Source>


Post a reply to this message

From: hughes, b 
Subject: Re: Newbie stupid question
Date: 31 Jan 2003 19:15:19
Message: <3e3b1197@news.povray.org>
"Philippe_Gibone" <Ph.### [at] wanadoofr> wrote in message
news:3e3abe70$1@news.povray.org...
> Sorry about that, how do I cancel a post ?
> And which group is the binary for unofficial patches ?

Since you seem to use Outlook Express 6, you highlight the message, go to
the Message menu, Cancel Message. Looks like you or someone else got this
taken care of already.

povray.binaries.images is fine for when it's a picture alone, even if it's
about something else other than just a casual rendering.
povray.binaries.scene-files if you post a set of files together or have a
pov scene file to upload.


Post a reply to this message

From: Christoph Hormann
Subject: Re: Newbie stupid question
Date: 1 Feb 2003 12:01:24
Message: <3E3BFD63.373C03B5@gmx.de>
Your collision stiffness is simply way too low (and combined with a high
damping).  Increasing it to something like 1e6 (or alternatively strongly
decreasing the masses) will help (but you will have to be careful with the
simulation stepping to avoid instability).  None the less you will
probably have problems getting the results you intend - this kind of
pendulum is very bad to simulate since in the real world the masses
experience very high accelerations.

Christoph

-- 
POV-Ray tutorials, include files, Sim-POV,
HCR-Edit and more: http://www.tu-bs.de/~y0013390/
Last updated 31 Dec. 2002 _____./\/^>_*_<^\/\.______


Post a reply to this message

From: Philippe Gibone
Subject: Re: Newbie stupid question
Date: 1 Feb 2003 17:30:00
Message: <3e3c4a68@news.povray.org>
I will try this. I was suspecting something like that, but as I was using
the stiffness and damping of the tutorial3 I thaught they were ok
Thanks a lot, I'll let you know

Philippe

3E3BFD63.373C03B5@gmx.de...
>
>
> Your collision stiffness is simply way too low (and combined with a high
> damping).  Increasing it to something like 1e6 (or alternatively strongly
> decreasing the masses) will help (but you will have to be careful with the
> simulation stepping to avoid instability).  None the less you will
> probably have problems getting the results you intend - this kind of
> pendulum is very bad to simulate since in the real world the masses
> experience very high accelerations.
>
> Christoph
>
> --
> POV-Ray tutorials, include files, Sim-POV,
> HCR-Edit and more: http://www.tu-bs.de/~y0013390/
> Last updated 31 Dec. 2002 _____./\/^>_*_<^\/\.______


Post a reply to this message

From: Philippe Gibone
Subject: Re: Newbie stupid question
Date: 2 Feb 2003 02:04:17
Message: <3e3cc2f1@news.povray.org>
Hi Christoph

It worked just fine, and I had no problem with instability, and the result,
altought boring, is not too far from reality.

Philippe


3E3BFD63.373C03B5@gmx.de...
>
>
> Your collision stiffness is simply way too low (and combined with a high
> damping).  Increasing it to something like 1e6 (or alternatively strongly
> decreasing the masses) will help (but you will have to be careful with the
> simulation stepping to avoid instability).  None the less you will
> probably have problems getting the results you intend - this kind of
> pendulum is very bad to simulate since in the real world the masses
> experience very high accelerations.
>
> Christoph
>
> --
> POV-Ray tutorials, include files, Sim-POV,
> HCR-Edit and more: http://www.tu-bs.de/~y0013390/
> Last updated 31 Dec. 2002 _____./\/^>_*_<^\/\.______


Post a reply to this message

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