POV-Ray : Newsgroups : povray.binaries.images : Tracing an object through a soft-edged mask; or objects as airbrush 'spray' : Re: Tracing an object through a soft-edged mask; out of memory Server Time
2 Jun 2024 04:47:10 EDT (-0400)
  Re: Tracing an object through a soft-edged mask; out of memory  
From: Thomas de Groot
Date: 14 May 2008 07:30:17
Message: <482acd49$1@news.povray.org>
Yes, the following piece of code, using eval_pigment, gets me a fatal parse 
error: out of memory, while the same code by Kenneth, does not. tested with 
version 3.7 beta 25.

union {
  #while (counter <= 1500000)
    #declare trace_position =
      <rand(S1), 0, rand(S1)>;
    #declare intersexion =
      eval_pigment(mask2,trace_position);

    #if(pow(rand(S2), .333) <= intersexion.red)
     cone { <0, 0, 0>, 0.001, <0, 0.001, 0>, 0.0 translate 
<trace_position.x,0,trace_position.z>}
    #end

    #declare counter = counter + 1;
  #end
  pigment{Black}
  translate <-0.5,0,-0.5>
}


Thomas


Post a reply to this message

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