Rendering of a spinning wireframe torus primitive has drawing issues. It
renders fine as a regular mesh torus. I used the following code (I didn't
write all the code used, just the important lines):
var fogMaterial:ColorMaterial = new ColorMaterial(0x000000);
var torusMat:WireframeMaterial= new WireframeMaterial(0xff0000);
var fog:FogFilter = new
FogFilter({minZ:900,maxZ:1200,subdivisions:15,material:fogMaterial});
var basicrenderer:IRenderer = new BasicRenderer(fog);
var torus1:Object3D = new WireTorus({material:torusMat,
radius:150,tube:20,segmentsR:40,segmentsT:5,yUp:false});
...
view.camera.position = new Number3D(0, 200, 1000);
...
addEventListener(Event.ENTER_FRAME, onEnterFrame);
...
function onEnterFrame(event:Event):void {
torus1.rotationY = getTimer() / 6;
}
I'm using your 2.0 code release on XP. Originally I thought b/c I had
created torusMat as a ColorMaterial that was the issue, but using
WireframeMaterial didn't fix it.
Great API! I appreciate the effort you guys put into this.
Original issue reported on code.google.com by dr.za...@gmail.com on 18 Apr 2008 at 2:49
Original issue reported on code.google.com by
dr.za...@gmail.com
on 18 Apr 2008 at 2:49