POV-Ray : Newsgroups : povray.general : back side and interior texture : Re: back side and interior texture Server Time
3 Aug 2024 18:24:11 EDT (-0400)
  Re: back side and interior texture  
From: Thorsten Froehlich
Date: 26 Feb 2004 05:26:23
Message: <403dc9cf$1@news.povray.org>
In article <403### [at] univ-savoiefr> , Christophe Raffalli 
<raf### [at] univ-savoiefr>  wrote:

> But how ? It is nowwhere in the doc ?
>
> Lets say you have a triangle <A,B,C>.
>
> If the normal defining tre front face the vertor product of (B-A) and (C
> -A) ? Is it somthing else ?

To solve your problem, it does not matter which order is used.  All that
matters is that the same order is always used, which obviously is the case
in a computer program.  From there it is really easy to determine which
order defines the frontface and the backface, as there are only exactly two
combinations possible as a triangle has exactly two sides.  So it is
extremely easy to find out by just applying a backface and frontface texture
even if this is not defined in the documentation (I did not search if it
is).  All you have to do is to always supply your vertices in the same
order.

    Thorsten

____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trfde

Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

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