A simple one, just as a pet project. Each square "patch" of vertices is rendered as a triangle strip using an index buffer which uses degenerate triangles for stitching togheter rows. What I'd like to be able to do is efficiently remove some polygons from the terrain. Have a hole through the world.
My first idea was to just make them degenerate. But then I'd need a seperate index buffer for each patch that's not to be fully used and generating the lower LOD patches might cause problems with popping. (Still, only a few patches will need the separate index buffers, so memory shouldn't be much of concern).
(The idea behind removing triangles is that you can do stuff like underground passages or caves etc. by just removing some triangles and slapping in a cave based on models or some other scheme that hides the hole and not have to make a silly portal/door that can't be seen through and teleports the player to the other side when they use it)
Is there an existing scheme for dealing with this that's fairly effective or do I have to come up with my own?
p.s. doesn't matter if it's an overly ambitious project to work on and will never amount to any kind of game or something, it's still fun, and far less useless than watching TV.
My first idea was to just make them degenerate. But then I'd need a seperate index buffer for each patch that's not to be fully used and generating the lower LOD patches might cause problems with popping. (Still, only a few patches will need the separate index buffers, so memory shouldn't be much of concern).
(The idea behind removing triangles is that you can do stuff like underground passages or caves etc. by just removing some triangles and slapping in a cave based on models or some other scheme that hides the hole and not have to make a silly portal/door that can't be seen through and teleports the player to the other side when they use it)
Is there an existing scheme for dealing with this that's fairly effective or do I have to come up with my own?
p.s. doesn't matter if it's an overly ambitious project to work on and will never amount to any kind of game or something, it's still fun, and far less useless than watching TV.
Last edited by a moderator: