POV-Ray : Newsgroups : povray.binaries.images : Tiled sphere (96k + 28k) : Re: Tiled sphere (96k + 28k) - 1 attachment Server Time
12 Aug 2024 21:19:42 EDT (-0400)
  Re: Tiled sphere (96k + 28k) - 1 attachment  
From: Nicolas Rougier
Date: 12 Aug 2003 03:36:56
Message: <3F389918.1060004@loria.fr>
Yes, yes, you're right. I realized that a few minuter after having 
posted the code. I have to correct it in p.t.s.f.

In fact, I'm using  - Min - <(Max.x-Min.x), 0, (Max.z-Min.z)>/2 to have 
the bottom of the object lying on the ground in order to avoid some 
collisions.

Nicolas


Marc Champagne wrote:
>     	
> It did notice...
> 
> If you were trying to center (to the origin) the passed object
> to your tiled_sphere macro, I believe this should of been the
> formula: -Min-((Max-Min)/2)
> 
> Just -(Max-Min)/2 was only moving it closer to the origin by
> half the objects size.
> 
>


Post a reply to this message

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