Hi, after researching for a few days and trying everything free I came across I’m giving in and asking here.
I’m looking for a way to render wireframe so that it’ll complete the lines where geometry is cut off, either because of a cross section or from the near plane on a camera. I’ve found that the Source Engine does this which you can see in this picture and the video. Unlike source however I’d like it to be double sided, and though unlikely, if only the clipping edge could be isolated that’d be even better.
The reason I want this behavior is that I’ve been looking for any way to scan a models shape in layers from the top-down using an orthographic camera and reconstruct it using layers of textures. I’ve tried many ways, had a pretty good one but it relied on the model being well made, my system has to account for any model from the user. I’ve also tried using highlight shaders, which worked well for the most part, but if a polygon is perfectly vertical (like on a building wall) there will be no highlight since it’ll be too thin.
I’ve come to think this wireframe method is going to be the cheapest way to obtain an outline of a models shape at any point, by sending an orthographic camera through the model with the near and far plane extremely close to eachother. I’ll take any solution that isn’t too heavy tho, needs to be able to make a scan relatively quick for models with millions of polygons.
Thanks for reading, hope there’s a way to do something like this.