Hi,
I am rescaling my away world, and when I scale my browser horizontally everything updates as expected, but when I scale the browser vertically, my 3D content scales.
Browser becomes smaller and the 3D content scales down, and the other way around when the browser becomes bigger in vertical direction.
My code is simple when resizing:
_world.view.width = stage.stageWidth;
_world.view.height = stage.stageHeight;
I also have 2 Starling layers, and the resizing happens in the following code:
_stage3DProxy.width = stage.stageWidth;
_stage3DProxy.height = stage.stageHeight;
var viewPort:Rectangle = RectangleUtil.fit( new Rectangle(0, 0, stage.stageWidth, stage.stageHeight),
new Rectangle(0, 0, stage.stageWidth, stage.stageHeight),
ScaleMode.SHOW_ALL);
//layout the starling layer:
_starlingBack.viewPort = viewPort;
_starlingBack.stage.stageWidth = stage.stageWidth;
_starlingBack.stage.stageHeight = stage.stageHeight;
_starlingWall.viewPort = viewPort;
_starlingWall.stage.stageWidth = stage.stageWidth;
_starlingWall.stage.stageHeight = stage.stageHeight;
But the Starling resizing doesn’t affect the Away3D resizing right?
Anyone knows why the vertical scaling of the browser affects the scale of the 3D content?
Ps. I am using 4.1.4 GOLD (and have tried it with 4.1.1 BETA as well)