pmartz / jag-3d

Automatically exported from code.google.com/p/jag-3d
0 stars 1 forks source link

sharedtetra.osg incorrect rendering #29

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
jagmodel -f sharedtetra.osg renders incorrectly. It should render two 
tetragedron, but renders only one. The model uses a shared instance of the 
tetrahedron, so it's possible that something is broke with the transform.

Original issue reported on code.google.com by SkewMat...@gmail.com on 15 Jul 2013 at 2:55

GoogleCodeExporter commented 9 years ago
Fixed in revision 3b884f60f6d2. Always copy the top of matrix stack into the
draw Node transform. What was going wrong in this issue was that
the transform was dirty in a parent node of the node that contained
the Drawables, so the old code logic was missing the dirty transform
and not copying it into the draw Node.

We might want to look at possible optimizations for the draw graph.
The code will currently recompute all the transform uniforms for
any non-identity model matrix, and this isn't necessary if
the matrix isn't changing from one draw Node to the next.

Original comment by SkewMat...@gmail.com on 16 Jul 2013 at 7:56