Advertisement

terrain model

Started by July 12, 2001 05:52 PM
2 comments, last by dirtypope 23 years, 7 months ago
i made an awesome terrain model in Milkshape, and was wondering if clipping would apply to it, cuz i dont know if you can clip polys on a model, probably can, but i wanna be sure before i try it.
Theres no such thing as stupid people... only people with under clocked brains. -dirty
Tee hee tee hee bob. (excessive mountain dew, basketball, and exercise has me on some type of ''high'').

Oh yeah, on to your question... To clip them, take a top view, and select all of the vertices you want to
clip, and DELETE THE SUCKERS!

NARF!

------------------------------
Trent (ShiningKnight)
E-mail me
OpenGL Game Programming Tutorials
Advertisement
i was talking about while rendering the model in OpenGL if i could like "not render" some of its polys, or if i would have to render them all because its all one model
Theres no such thing as stupid people... only people with under clocked brains. -dirty
Weel, you''d have all teh polys in an array or some other data structure wouldn''t you? And you''d loop through that and pass each poly through glBegin..glEnd?

So, in the same loop, decide if you want to draw that poly or not, and if you don''t, just don''t draw it.

You could decide whether you want to draw it or not any number of ways... I guess the distance from the screen would be a simple one.

Don''t forget that gl''s viewport has a clipping distance as well, so it automatically won''t draw anything more than a certain distance away (have a look at your viewport function whereever you set up gl).

This topic is closed to new replies.

Advertisement