best way to visualize a heightfield in OpenGL

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

Thread Tools Search this Thread Display Modes
  01 January 2004
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.

  01 January 2004
It looks to me like your tesselation is not fine enough. Also, when using quads, make sure they're planar.
  01 January 2004
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.
  01 January 2004
meanwhile i tried different approches.
now im erndering it linewise with single triangels. this works fine and i get a smooth heightfield.

thanks anyways.
  01 January 2006
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

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 12:12 PM.

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