View Full Version : need to create terrain

03-31-2009, 02:38 AM
i am having problem creating a terrain...
i have hieght values... but dun kno how to use em to make smooth continous terrain..
i used GL_TRIANGLES but it gave a pointed picture...
is there any way through which i can draw smooth mountains cliffs etc...

i m guessin bezier n NURBS have solution for me but i again don kno how to use control points to make surface..
pls help.

03-31-2009, 03:24 AM
It depends how complex you want to get, and what your ultimate aim is.
Your question is really very general.

I would strongly suggest you take a look at a site like The Virtual Terrain Project.

The subject of how to make terrains is something which you could most likely spend your entire GL career on, and indeed some people do...

03-31-2009, 11:06 PM
i strtd using glmap2f for my project and is referrin super bible...

from its example i was able to draw small grid of 3 control points...usin ctrlpoint[3][3][3]
but by changing this to ctrlpoints[4][3][3] or ctrl[3][4][3] or something i don kno how to make change in glmap2f.
(specifically in its u n v values)

pls help with this

04-01-2009, 02:35 AM
Thanks for the PM, but I've generally got enough bugs and problems of my own to keep me going all day long, so I can't really just jump in and help out on other people's projects...

I really think you need to go and do some reading and perhaps choose an easier subject to cut your teeth on...

Perhaps try looking at some stuff like this..

04-01-2009, 03:03 AM
Try using a tutorial web site like HeNE which has planety of starter tutorials on OpenGL. You can't run before you can walk...and game programming in OpenGL is no different.


Try lesson #34 - heightmap terrains as a basic intro.