POV-Ray : Newsgroups : povray.general : help needed!! -- tricolour triangles : Re: help needed!! -- tricolour triangles Server Time
13 Aug 2024 05:51:46 EDT (-0400)
  Re: help needed!! -- tricolour triangles  
From: Marc Schimmler
Date: 6 Nov 1998 02:28:19
Message: <3642A512.1D35029A@ica.uni-stuttgart.de>
PoD wrote:
> 
> Marc Schimmler wrote:
> >
> > Has anyone experiene with the old (for povray 3.0) Tri-colour Triangles
> > include file from Chris Colefax? I downloaded it yesterday from his
> > homepage together with the instructions and tried to use it. The problem
> > is that I use an unofficial povray version 3.01 compiled for a SGI O2. I
> > have no official installation here at work.
> >
> > My file looks like this:
> >
> > //***** beginning of file
> >
> > camera {
> > location <2,2,2>
> > look_at  <0,0,0>
> > }
> >
> > light_source {<2,2,2> color rgb<1,1,1>}
> >
> > #declare P1 =<0.0, 0.0, 0.0>
> > #declare P2 =<1.0, 0.0, 0.0>
> > #declare P3 =<0.0, 1.0, 0.0>
> > #declare C1 =<1,1,1>
> > #declare C2 =<1,1,1>
> > #declare C3 =<1,1,1>
> > include "tricol.inc"
> >
> > //***** ending of file
> >
> > When I run this file I get a error message during parsing (I did this
> > with two different binaries):
> >
> > ------------------------------------------------------------------
> >
> > Parsing...tricol.inc:52: warning: Pigment type unspecified or not 1st
> > item.
> >       rotate _TC_XZroty rotate _TC_normrotx + _TC_normroty translate P1}
> >
> >    #if (texture_only = false) triangle {P1, P2, P3 #end
> >       pigment {average pigment_map {
> >          [1 onion pigment_map {[0 C1] <----ERROR
> >
> > tricol.inc:52: error: ] expected but vector function 'vector identifier'
> > found instead.
> > -------------------------------------------------------------------
> >
PoD wrote:
> #declare C1 = rgb<1,1,1>
> #declare C2 = rgb<1,1,1>
> #declare C3 = rgb<1,1,1>

You got it!!
Thank you very much! This helped me out of a dire situation!

With regards,

Marc


-- 
Marc Schimmler


Post a reply to this message

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