RESOLVED: BitmapData background in View3D

Software: Away3D 4.x

Valeria, Newbie
Posted: 17 February 2012 09:22 PM   Total Posts: 1   [ # 16 ]

Ey! I’ve just downloaded the last version of away3d 4 and i’ve seen that view.backgroundImage has disappeared. Instead it’s background and it requires a Texture2dBase.
I want to show the capture from the webcam so I’ve tried doing:

bmpData= new BitmapData(512, 256);
bmpTex = new BitmapTexture(bmpData);
_view.background = bmpTex;

But nothing appears on screen. What am I missing? Is this method no longer usable?


Leo Brennan, Newbie
Posted: 27 February 2012 02:42 PM   Total Posts: 20   [ # 17 ]

This worked for me:

var bitmapData:BitmapData = new BitmapData(BACKGROUND_WIDTH, BACKGROUND_HEIGHT);
  bitmapData.copyPixels(_backgroundBitmapData, new Rectangle(_x, _y, BACKGROUND_WIDTH, BACKGROUND_HEIGHT),
      new Point(0,0));
_view.background new BitmapTexture(bitmapData);

This was to show just part of the background on the screen, not the whole background


Tehn, Newbie
Posted: 06 March 2012 07:36 PM   Total Posts: 7   [ # 18 ]

Didn’t get how to do it… But I will try! What was the reason to change this property?


Leo Brennan, Newbie
Posted: 07 March 2012 09:18 AM   Total Posts: 20   [ # 19 ]

I am guessing that the background is actually a Plane and so to apply a texture to it, it needs it as a TextureMaterial


marronnier, Newbie
Posted: 14 May 2012 12:16 PM   Total Posts: 17   [ # 20 ]

Is there any way to make a tiled viewport background texture?

‹‹ c4d awd2 exporter


Away3D Forum

Member Login