Cannot display Plane correctly.

Software: Away3D 4.x

nohappy, Newbie
Posted: 12 November 2011 07:25 PM   Total Posts: 9

Hi, I’m a newbie to Away3d, and I stock with a little problem for few weeks.

I have a View3D(1280*720), and a Camera3D(new OrthographicLens(720)). Also I add a Plane(1280*720) to a Scene3D with my .png as its texture.

However, when I render it. It only display about 700*720 of my Plane! That’s about the left half of my Plane. That is, right half of my Plan is outside of my Flash Player’s window. I should be able to see the whole image on my Plane(1280*720) in the window.

Is this problem related to clipping of my camera’s len or something? I have a question about OrthographicLens input parameter, can’t I have different size between camera view and viewport?

   

nohappy, Newbie
Posted: 14 November 2011 02:00 AM   Total Posts: 9   [ # 1 ]

Also, is it because Stage.EXACT_FIT does not really change the scene’s aspect ratio?

I have my application started with:
[SWF(width=“2560”, height=“720”, frameRate=“60”, backgroundColor=”#000000”)]
And I have two View3D, the left one is at (0,0) with size (1280*720), the right one is at (1280,0) with the same size(1280*720).

And I also have this line:

stage.scaleMode = StageScaleMode.EXACT_FIT;
However, it seems like it didn’t change my aspect ratio to let the entire application be visible. about half part of the right View3D is out of window.

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X