POV-Ray : Newsgroups : povray.binaries.animations : Stacked Bouncing Balls (MPG, 404 KB) : Re: Stacked Bouncing Balls (MPG, 404 KB) Server Time
19 Jul 2024 03:22:15 EDT (-0400)
  Re: Stacked Bouncing Balls (MPG, 404 KB)  
From: Christoph Hormann
Date: 19 Sep 2003 07:37:31
Message: <kh9r31-tht.ln1@triton.schunter.etc.tu-bs.de>
None wrote:
> I've been having fun with my balls... uh, anyway, I've converted that old C 
> code of mine entirely to SDL.
> 
> The physics, the ball collisions and rotations are pretty solid.  Stupidly, 
> the part I haven't gotten my head around entirely is how to rotate the 
> Povray spheres for display!  You'll notice the ball rotations "drift" a 
> little, visually not rotating exactly as the physics engine is rotating.  
> So, while the physics is doing the right thing, the Povray ball "rotation" 
> visuals seem to indicate something's off, but it's just the sphere's visual 
> rotation.  I wish I could just directly apply my physics rotation vectors 
> to the sphere.

You can apply any convential rotation matrix to a POV-Ray object using 
the 'matrix' keyword.

Christoph

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


Post a reply to this message

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