From: uis Date: Sun, 10 Dec 2023 00:35:15 +0000 (+0300) Subject: Place drawsurfs only based on surfaces instead of vertices. X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=ddc7a64b83c177f01cb1efb3ac2232e9eb5f77fb;p=xonotic%2Fnetradiant.git Place drawsurfs only based on surfaces instead of vertices. Without it drawsurfs have annoying tendency to be marked as part of leaf which they only touch with verticies --- diff --git a/tools/quake3/q3map2/surface.c b/tools/quake3/q3map2/surface.c index 569fbf08..9b6f706b 100644 --- a/tools/quake3/q3map2/surface.c +++ b/tools/quake3/q3map2/surface.c @@ -2315,10 +2315,6 @@ static int FilterTrianglesIntoTree( mapDrawSurface_t *ds, tree_t *tree ){ refs += FilterWindingIntoTree_r( w, ds, tree->headnode ); } - /* use point filtering as well */ - for ( i = 0; i < ds->numVerts; i++ ) - refs += FilterPointIntoTree_r( ds->verts[ i ].xyz, ds, tree->headnode ); - return refs; } @@ -2361,13 +2357,6 @@ static int FilterFoliageIntoTree( mapDrawSurface_t *ds, tree_t *tree ){ VectorAdd( instance->xyz, ds->verts[ ds->indexes[ i + 2 ] ].xyz, w->p[ 2 ] ); refs += FilterWindingIntoTree_r( w, ds, tree->headnode ); } - - /* use point filtering as well */ - for ( i = 0; i < ( ds->numVerts - ds->numFoliageInstances ); i++ ) - { - VectorAdd( instance->xyz, ds->verts[ i ].xyz, xyz ); - refs += FilterPointIntoTree_r( xyz, ds, tree->headnode ); - } } return refs;