brlrt / away3d

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

[broomstick] r3127 cylinder yup false bug #174

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago

create a cylinder with yUp =false

light = new PointLight(); //pos set in renderloop
scene.addChild(light);
var mat:BitmapMaterial = new BitmapMaterial(Bitmap(new IMGASSET()).bitmapData);
mat.lights = [light]
var cylinder:Cylinder = new Cylinder(mat, 150, 150, 200, 8, 4, true, true, 
false);
scene.addChild(cylinder);

The top and bottom center vertices are reversed.

possible fix?

line 80
vertices[numVerts++] = -_height/2;

line 166
vertices[numVerts++] = _height/2;

Original issue reported on code.google.com by jbp...@googlemail.com on 11 Apr 2011 at 9:17

GoogleCodeExporter commented 8 years ago

Original comment by fabric...@gmail.com on 12 Apr 2011 at 10:18