thx for report, it look like loader3d and objectcontainer relate this problem maybe layer didn't assign to inner object3d somehow after loaded
i'll look into this asap On 28/10/2009, mogg <[email protected]> wrote: > > Found the issue in FastRender.as. > > > I changed line 32 from > > children.sortOn("screenZ", 18); > > to > > children.sortOn("screenZ", 16); > > Now my objects sort in the correct order! Whoo Hooo! > > On Oct 27, 8:30 pm, mogg <[email protected]> wrote: >> I'm having the same problem. If I use .canvas my objects no longer >> sort correctly. >> >> I have tried the following without results: >> >> render.sortObjects = true; >> >> obj3d.sortType = SortType.CENTER; >> >> with both BasicRenderer and FastRenderer >> >> On Oct 27, 4:53 pm, Piotr Kościerzyński >> >> >> >> <[email protected]> wrote: >> > Is it possible to set a layer for a collada model (or 3ds model)? >> >> > If I set layer for many Plane objects (like in the ExLayer example), it >> > works fine, but when I try do combine Plane (ground - always on the >> > bottom >> > layer) and a collada model, then the model is always covered by the >> > plane. >> >> > I tried both FastRenderer and BasicRenderer, with the same results. >> >> > My code: >> >> > /* setting plane layer */ >> >> > groundLayer = new Sprite(); >> > view.addChild(groundLayer); >> > view.setChildIndex(groundLayer, 0); >> >> > groundPlane.layer = groundLayer; >> >> > /* init model loading */ >> > collada = new Collada(); >> > collada.scaling = 175; >> >> > loader = new Loader3D(); >> > loader.loadGeometry("assets/model.dae", collada); >> > loader.addEventListener(Loader3DEvent.LOAD_SUCCESS, >> > onColladaLoadSuccess); >> >> > scene.addChild(loader); >> >> > ----- >> >> > /* onColladaLoadSuccess - dae load handler */ >> >> > model = loader.handle as ObjectContainer3D; >> > var layer:Sprite = new Sprite(); >> > view.addChild(layer); >> > model.layer = layer; >> >> > Thanks, >> > Piotr- Hide quoted text - >> >> - Show quoted text - -- katopz http://www.sleepydesign.com
