Closed GoogleCodeExporter closed 9 years ago
Additional/contributing error...
public override function project( parent :DisplayObject3D,
renderSessionData:RenderSessionData ):Number
{
// Vertices
super.project( parent, renderSessionData );
var line3D:Line3D;
var screenZ:Number; // COMING THRU AS NAN BELOW
for each(line3D in lines){
if(renderSessionData.viewPort.lineCuller.testLine(line3D)) {
line3D.renderCommand.renderer = line3D.material;
screenZ+=line3D.renderCommand.screenDepth = (line3D.v0.vertex3DInstance.z +
line3D.v1.vertex3DInstance.z)/2;
renderSessionData.renderer.addToRenderList(line3D.renderCommand);
}
}
return screenZ/(lines.length+1);
}
Original comment by Whistler...@gmail.com
on 6 Oct 2008 at 3:40
This is not a bug. You need to set the calculateScreenCoords property to true
for the
screen coords to be calculated.
Original comment by r.hauw...@gmail.com
on 17 Oct 2008 at 1:46
Original issue reported on code.google.com by
Whistler...@gmail.com
on 26 Sep 2008 at 3:06Attachments: