POV-Ray : Newsgroups : povray.binaries.utilities : heightfield triangle orientation : Re: heightfield triangle orientation Server Time
6 May 2024 02:16:50 EDT (-0400)
  Re: heightfield triangle orientation  
From: janger
Date: 4 Jul 2002 20:16:58
Message: <3d24e57a@news.povray.org>
"janger" <gra### [at] yahoocom> wrote in message
news:3d23a6f1@news.povray.org...
> hi,
> I'm coding a utility to allow viewing of heightfields using opengl, and to
> also allow object placement on the hf's using masks. For example, placing
> stones in the shape of words onto the hf surface. In future I'll probably
> expand it to creation and manipulation of hf's as well. However, reading
> through the documentation, it seems the description of the triangle
> orientation is messed up.
> In  "The size and orientation of an un-scaled height field" image, the
> intersection edge of the two triangles seems to be from the top-left to
the
> bottom-right of each 4-pixel group. Whereas in the "Relationship of pixels
> and triangles in a height field" image, it is shown from the top-right to
> the bottom-left.
> Does anyone know if I am correct here, or am I missing something? I'd like
> my program to view the hf's properly so it seems to be an important
> question.
>
> Thanx, dave.
>

I worked it out myself. If anyone wants to know, the shared edge goes from
top-left to bottom-right.


Post a reply to this message

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