« Return to Thread: Tweeners blur

Re: Tweeners blur

by digcode :: Rate this Message:

Reply to Author | View in Thread

 Use its container instead, or the container where
the scene is placed at, depending on what you want to do.

my code like this:

          container = new Sprite();
          addChild(container);
          scene = new InteractiveScene3D(container);
           ....
           rootNode = new DisplayObject3D("rootNode");
           scene.addChild(rootNode);
           ....
           var btp:Bitmap = _logic.get_podlogka_bitmap(pic);
           var btp_data:BitmapData = btp.bitmapData;
           var sprite:MovieClip = new MovieClip();
         
           sprite.addChild(btp);
           sprite.interactive = true;
           var material: InteractiveMovieMaterial = new InteractiveMovieMaterial(sprite, true, true);
           var mat = new InteractiveMovieMaterial(sprite , false, true);
            material.oneSide = false;
            material.smooth = true;  
             _plane_array.push(sprite);  
            var plane_img:Plane = new Plane( material, btp.bitmapData.width, btp.bitmapData.height, 4, 4 );
           
     
   
            plane_img.y =  btp.bitmapData.height/2;
            plane_img.z =  0;
                       
            plane_img.rotationX = 0;
            plane_img.rotationY = 0;
            plane_img.name = String(pic);
            plane_img.rotationZ = 0;
            plane_img.x = 0;
         
            var contain:DisplayObject3D = new DisplayObject3D();
            contain.addChild(plane_img)
           
            contain.moveForward(pic);
            rootNode.addChild(contain);
            _contain_array.push(contain);
            ............
            for(var i:int = 0; i < _logic.get_podlogka_array().length; i++) {                
                   
               
                   Tweener.addTween( _contain_array[i], {
                                 rotationX:RX ,
                                 y:0, z:0, time:time,
                                transition:"easeinoutexpo"
                   });
   and there for blur i can use :

1)
                  Tweener.addTween(_plane_array[i], {
                               _blur_blurX:142, time:2,
                                transition:"easeinoutexpo"
                    });
                 
  its works fine but blur limited by rectangle
2)   Tweener.addTween(rootNode.container, {
                               _blur_blurX:142, time:2,
                                transition:"easeinoutexpo"
                    });

 its works fine but blur apply to all rootNode

3) Tweener.addTween(_contain_array[i].container, {
                               _blur_blurX:142, time:2,
                                transition:"easeinoutexpo"
                    });

 Something like that dont work =((
 When i scene.addChild(contain) i lose functionality of project


Zeh Fernando-2 wrote:
Regardless of tweening or property changing extension used, you cannot
apply filter changes to DisplayObject3D instances as it has no filter
property available. Use its container instead, or the container where
the scene is placed at, depending on what you want to do.


Zeh

digcode wrote:
> Good Day
>
> I try to apply Tweeners blur to the DisplayObject3D objects thats added to
> main DisplayObject3D.
> compiller output is: ReferenceError: Error #1069: Property filters not found
> on org.papervision3d.objects.DisplayObject3D and there is no default value.
> At the same situation when i use Tweeners rotation or  x,y,z properties all
> works correctly.
> Whats wrong?

_______________________________________________
Papervision3D mailing list
Papervision3D@osflash.org
http://osflash.org/mailman/listinfo/papervision3d_osflash.org

 « Return to Thread: Tweeners blur