Hi,
i have a make a little website base on away 3d, specially fot the
coming effect ot my different elements.
All work great, except one find : the white screen at the center of
the scene.
When i resize my scene under a size of 800px of height, my screen,
which is a plane3d, disapear ...
And reapear when scaling up my scene over 800px of height...
I just don't understand why....
My screen is compose with 2 plane : base for the footer / and the
screen display.
here is a the interest part of my code - screenMat use a png:
//OBJECT & MAT
var decor:ObjectContainer3D = new ObjectContainer3D()
var screenBase:Plane
var screenDisplay:Plane
var screenContainer:ObjectContainer3D = new ObjectContainer3D()
var screenBaseMat:BitmapMaterial = new BitmapMaterial(Cast.bitmap
(ScreenBaseImg), {smooth:true, precision:2});
var screenMat:BitmapMaterial = new BitmapMaterial(Cast.bitmap
(ScreenImg), {smooth:true, precision:2});
//CONSTRUCT
screenBase = new Plane({material:screenBaseMat});
screenBase.width =789
screenBase.height = 51
screenBase.rotationX = 90
screenBase.movePivot(0,0,-25)
screenDisplay = new Plane({material:screenMat});
screenDisplay.width =691
screenDisplay.height = 402
screenDisplay.y = 50
screenDisplay.rotationX= 90
screenDisplay.x = -10
screenDisplay.movePivot(0,0,-201)
screenContainer.movePivot(-340,0,0)
screenContainer.x = -335
screenContainer.addChild(screenBase)
screenContainer.addChild(screenDisplay)
screenContainer.y =1080
screenContainer.rotationZ =20
decor.addChild(screenContainer)
//RENDER
cam = new Camera3D({zoom:1,focus:2000});
View = new View3D({camera:cam,x:960,y:skyTargetY,stats:false});//
render:QuadrantRenderer
View.renderer = Renderer.BASIC
addChildAt(View,8);
View.render();
addEventListener(Event.ENTER_FRAME,onEnterFrame);
and here is the result and also the bug if you resize the window
http://robertson.pro/clients/michelin/minisite/index.html
Perhaps the bug is from bitmaps precision ?...
Thanks very much for your help