|
From: SourceForge.net <no...@so...> - 2004-02-23 11:10:32
|
Bugs item #902592, was opened at 2004-02-23 11:00 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=442052&aid=902592&group_id=45158 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Tom Sanham (tomsanham) Assigned to: Nobody/Anonymous (nobody) Summary: TriMesh Colours go to the wrong faces Initial Comment: Quesa 1.6d18 OS used: Windows XP (not tested on Mac) This bug affects cube shaped TriMeshes with 8 vertices which specify a colour attribute per face. I believe that the described behaviour occurs because the model has >1 faces referencing the same vertex. Behaviour: The following strange behaviour was observed: Setting Attribute 0 controls faces 0,4,5 Setting Attribute 1 controls face 1 Setting Attribute 2 controls faces 2,6,7,8,9,10 Setting Attribute 3 controls faces 3,11 Setting Attributes 4..11 has no visual effect The same model renders correctly under QD3D - attribute n controls face n for 0<=n<12. Workaround: An effective workaround is to build the cube with duplicate vertices such that no vertex is shared by two faces. Example trimesh included as a 3DMF. Best viewed with kQ3InterpolationStyleNone .triMeshAttributeSet = 0 .numTriangles = 12 .*triangles = (4,6,2) , (4,2,0) , (1,3,7) , (1,7,5) , (5,7,6) , (5,6,4) , (0,2,3) , (0,3,1) , (2,6,3) , (3,6,7) , (4,0,1) , (4,1,5) .numTriangleAttributeTypes = 1 .triangleAttributeTypes = .attributeType = kQ3AttributeTypeDiffuseColor .data = (1,0,0), (1,1,1), (1,1,1), remaining 9 faces (1,1,1) .numEdges = 0 .edges = 0 .numEdgeAttributeTypes = 0 .*edgeAttributeTypes = 0 .numPoints = 8 .*points = (0,0,0), (1,0,0), (0,1,0), (1,1,0), (0,0,1), (1,0,1), (0,1,1), (1,1,1) .numVertexAttributeTypes = 0 .*vertexAttributeTypes = 0 .bBox = (0,0,0) , (10,10,10) , kQ3False ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=442052&aid=902592&group_id=45158 |