UnderwareDESIGN

PlayBASIC => 3D Development => Topic started by: kevin on June 24, 2013, 06:37:20 AM

Title: Polygon to Polygon Clipping (wire frame occulsion)
Post by: kevin on June 24, 2013, 06:37:20 AM

  Polygon to Polygon Clipping (wire frame occlusion)

       This is a bit of test of the theory outlined [plink]here (http://www.underwaredesign.com/forums/index.php?topic=4050.msg27280#msg27280)[/plink],  where the problem is to remove any occluded line fragments or complete triangles from the set.  So object appears filled, without resorting to filling the space with some black out colour.   Since normally in wire frame we can see through an object.

        Bellow we have the same scene view in two different ways.  The first picture we're looking at all the triangles drawn from back to front, as expected we can see through them.   The second shot the scene is clipped then drawn.  The order post clipping doesn't matter at least in this example.     What you get is scene where the mind can interpret scene sort better.   One of the nasty things that occurs in wire frame is optical illusions, where the mind sees a coordinate as foreground when it's really background.. 

Title: Re: Polygon to Polygon Clipping (wire frame occulsion)
Post by: stevmjon on June 25, 2013, 08:21:15 AM
looking good. works well.