POV-Ray : Newsgroups : povray.general : multiple object duplication factoring question : Re: multiple object duplication factoring question Server Time
5 Nov 2024 03:17:00 EST (-0500)
  Re: multiple object duplication factoring question  
From: Steve Shelby
Date: 12 Jul 2003 18:15:36
Message: <3f108888@news.povray.org>
I'm sorry, but I can't make any sense of this at all. My level of expertise
with povray is very low, having relied  mostly on Moray to do the script
writing for me. Here's my sample pov file:

light_source {
  0*x
  color rgb <1,1,1>
  translate <-20, 40, -20>
}
camera {
  location  <0.0, 2.0, -5.0>
  look_at   <0.0, 0.0,  0.0>
  right     x*image_width/image_height
}

#declare ObjectOrg = object{
sphere {
  <0, 0, 0>
  0.01 color rgb<1,1,1>
}

 }

#declare iterations=300;
#local Object = ObjectOrg;
#declare Count = 1;
#while (Count<iterations)
  #local Object = union{
    object{ ObjectOrg }
    object{ Object scale 1.04 translate .01*Count}
  }
  #local Count = Count + 1;
#end

Could you please tell me why it renders just blackness?
Steve

"Gilles Tran" <git### [at] wanadoofr> wrote in message
news:3f0f1f52@news.povray.org...

> 3f0f019e@news.povray.org...
> > ABX,
> > I tried the code you sent, and povray rendered just the background. I
> guess
> > I didn't fill in the blanks correctly. I put a simple sphere for the
> object,
> > and replaced "Iterations" with "300". I kept everything else the same.
> What
> > am I doing wrong?
>
> Hmm, did you actually display the object by adding object{Object} after
the
> loop? ABX's code declares it but does not display it.
> This little problem happens to me regularly...
>
> G.
>
>
> --
> **********************
> http://www.oyonale.com
> **********************
> - Graphic experiments
> - POV-Ray and Poser computer images
> - Posters
>
>


Post a reply to this message

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