POV-Ray : Newsgroups : povray.newusers : rendering the html portfolio files. Server Time
23 Dec 2024 01:13:06 EST (-0500)
  rendering the html portfolio files. (Message 1 to 5 of 5)  
From: Jimmy
Subject: rendering the html portfolio files.
Date: 12 Dec 2010 03:30:00
Message: <web.4d0486ecea8f798fff32404b0@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 ***/
      }
   }


Post a reply to this message

From: Bidski
Subject: Re: rendering the html portfolio files.
Date: 12 Dec 2010 04:05:01
Message: <web.4d048fc2670f5bfe486c9e330@news.povray.org>
"Jimmy" <nomail@nomail> wrote:
> 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 ***/
>       }
>    }
frame_number is an internal variable, looks like it is relative to animations.
Are animations turned on when you render? (check your messages from the
rendering process)

Regards
Bidski


Post a reply to this message

From: Le Forgeron
Subject: Re: rendering the html portfolio files.
Date: 12 Dec 2010 04:26:22
Message: <4d04953e@news.povray.org>
On 12/12/2010 09:25, Jimmy wrote:
> Hi,
>
> I am trying to generate the html files in the portfolio directory.
> I get the error below in a lot of the files.
>
Greetings,

which version ?
You must be aware that the portfolio must be rendered by the ini files, 
not the pov files directly (unix version get a readme.txt , I do not 
know if windows & mac get it also)

No problem to render portfolio of 3.7beta 40 on linux.


Post a reply to this message

From: Bidski
Subject: Re: rendering the html portfolio files.
Date: 12 Dec 2010 04:50:00
Message: <web.4d049a4a670f5bfe486c9e330@news.povray.org>
Le Forgeron <jgr### [at] freefr> wrote:
> On 12/12/2010 09:25, Jimmy wrote:
> > Hi,
> >
> > I am trying to generate the html files in the portfolio directory.
> > I get the error below in a lot of the files.
> >
> Greetings,
>
> which version ?
> You must be aware that the portfolio must be rendered by the ini files,
> not the pov files directly (unix version get a readme.txt , I do not
> know if windows & mac get it also)
>
> No problem to render portfolio of 3.7beta 40 on linux.

The readme is on my windows installtion (version 3.6). It also says at the top
of c_colors.pov

// Desc: Render via colors.ini,
//       generates html files and images for all the
//       colors in colors.inc


Post a reply to this message

From: Alain
Subject: Re: rendering the html portfolio files.
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.