View Backgroung issue

Software: Away3D 4.x

diego.pedroza, Newbie
Posted: 01 August 2013 05:44 PM   Total Posts: 8

Hey there

I’m trying to add a background to my scene view on a Flash Builder Mobile project, but when add the background view is displaced to the right and a little to the bottom (Attached an image)

Here is my code

view = new View3D();
view.width = 640;
view.height = 480;
view.camera.position = new Vector3D(0, 0, 0);
 
var bmd:BitmapData = new FloorDiffuse().bitmapData;
view.background = new BitmapTexture(bmd);

Thanks for your help

 

   

diego.pedroza, Newbie
Posted: 01 August 2013 06:18 PM   Total Posts: 8   [ # 1 ]

Actually found that the problem is not the backgroud is the view, if I add the view inside a Sprite, the vies is who is displaced

   

diego.pedroza, Newbie
Posted: 02 August 2013 12:39 AM   Total Posts: 8   [ # 2 ]

Solved, for who has same problem than me here is the solution

http://artpluscode.com/blog/?p=128

   
   
‹‹ FPS capped?

X

Away3D Forum

Member Login

Username

Password

Remember_me



X