katopz,

Thank you for the merge. I had to make the following adjustments to
FastRenderer.as as follows: (see comments ***)
I had to do this in order to get a correct zSort on objects using
"canvas". Otherwise it is working perfectly! Thank you!

private function collectFaces(object:Object3D):void
{
_mouseEnabledArray.push(_mouseEnabled);
_mouseEnabled = object._mouseEnabled = (_mouseEnabled &&
object.mouseEnabled);

if (object is ObjectContainer3D)
{
var children:Array = (object as ObjectContainer3D).children;
var child:Object3D;

if (sortObjects)
children.sortOn("screenZ", 16); //*** changed sort order

for each (child in children)
{
if(cullObjects)
_culler.cull(child);

if(child.canvas)
{
var _child_canvas:Sprite = child.canvas;
// *** number of children don't always match
// *** between object.numChildren and canvas.parent.numChildren
if(children.indexOf(child) < _child_canvas.numChildren)
{
        _child_canvas.parent.setChildIndex(_child_canvas, children.indexOf
(child));
}
_child_canvas.graphics.clear();
}

if(child.layer)
child.layer.graphics.clear();

collectFaces(child);
}

}

if(cullObjects && !object.visible)
{
numCulled++;
return;
}

if (object is Particles)
{
var _particles_lists:Array = (object as Particles).lists;

if(_particles_lists.length>0)
_particles = _particles.concat(_particles_lists);
}
}

On Nov 2, 9:56 pm, katopz <[email protected]> wrote:
> branches is now sync to trunk, but i didn't test yet just merged
> so plz do some test for that and tell me what i missing there
>
> hth
>
> 2009/11/3 mogg <[email protected]>
>
>
>
>
>
> > Dear Away3D Team,
>
> > Thank you for your hard work on the Away3Dlite libraries.
>
> > When do you think another merge between
>
> > Away3D\trunk\fp10\Away3DLite
> > and
> > Away3D\branches\lite\libs\away3dlite
>
> > will happen?
>
> > I would like to take advantage of the recent fixes that are in the
> > trunk with the Canvas, Filters, and Alpha capabilities in the "branches
> > \lite".
>
> > Best regards,
>
> --
> katopzhttp://www.sleepydesign.com- Hide quoted text -
>
> - Show quoted text -

Reply via email to