POV-Ray : Newsgroups : povray.general : Help - using rgb colors with triangles : Re: Help - using rgb colors with triangles Server Time
11 Aug 2024 17:16:06 EDT (-0400)
  Re: Help - using rgb colors with triangles  
From: Nieminen Mika
Date: 20 Jun 1999 04:13:41
Message: <376ca2b5@news.povray.org>
Glen Berry <7no### [at] ezwvcom> wrote:
: Why not? I have seen mesh files where each triangle had a unique
: pigment definition. Each line of the mesh file had a triangle
: definition followed by a pigment definition. This makes for a much
: larger mesh file, and it takes longer to parse than an uncolored mesh,
: but it does work. One doesn't *have* to #declare pigments or textures
: in advance if using something like "rgb <0.8, 0.4, 0.2>" to define the
: colors on each line is acceptable.

  As Ken replied, it's not possible.
  However, I can hardly believe that you had to declare a pigment for each
triangle. I don't think each triangle has a unique color. Those meshes you
are describing sound to me like they had just a few hundreds of colors.

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

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