Deleting all vertices of a certain height?

uberglitch

06-11-2007 03:24:37

Hey folks, I have a problem I've been banging my head against for a couple days now: I need a way to remove all vertices of a given height from the renderable.

In my particular case, I need to remove all vertices of zero height, so absolute black in a heightmap will translate to a "hole" that you can see skybox through.

Unfortunately I can't fake it by setting the draw distance and having really really tall cliffs, I need to actually keep PLSM from rendering at the vertex level.

I've tried looking through the code for somewhere I could put in a conditional 'if( !vertex.y == 0 )' but no luck so far. I'd love to just recompile the scene manager to suit my needs, instead of the uglyness of getting every vertex and removing the ones at height zero.

tl;dr: Stop vertices at height 0 from being rendered.

Thanks in advance for any advice you can offer,
Uberglitch