HUD-like shape selection display

I’d like to create a display for my program that highlights shapes in the field of view by drawing a broken square around the shapes. By broken square, I mean, 4 corners with no midsections, like you see in combat flight sims etc. Creating the billboards and drawing the square is easy but my shapes lie on rolling terrain and I want the square to always be visible and never obscured by the terrain. So a shape on level ground should have the entire square around it eventhough the billboard may be partially underground. Similarly, a shape on the other side of a mountain range should be drawn completely and not obscured in any way. Whats the best way to accomplish this in Xith?

were you able to achieve that …and how

Can’t you simply add a Billboard with it’s center at the center of the surrounded shape and give it a transparent texture with only these corners non-transparent? I’ve not checked it, but I think, this should be sufficient.

Just an idea… I think “stencil operations” (probably in combination with playing with the “depth buffer”) may help to achive what you are looking for…
But to make sure you will not have problems with transparencies, create you broken squares from individual lines, don’t use texturing over quad or smth…

Bohdan.