POV-Ray : Newsgroups : povray.general : distance pattern ? : Re: distance pattern ? Server Time
6 Aug 2024 00:17:44 EDT (-0400)
  Re: distance pattern ?  
From: Warp
Date: 10 Jul 2002 10:26:12
Message: <3d2c4404@news.povray.org>
Rafal 'Raf256' Maj <raf### [at] raf256com> wrote:
> in worst case - You can just shut rays at object, as it was in test wersion 
> of distance pattern, but it will by much faster to test intersection of 
> pixelized rather then i.e. isosurface or complex CSG

  Really? Can you give me actual measurements of this?
  Besides, you will just get a "pixelized" distance pattern (ie. the pattern
will be formed of cubes). How is that useful?

> I only suggested : why not optimize (using pre-calculated array) this 
> tests

  Because insideness test is already very fast. As I said, that's not the
problem. However, a fast insideness test does not help resolving the
distance from the surface of the object.

-- 
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}//  - Warp -


Post a reply to this message

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