That and the fact I use a single material.
if I do
var merge:Merge = new Merge(false, true,true);
or even
var merge:Merge = new Merge(false, false,false);
it will throw an error
TypeError: Error #1009: Cannot access a property or method of a null object
reference.
    at away3d.core.managers::Texture3DProxy/getTextureForContext()
    at away3d.materials.methods::BasicDiffuseMethod/activate()
    at away3d.materials.passes::DefaultScreenPass/activate()
    at away3d.materials::MaterialBase/activatePass()
    at away3d.materials::BitmapMaterial/activatePass()
    at away3d.core.render::DefaultRenderer/drawRenderables()
    at away3d.core.render::DefaultRenderer/draw()
    at away3d.core.render::RendererBase/executeRender()
    at away3d.core.render::RendererBase/render()
    at away3d.core.render::DefaultRenderer/render()
    at away3d.containers::View3D/render()
    at MergeTest/handleEnterFrame()

Then again if I dont use applyTocontainer and use just apply with (var
merge:Merge = new Merge(false, false,false);) then I dont get the cubes
hanging around.

Would like to explain better but been through lots of combinations and its
hard to know the exact way.


Also, fabrice, understand why it fails but maybe catch/warn of the error.

Using
var merge:Merge = new Merge(false, false,true);
on your demo from the examples

Reply via email to