windrobin / papervision3d

Automatically exported from code.google.com/p/papervision3d
0 stars 0 forks source link

QuadrantRenderEngine unexpected material anomalies #158

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.
2.
3.

I also posted this on the forum.

I'm building up a more complex scene using the Cube object.   If I use a 
single material for the cube: 
                        var mml:MaterialsList = new MaterialsList(); 
                        mml.addMaterial( new ColorMaterial( 
0xff0000), "all" ); 
and then run a cylinder through the cube, there is no rendering 
interference problems. 

If I setup the same (or also different) materials for the faces: 
                        var mml:MaterialsList = new MaterialsList(); 
                        var cm3:TriangleMaterial = new ColorMaterial( 
0xff0000); 
                        mml.addMaterial( cm3, "back"); 
                        mml.addMaterial( cm3, "front"); 
                        mml.addMaterial( cm3, "top"); 
                        mml.addMaterial( cm3, "bottom"); 
                        mml.addMaterial( cm3, "right"); 
                        mml.addMaterial( cm3, "left"); 
and run a cylinder through the cube it has a lot of rendering issues.  
When the QuadrantRenderEngine renders this at different orientations a ton 
of wireframe triangles start showing up.

Andy Zupko replied:
There is a bug some people have had with DAE that is similar to this -   
i will take a look at it - not much you can do unless you want to   
debug the quadtree yourself (feel more than welcome!)

What is the expected output? What do you see instead?

No wireframe rectangles.

What version of the product are you using? On what operating system?
Last seen on 856.

Please provide any additional information below.

Original issue reported on code.google.com by deana...@yahoo.com on 7 Jan 2009 at 10:49

GoogleCodeExporter commented 9 years ago
Andy, I'm assigning to you because you implemented, but feel free to re-assign

Original comment by neori...@gmail.com on 13 Jan 2009 at 2:24

GoogleCodeExporter commented 9 years ago
Fixed.  There was a bug in my code which was using the instance material 
instead of
the triangle material (obviously objects with more than one material would fail
this).  Should work now (and be slightly faster).

Original comment by azu...@gmail.com on 4 Mar 2009 at 2:17