POV-Ray : Newsgroups : povray.animations : Bullet physics engine test Server Time
26 Apr 2026 09:16:12 EDT (-0400)
  Bullet physics engine test (Message 1 to 10 of 20)  
Goto Latest 10 Messages Next 10 Messages >>>
From: Cossack 
Subject: Bullet physics engine test
Date: 19 Apr 2026 10:35:01
Message: <web.69e4e7df3c4344a04c62c22fd49cbb40@news.povray.org>
just a small demonstration .;]


Post a reply to this message


Attachments:
Download 'output.mp4.dat' (3967 KB)

From: Leroy
Subject: Re: Bullet physics engine test
Date: 19 Apr 2026 14:25:00
Message: <web.69e51d3688b2671dfa68d3e7f712fc00@news.povray.org>
"Cossack " <nomail@nomail> wrote:
> just a small demonstration .;]

Cool! Wondering how long to parse & render it?

Have Fun!


Post a reply to this message

From: Kenneth
Subject: Re: Bullet physics engine test
Date: 20 Apr 2026 08:30:00
Message: <web.69e61b2088b2671de83955656e066e29@news.povray.org>
Very cool!

I have always wanted to play with this 'bullet physics' code in POV-ray, but I
have no idea how to get it to run in MS Windows, or if it is even available in a
'Windows friendly' form. (I am not a C/C++ programmer.)

Has anyone in the POV-ray community ever built a version that will run? I seem
to vaguely remember *someone* doing that in the past...or maybe it was just for
Linux/Unix?


Post a reply to this message

From: jr
Subject: Re: Bullet physics engine test
Date: 20 Apr 2026 10:35:00
Message: <web.69e6387388b2671d48bf72fa6cde94f1@news.povray.org>
hi,

"Cossack " <nomail@nomail> wrote:
> just a small demonstration .;]

very nice.  (and yes, (many) questions :-) like Leroy's, was it rendered on the
phone ?)


"Kenneth" <kdw### [at] gmailcom> wrote:
> Very cool!
>
> I have always wanted to play with this 'bullet physics' code in POV-ray, but I
> have no idea how to get it to run in MS Windows, or if it is even available in a
> 'Windows friendly' form. (I am not a C/C++ programmer.)
>
> Has anyone in the POV-ray community ever built a version that will run? I seem
> to vaguely remember *someone* doing that in the past...or maybe it was just for
> Linux/Unix?

I found the attached 2003 code by Alain Ducharme in TdG's (extensive) archives,
a "Povray rigid ball dynamics simulator", not quite "bullet physics" but...  all
in SDL, no other languages needed; I'm sure that there will be other code, 30+
years is a long time.  there is no explicit mention of licensing, but the author
writes "in the meantime, you may wish to collapse the required macros into your
main SimBall .pov files" -- sounds "permissive".  two (quickly rendered :-))
animations AD wrote:
<drive.google.com/file/d/1YASVkhbwLadwsHq3tuSlJZWRklMttItK/view?usp=sharing>
<drive.google.com/file/d/1vjarr_s4miZQqaDZQY6ztNMxMsdVAloH/view?usp=sharing>


regards, jr.


Post a reply to this message


Attachments:
Download 'ad_simballs.zip' (20 KB)

From: Kenneth
Subject: Re: Bullet physics engine test
Date: 22 Apr 2026 08:15:00
Message: <web.69e8bb0388b2671de83955656e066e29@news.povray.org>
"jr" <cre### [at] gmailcom> wrote:
>
> I found the attached 2003 code by Alain Ducharme in TdG's (extensive) archives,
> a "Povray rigid ball dynamics simulator"...

Many thanks! I plan to play around with it.

In looking through some of Alain D's code, I see that he uses... quaternions.
Very cool! (I'm attempting to learn and understand the basics of their use...
and to re-learn the concepts of imaginary/complex numbers in general. I have
never used any of that stuff in 'real life', not since my university days eons
ago.)

Your animation examples are really neat too; thanks for those as well.

------
Could you post a link to TdG's archive(s)? I thought I had that somewhere, but
nope :-(


Post a reply to this message

From: jr
Subject: Re: Bullet physics engine test
Date: 22 Apr 2026 08:50:01
Message: <web.69e8c30388b2671d48bf72fa6cde94f1@news.povray.org>
hi,

"Kenneth" <kdw### [at] gmailcom> wrote:
> "jr" <cre### [at] gmailcom> wrote:
> >
> > I found the attached 2003 code by Alain Ducharme ...
> Many thanks! I plan to play around with it.
> In looking through some of Alain D's code, I see that he uses... quaternions.
> Very cool! (I'm attempting to learn and understand the basics of their use...
> and to re-learn the concepts of imaginary/complex numbers in general. I have
> never used any of that stuff in 'real life', not since my university days eons
> ago.)

good.  (and yes, Alain's code is well "above my pay grade", guessing BE will rub
his hands in glee.. :-))


> Your animation examples are really neat too; thanks for those as well.

they're simply two of Alain's files, as you will see.


> Could you post a link to TdG's archive(s)? I thought I had that somewhere, but
> nope :-(

unsurprising :-), unpublished as yet.  Thomas is in the middle of working out
"representation" and such, keep an eye on his wiki page in the meantime.


regards, jr.


Post a reply to this message

From: kurtz le pirate
Subject: Re: Bullet physics engine test
Date: 22 Apr 2026 12:56:49
Message: <69e8fdd1$1@news.povray.org>
On 20/04/2026 14:25, Kenneth wrote:
> Very cool!
> 
> I have always wanted to play with this 'bullet physics' code in POV-ray, but I
> have no idea how to get it to run in MS Windows, or if it is even available in a
> 'Windows friendly' form. (I am not a C/C++ programmer.)
> 
> Has anyone in the POV-ray community ever built a version that will run? I seem
> to vaguely remember *someone* doing that in the past...or maybe it was just for
> Linux/Unix?
> 
> 

Some interesting links:

<http://jeberger.free.fr/povray/cloth/cloth.html>
<https://www.imagico.de/pov/tools_en.php>



-- 
kurtz le pirate
compagnie de la banquise


Post a reply to this message

From: Cossack 
Subject: Re: Bullet physics engine test
Date: 23 Apr 2026 05:20:00
Message: <web.69e9e06988b2671d4c62c22fd49cbb40@news.povray.org>
"jr" <cre### [at] gmailcom> wrote:
> hi,
>
> "Cossack " <nomail@nomail> wrote:
> > just a small demonstration .;]
>
> very nice.  (and yes, (many) questions :-) like Leroy's, was it rendered on the
> phone ?)
>
>
> "Kenneth" <kdw### [at] gmailcom> wrote:
> > Very cool!
> >
> > I have always wanted to play with this 'bullet physics' code in POV-ray, but I
> > have no idea how to get it to run in MS Windows, or if it is even available in a
> > 'Windows friendly' form. (I am not a C/C++ programmer.)
> >
> > Has anyone in the POV-ray community ever built a version that will run? I seem
> > to vaguely remember *someone* doing that in the past...or maybe it was just for
> > Linux/Unix?
>
> I found the attached 2003 code by Alain Ducharme in TdG's (extensive) archives,
> a "Povray rigid ball dynamics simulator", not quite "bullet physics" but...  all
> in SDL, no other languages needed; I'm sure that there will be other code, 30+
> years is a long time.  there is no explicit mention of licensing, but the author
> writes "in the meantime, you may wish to collapse the required macros into your
> main SimBall .pov files" -- sounds "permissive".  two (quickly rendered :-))
> animations AD wrote:
> <drive.google.com/file/d/1YASVkhbwLadwsHq3tuSlJZWRklMttItK/view?usp=sharing>
> <drive.google.com/file/d/1vjarr_s4miZQqaDZQY6ztNMxMsdVAloH/view?usp=sharing>
>
>
> regards, jr.

So I did the rendering on my phone, first I simulated the physics in the files
frame1.inc,
frame2.inc,...frame99.inc
And then I created a scene that reads this.
And bro, the physics are in the .inc format, that's cool :]


Post a reply to this message

From: jr
Subject: Re: Bullet physics engine test
Date: 23 Apr 2026 10:55:00
Message: <web.69ea320c88b2671d48bf72fa6cde94f1@news.povray.org>
hi,

"Cossack " <nomail@nomail> wrote:
> "jr" <cre### [at] gmailcom> wrote:
> > "Cossack " <nomail@nomail> wrote:
> > > just a small demonstration .;]
> > very nice.  (and yes, (many) questions :-) like Leroy's, was it rendered on the
> > phone ?)
> > ...
>
> So I did the rendering on my phone, first I simulated the physics in the files
> frame1.inc,
> frame2.inc,...frame99.inc
> And then I created a scene that reads this.
> And bro, the physics are in the .inc format, that's cool :]

I like the idea of putting the "phone" to a proper use :-)  if you also use a
PC, how do the render times compare, roughly ?  seeing your related thread ("How
to install UberPov on termux"), have not used UberPov, so cannot comment/help,
sorry, hope someone will, but I think that it would be real good ("informative")
if you could (continue to) post about using POV-Ray on an Android; here I have a
2nd hand iPhone SE I would like to put to work </grin>.


regards, jr.


Post a reply to this message

From: Bald Eagle
Subject: Re: Bullet physics engine test
Date: 23 Apr 2026 12:55:00
Message: <web.69ea4e8088b2671dda82d88b25979125@news.povray.org>
"jr" <cre### [at] gmailcom> wrote:

> good.  (and yes, Alain's code is well "above my pay grade", guessing BE will rub
> his hands in glee.. :-))

I'm not sad about it.
It's great that there's a whole include file that reliably implements
quaternions.
It's not copyrighted.
It's all in SDL, so it can be experimented with by anyone, and any code written
in c++ to provide source-level capability can be checked against the extant SDL.

I'm nominating this as a file to be put on the wiki as a special resource.
If TOK or someone with knowledge of the use of quaternions can look it over to
determine if there are any other functions/macros that would be needed for a
more complete quaternion library, that would be great.

It would also be nice of someone could rewrite the macros as functions so that
they can be used at render time.

- BE


Post a reply to this message

Goto Latest 10 Messages Next 10 Messages >>>

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