POV-Ray : Newsgroups : povray.binaries.utilities : heightfield triangle orientation Server Time
31 Oct 2024 14:12:32 EDT (-0400)
  heightfield triangle orientation (Message 1 to 6 of 6)  
From: janger
Subject: heightfield triangle orientation
Date: 3 Jul 2002 21:37:53
Message: <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.


Post a reply to this message

From: Daniel Matthews
Subject: Re: heightfield triangle orientation
Date: 4 Jul 2002 00:28:09
Message: <1833542.3SBWq0fk0N@3-e.net>
http://terraform.sourceforge.net

janger wrote:

> 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.

-- 
Your connection failed because: Cache miss - please take better aim next 
time


Post a reply to this message

From: janger
Subject: Re: heightfield triangle orientation
Date: 4 Jul 2002 01:09:29
Message: <3d23d889@news.povray.org>
"Daniel Matthews" <dan#@3-e.net> wrote in message
news:183### [at] 3-enet...
> http://terraform.sourceforge.net
>
Do you mean to look at the source, or is there documentaion on the site
which explains it?


Post a reply to this message

From: Daniel Matthews
Subject: Re: heightfield triangle orientation
Date: 4 Jul 2002 02:13:58
Message: <1352006.C82TN8vnQY@3-e.net>
janger wrote:

> 
> "Daniel Matthews" <dan#@3-e.net> wrote in message
> news:183### [at] 3-enet...
>> http://terraform.sourceforge.net
>>
> Do you mean to look at the source, or is there documentaion on the site
> which explains it?

Talk to them about the issue, or even join their project.
What will your work do that they haven't already done?

-- 
Your connection failed because: popper unable to process jumbo kernel


Post a reply to this message

From: janger
Subject: Re: heightfield triangle orientation
Date: 4 Jul 2002 07:06:31
Message: <3d242c37@news.povray.org>
"Daniel Matthews" <dan#@3-e.net> wrote in message
news:135### [at] 3-enet...

> Talk to them about the issue, or even join their project.
> What will your work do that they haven't already done?
>
1. Teach me more
2. Be programmed in delphi instead of c
3. Written for windows, not linux.
:-)
Their project does seem interesting and feature-rich. And I am getting more
into linux. However, I'm using this to learn opengl programming as well.
Also, for some reason I'm having trouble downloading the source for
terraform.


Post a reply to this message

From: janger
Subject: Re: heightfield triangle orientation
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.