kottore / away3d

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

Backface Culling broken if scaleX = -1 #129

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create this Cube:
var cube:Cube = new Cube();
cube.width = 20;
cube.height = 20;
cube.depth = 20;
cube.material = new WireColorMaterial(0xff0000);
cube.bothsides = false;

2. Set scaleX property to -1 :
cube.scaleX = -1;

3. render the scene looking at the cube

What is the expected output? What do you see instead?
Normally the front faces should be rendered. Instead only backfaces are 
visible. If i omit step 2. Backface Culling works just fine.

What version of the product are you using? On what operating system?
svn trunk revision 2753

Please provide any additional information below.
Is there a workaround for this? I tried to edit the faces/vertices directly etc 
but with no success.

Original issue reported on code.google.com by michael....@gmail.com on 26 Aug 2010 at 2:13