POV-Ray : Newsgroups : povray.newusers : mesh of triangles: how to specify the back side? : Re: mesh of triangles: how to specify the back side? Server Time
28 Jul 2024 14:28:16 EDT (-0400)
  Re: mesh of triangles: how to specify the back side?  
From: Mike Williams
Date: 13 Mar 2009 04:34:09
Message: <3IA7E0A9phuJFwYk@econym.demon.co.uk>
Wasn't it MelR who wrote:
>How do you make a mesh of triangles with one set of textures on one 
>side, and an
>entirely different set of textures on the other side.  The mesh does 
>NOT make an
>enclosing surface (it is not a shape with an inside and an outside).
>
>For purpose of this discussion, you can consider the mesh to represent a
>rectangle oriented in space.  As part of this simplified example. I'd like one
>side to be red and the other side blue.  How is this specified?
>
>(If you have a link to where this has already been discussed, or you 
>can suggest
>search terms that will lead to the answer, such help is also greatly
>appreciated.)
>
>Thank you for your help!

The documentation says:

All surfaces have an exterior and interior surface. The interior_texture 
simply allows to specify a separate texture for the interior surface of 
the object. For objects with no well defined inside/outside 
(bicubic_patch, triangle, ...) the interior_texture is applied to the 
backside of the surface. Interior surface textures use exactly the same 
syntax and should work in exactly the same way as regular surface 
textures, except that they use the keyword interior_texture instead of 
texture.

Note: Do not confuse interior_texture {} with interior {}: the first one 
specifies surface properties, the second one specifies volume 
properties.

-- 
Mike Williams
Gentleman of Leisure


Post a reply to this message

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