POV-Ray : Newsgroups : povray.general : help needed!! -- tricolour triangles Server Time
16 Nov 2024 03:22:27 EST (-0500)
  help needed!! -- tricolour triangles (Message 1 to 3 of 3)  
From: Marc Schimmler
Subject: help needed!! -- tricolour triangles
Date: 3 Nov 1998 10:52:31
Message: <363F26B8.604FC68F@ica.uni-stuttgart.de>
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.
-------------------------------------------------------------------

I looked through the include file but I am not very familar with the
math for mapping the pigments and I don't believe that there is an error
in Chris Include File. So where is mine?

Any help appreciated!

TIA,

Marc
--
Marc Schimmler


Post a reply to this message

From: PoD
Subject: Re: help needed!! -- tricolour triangles
Date: 5 Nov 1998 13:21:23
Message: <3641EC79.33E@merlin.net.au>
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.
> -------------------------------------------------------------------
> 
> I looked through the include file but I am not very familar with the
> math for mapping the pigments and I don't believe that there is an error
> in Chris Include File. So where is mine?
> 
> Any help appreciated!
> 
> TIA,
> 
> Marc
> --
> Marc Schimmler

I haven't used the tricolor include file, but it looks to me like it
wants colour values for C1-C3.
Try 
#declare C1 = rgb<1,1,1>
#declare C2 = rgb<1,1,1>
#declare C3 = rgb<1,1,1>

Best of luck,
	PoD.


Post a reply to this message

From: Marc Schimmler
Subject: Re: help needed!! -- tricolour triangles
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.