POV-Ray : Newsgroups : povray.newusers : Assigning different textures to triangles in a mesh : Re: Assigning different textures to triangles in a mesh Server Time
4 Sep 2024 18:13:58 EDT (-0400)
  Re: Assigning different textures to triangles in a mesh  
From: Ken
Date: 8 Sep 2002 23:23:35
Message: <3D7C151D.F109E717@pacbell.net>
"Mark M. Wilson" wrote:

> Ok, I tried this, and it didn't work either.   AAARRGGH!  I _really_
> don't relish the idea of making extremely thin triangle-shaped prisms,
> and rotating/translating them into place...

What it really want's is -

#include "glass.inc"

#declare T1 = texture { pigment { Col_Glass_Winebottle }}
#declare T2 = texture { pigment { Col_Glass_Orange }}


mesh {
        triangle {<a>, <b>, <c> texture { T1 }}
        triangle {<c>, <d>, <e> texture { T2 }}
        etc...
}


-- 
Ken Tyler


Post a reply to this message

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