{"id":2201,"date":"2024-04-13T10:28:46","date_gmt":"2024-04-13T09:28:46","guid":{"rendered":"https:\/\/www.katsbits.com\/site\/?p=2201"},"modified":"2024-04-13T10:28:46","modified_gmt":"2024-04-13T09:28:46","slug":"trisouping-bsp-based-2-and-3-point-clipping","status":"publish","type":"post","link":"https:\/\/www.katsbits.com\/site\/trisouping-bsp-based-2-and-3-point-clipping\/","title":{"rendered":"Trisouping: 2-Point V 3-Point Clipped Brush&#8230; 16 Bit Colour Problems"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_80 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.katsbits.com\/site\/trisouping-bsp-based-2-and-3-point-clipping\/#The_Trouble_With_Clipping\" >The Trouble With Clipping<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.katsbits.com\/site\/trisouping-bsp-based-2-and-3-point-clipping\/#The_End_Result\" >The End Result<\/a><\/li><\/ul><\/nav><\/div>\n\n<p>In the <a href=\"https:\/\/www.katsbits.com\/site\/trisouping-bsp-brush-based\/\" title=\"Tri-souping brushwork\" target=\"_self\" rel=\"noopener\">previous page<\/a> we saw how to utilise trisouping in an effort to prevent distance related Z-fighting, this page deals with 3 (pt) Point Clipping.<\/p>\n<p>Below is a &#8216;rock&#8217; selected in GTK Radiant. It was made by cutting chunks from a solid block at differing angles in order to &#8216;reveal&#8217; and interesting shape. Typically this type of brushwork object is simply placed &#8216;on top&#8217; of other brushwork (as shown below) which often means that any long faces that have textures on them will be partially buried under another surface (&#8216;ground&#8217; in this instance); you can see in the shot below how it disappears under the terrain mesh.<\/p>\n<p>In an ideal situation we&#8217;d like to be able to slice it along the axis where it meets the grass covered terrain, caulking the underside of the rock; if the terrain were a completely flat surface this could be done, but as it&#8217;s not, it&#8217;s better to leave the rock and ground brushwork intact &#8211; in situations like this using CSG Subtract is not a good idea due to the number of brushes already in the area; cutting them up more will lead to too many small brushes that usually cause problems when compiling the map.<\/p>\n<div class=\"content_images\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.katsbits.com\/images\/tutorials\/tri_souping_z_fighting\/trisoup2.jpg\" width=\"500\" height=\"465\" alt=\"3 point clipped brush buried into the ground surface\" \/><\/p>\n<p>3 point clipped brush buried into the ground surface<\/p>\n<\/p><\/div>\n<h3><span class=\"ez-toc-section\" id=\"The_Trouble_With_Clipping\"><\/span>The Trouble With Clipping<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>As was mentioned briefly on the previous page, 3pt. Clipping does create more interesting shapes than trisouping but it&#8217;s here that we come to the reason for writing this tutorial &#8211; in game when you are in close proximity to brushwork like this it usually doesn&#8217;t present any problems with Z-fighting and it does look quite visually interesting;<\/p>\n<div class=\"content_images\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.katsbits.com\/images\/tutorials\/tri_souping_z_fighting\/trisoup2a.jpg\" width=\"500\" height=\"375\" alt=\"close proximity to the brushwork\" \/><\/p>\n<p>Close proximity to the brushwork<\/p>\n<\/p><\/div>\n<p>It&#8217;s not too noticeable in the shot below but as you get some distance away the effects of z-fighting (were in 16 bit remember..!) starts to occur because the game can&#8217;t figure out which texture it should be drawing as the &#8216;top&#8217; image &#8211; it&#8217;s basically trying to draw both at the same time, and because it can&#8217;t, it &#8216;swaps&#8217; them in and out of render buffer creating the Z-fighting &#8216;zigzag&#8217; error as a result; hence the term &#8211; &#8216;Z&#8217; for the depth buffer used by the renderer, and &#8216;fighting&#8217; for the apparent swapping or &#8216;fighting&#8217; of the images.<\/p>\n<div class=\"content_images\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.katsbits.com\/images\/tutorials\/tri_souping_z_fighting\/trisoup2b.jpg\" width=\"500\" height=\"375\" alt=\"Z-fighting\" \/><\/p>\n<p>Z-fighting<\/p>\n<\/p><\/div>\n<h3><span class=\"ez-toc-section\" id=\"The_End_Result\"><\/span>The End Result<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Most games aren&#8217;t run in 16 bit these days (enter the era of Doom 3, Quake 4 and next Gen), but you can still get z-fighting if you&#8217;re not careful, even in 32bit mode. The thing to keep in mind is that it&#8217;s difficult to produce interestingly shaped rocks like those shown below by using trisouping without using an excess of brushwork which then has a knock-on effect on the FPS under certain circumstance. Whichever method you use you be compromising on something but having read this tutorial you&#8217;ll be aware of the immediate &#8216;Pros&#8217; and &#8216;Cons&#8217; of both 3 point clipping and trisouping in relation to terrain.<\/p>\n<div class=\"content_images\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.katsbits.com\/images\/tutorials\/tri_souping_z_fighting\/trisoup3.jpg\" width=\"500\" height=\"375\" alt=\"3pt clipped interestingly shaped rocks\" \/><\/p>\n<p>3pt clipped interestingly shaped rocks<\/p>\n<\/p><\/div>\n<div class=\"subNav\">\n<p>[1: <a href=\"https:\/\/www.katsbits.com\/site\/trisouping-bsp-brush-based\" title=\"Introduction to trisouping and z-fighting\" target=\"_self\" rel=\"noopener\">Trisouping<\/a> | 2: <a href=\"https:\/\/www.katsbits.com\/site\/trisouping-bsp-based-2-and-3-point-clipping\/\" title=\"Advanced options trisouping brushwork in Radiant\" target=\"_self\" rel=\"noopener\">3-Point Clipping<\/a>]<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":2203,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[488,106,17,334,109,108,107,550],"class_list":["post-2201","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","tag-brush-volumes","tag-gtkradiant","tag-idtech","tag-idtech4","tag-level-design","tag-level-editing","tag-radiant","tag-trisouping"],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/www.katsbits.com\/site\/wp-json\/wp\/v2\/posts\/2201","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.katsbits.com\/site\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.katsbits.com\/site\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.katsbits.com\/site\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.katsbits.com\/site\/wp-json\/wp\/v2\/comments?post=2201"}],"version-history":[{"count":1,"href":"https:\/\/www.katsbits.com\/site\/wp-json\/wp\/v2\/posts\/2201\/revisions"}],"predecessor-version":[{"id":2205,"href":"https:\/\/www.katsbits.com\/site\/wp-json\/wp\/v2\/posts\/2201\/revisions\/2205"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.katsbits.com\/site\/wp-json\/wp\/v2\/media\/2203"}],"wp:attachment":[{"href":"https:\/\/www.katsbits.com\/site\/wp-json\/wp\/v2\/media?parent=2201"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.katsbits.com\/site\/wp-json\/wp\/v2\/categories?post=2201"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.katsbits.com\/site\/wp-json\/wp\/v2\/tags?post=2201"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}