|
From: SourceForge.net <no...@so...> - 2004-06-16 21:15:17
|
Bugs item #967958, was opened at 2004-06-07 01:40 Message generated for change (Comment added) made by pox You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=442052&aid=967958&group_id=45158 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Frank Condello (pox) Assigned to: Nobody/Anonymous (nobody) Summary: Trimesh transparency vertex attributes not applied properly Initial Comment: Transparency color vertex attributes in a trimesh do not appear to properly flag all vertices/triangles as transparent. This screenshot: <http://webhome.idirect.com/~frankco/ transerror.jpg> shows a heightmap that has been flooded with transparency color vertex attributes and should draw entirely in the transparent color, but it appears that (possibly) every-other triangle is solid. The same model works as expected in QD3D. ---------------------------------------------------------------------- >Comment By: Frank Condello (pox) Date: 2004-06-16 17:15 Message: Logged In: YES user_id=171509 I think I've isolated the issue... When ir_geom_trimesh_build_transparent checks for transparent vertices it flags transparent triangles by running through all the vertices and finding their parent triangle. However, ir_geom_trimesh_build_triangles only assigns the first triangle that references a given vertex as a parent, potentially leaving some "childless" triangles in the mix. The diagram below illustrates a tristrip that would exhibit this bug (hopefully my ASCII art comes out ok): A-----B |\ || \ 3 | | \ | | 1 \ | 2 | \| C-----D-----E vertex A parent = triangle 1 vertex B parent = triangle 2 vertex C parent = triangle 1 vertex D parent = triangle 1 vertex E parent = triangle 2 ir_geom_trimesh_build_transparent won't flag triangle #3 as transparent in this case, even if all it's vertices are transparent. ---------------------------------------------------------------------- Comment By: Dair Grant (grantd) Date: 2004-06-15 20:15 Message: Logged In: YES user_id=439944 Can you attach the model to this bug, or make it available? The list of transparent triangles is constructed in ir_geom_trimesh_build_transparent: do you see anything odd if you step through there? Also, does the TriMesh have a usage array for this vertex attribute? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=442052&aid=967958&group_id=45158 |