|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
"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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
|
|