|
From: Stefan H. <st...@to...> - 2007-03-31 19:37:20
|
1. The wireframe renderer draws the triangle contours of a box but it should draw the rectangle contours. This can be solved by three lines of code (see below). 2. Diffuse colors which are part of the geometry will be drawn. Geometry independent attributes will be ignored. I think we should add a attribute state handler to the wireframe renderer to handle diffuse colors correctly. Stefan http://www.topoi.ch ________________________________________________ E3GeometryBox.c -> e3geom_box_create_face TQ3TriMeshEdgeData edges[4] = { {{ 0, 1}, { 0, kQ3ArrayIndexNULL}}, {{ 1, 2}, { 0, kQ3ArrayIndexNULL}},{{ 2, 3}, { 1, kQ3ArrayIndexNULL}},{{ 3, 0}, { 1, kQ3ArrayIndexNULL}} }; // Set up the TriMesh structure ... theTriMeshData.numEdges = 4; theTriMeshData.edges = edges; |