CGTalk > Technical > Graphics Programming
Login register
Thread Closed share thread « Previous Thread | Next Thread »  
Thread Tools Search this Thread Display Modes
Old 01-08-2004, 10:23 PM   #1
ehmdjii's Avatar
Join Date: Dec 2002
Posts: 141
best way to visualize a heightfield in OpenGL


what would be the best way to draw a heightfield with OpenGl?
normally you have the data in a two-dimensional array.

i tried it with GL_QUADS and GL_TRIANGLE_STRIPS but the outcome is a little strange as you can see in this screenshot:

the problem is that there is a certain orientation of the polygons which shouldnt be there.

Old 01-09-2004, 07:13 AM   #2
Lord of the posts
stew's Avatar
Stefan Werner
Senior Software Engineer
Join Date: Aug 2003
Posts: 892
It looks to me like your tesselation is not fine enough. Also, when using quads, make sure they're planar.
Old 01-16-2004, 06:12 PM   #3
Join Date: Jan 2003
Posts: 256
Looks to me like the field function ...

Looks to me like the field function ...

Is not dynamic enough over that range and also like the other respondent said ... not enough resolution.
Old 01-16-2004, 11:45 PM   #4
ehmdjii's Avatar
Join Date: Dec 2002
Posts: 141
meanwhile i tried different approches.
now im erndering it linewise with single triangels. this works fine and i get a smooth heightfield.

thanks anyways.
Old 01-17-2006, 03:00 AM   #5
CGTalk Moderation
CGTalk Forum Leader
Join Date: Sep 2003
Posts: 1,066,478
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
Thread Closed share thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Society of Digital Artists

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump

All times are GMT. The time now is 06:23 AM.

Powered by vBulletin
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.