Well, I've tried a variety of things to get the graphics to disappear.
Calling view.renderer.context.clear() freezes the player, adding the
view to the stage, removing it, and then adding it again, via addChild/
removeChild/addChild causes this error

TypeError: Error #1009: Cannot access a property or method of a null
object reference.
        at away3d.core.managers::Stage3DProxy/set viewPort()[C:\Documents and
Settings\Stephen\Adobe Flash Builder 4.5\broomstick_src\away3d\core
\managers\Stage3DProxy.as:106]
        at away3d.core.render::RendererBase/updateViewPort()[C:\Documents and
Settings\Stephen\Adobe Flash Builder 4.5\broomstick_src\away3d\core
\render\RendererBase.as:337]
        at away3d.core.render::DefaultRenderer/updateViewPort()[C:\Documents
and Settings\Stephen\Adobe Flash Builder 4.5\broomstick_src\away3d\core
\render\DefaultRenderer.as:121]
        at away3d.core.render::RendererBase/render()[C:\Documents and Settings
\Stephen\Adobe Flash Builder 4.5\broomstick_src\away3d\core\render
\RendererBase.as:295]
        at away3d.core.render::DefaultRenderer/render()[C:\Documents and
Settings\Stephen\Adobe Flash Builder 4.5\broomstick_src\away3d\core
\render\DefaultRenderer.as:79]
        at away3d.containers::View3D/render()[C:\Documents and Settings
\Stephen\Adobe Flash Builder 4.5\broomstick_src\away3d\containers
\View3D.as:336]
        at Main/run()[C:\Documents and Settings\Stephen\Adobe Flash Builder
4.5\TestProject\src\Main.as:174]

Adding/removing the view, via flex view states, causes this error

Error: A Stage3D instance was already assigned!
        at away3d.core.render::RendererBase/set stage3DProxy()[C:\Documents
and Settings\Stephen\Adobe Flash Builder 4.5\broomstick_src\away3d\core
\render\RendererBase.as:166]
        at away3d.containers::View3D/onAddedToStage()[C:\Documents and
Settings\Stephen\Adobe Flash Builder 4.5\broomstick_src\away3d
\containers\View3D.as:441]
        at flash.display::DisplayObjectContainer/addChildAt()

Is there a correct way to do this? Maybe never remove the view (since
this doesn't actually do anything but break it), just cover it up and
stop rendering it? lol. It would be nice to at least be able to use
the view3d itself as a means to coverup/erase the context3d graphics,
but as mentioned earlier, context.clear() freezes the player, and I
don't really know what else to try with the view3d.

On Jun 7, 6:55 pm, Stephen Hopkins <[email protected]> wrote:
> I need help with this as well. After my sprite/view3D is removed from
> the stage, the 3D graphics are still there in the background. The
> view3D seems to have a removedFromStage listener but for some reason
> it does not clear the context before disposing it? How can I clear the
> background?
>
> On May 5, 3:47 am, John Brookes <[email protected]> wrote:
>
>
>
>
>
>
>
> > Have different views overlaid.
>
> > Birds eye view, single cam renderer view.
>
> > In car view, with two mirrors (3views,3cameras).
>
> > Going from 'in car' to 'birds eye' the mirror views remain on screen.
> > Tried remove child, setChildIndex plus other guesses, can seem to remove the
> > two mirror views.
> > How?
>
> > Another question to this, any way of reversing a view (mirror) eg
> > view.scaleX*=-1
> > That sort of works but the mesh becomes inverted.

Reply via email to