View3d / set renderer function

Software: Away3D 4.x

Ilya Aleshkov, Newbie
Posted: 29 May 2013 10:22 AM   Total Posts: 3

Hi!
I need technique for quick render switch:

private var view View3D;
private var 
defaultRenderer RendererBase;
private var 
specilalRendererSpecialRenderer;
...
defaultRenderer view.renderer// Backup renderer
view.renderer specilalRenderer;
view.render();
view.renderer defaultRenderer// Restore renderer
view.render(); 

I can’t do this without Away3d’s source code modifications:

// away3d.containers.View3D.as / line 328:
public function set renderer(value RendererBase) : void
{
    _renderer
.dispose(); // Please, remove this line
    // I can do it by myself if needed
    
...
   
   
‹‹ How about Dart?

X

Away3D Forum

Member Login

Username

Password

Remember_me



X