POV-Ray : Newsgroups : povray.newusers : rendering the html portfolio files. : Re: rendering the html portfolio files. Server Time
3 Jul 2024 02:30:10 EDT (-0400)
  Re: rendering the html portfolio files.  
From: Alain
Date: 12 Dec 2010 12:25:00
Message: <4d05056c@news.povray.org>

> Hi,
>
> I am trying to generate the html files in the portfolio directory.
> I get the error below in a lot of the files.
>
>    Parse Error, Negative Subscript
>
>
>     light_source {<-500,300,-500>  rgb 1}
>     light_source {<500,500,500>  rgb 0.7 shadowless}
>
>     union {
>        plane {y, 0}
>        sphere{
>           0,1
>           scale<0.6,0.3,0.6>
>           translate<0.55,0,0.5>
>        }
>        pigment{pigmentArr[frame_number-1]} /*** error here ***/
>     }
>
> Another example is in c_colors.pov
>
>     light_group {
>        light_source {<-50,500,-200>  rgb 1}
>        union {
>           plane {y, 0 no_shadow}
>           difference {
>              sphere{0,1}
>              box{<-1,0.9,-1>,<1,1.1,1>}
>           }
>           translate<0.7,0,0>
>           pigment{colorArr[frame_number-1]} /*** error here ***/
>        }
>     }
>
>
>
Those must be used as an animation from the corresponding *.ini files.
Outside an animation, the internal variable frame_number is valued as zero.

Alain


Post a reply to this message

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