POV-Ray : Newsgroups : povray.general : Internal Nesting Limit : Re: Internal Nesting Limit Server Time
6 Oct 2024 08:53:57 EDT (-0400)
  Re: Internal Nesting Limit  
From: FractRacer
Date: 4 Apr 2014 08:35:58
Message: <533ea72e$1@news.povray.org>

> ##################################
>
> global_settings {assumed_gamma 1.5  max_trace_level 5}
> #declare rnd1=seed(1);
>
> #declare n=900;
> #declare r1=1;
> #declare r2=5;
>
> #declare k=1; #while(k<=n)
>      #declare P=<rand(rnd1)-0.5,rand(rnd1)-0.5,0>*r2;
>      sphere{<0,0,0>,r1 pigment{rgbt 1} hollow no_shadow interior{media{emission
> 1/r1}} translate P}
> #declare k=k+1; #end
>
> camera{location<0,0,-5*r2> look_at<0,0,0>}
>
> ##################################
>
> As you see, n is the number of spheres, r1 their radius, and r2 the edge length
> of the box which contains all spheres.
>
> If I set r2 = 2 the error occurs, but for r2 = 5 (and otherwise same values)
> rendering works.
>

I have tried your code, without the media statement no error occurs, 
even if r2=2. Maybe the stuff is here.

Lionel.


-- 
Do not judge my words, judge my actions.

---

http://www.avast.com


Post a reply to this message

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