[Away3D Lite] Viewport scaling bug (IE7 + SWFObject)

13 views
Skip to first unread message

Casey

unread,
Nov 18, 2009, 1:08:22 PM11/18/09
to away3d.dev
I'm experiencing an issue where sometimes the viewport is extremely
scaled down from the actual stageWidth in IE7 using SWFObject. Has
anyone else experienced this? I can't be sure that the issue pertains
to IE or SWFO but given past experience I would say it is likely. A
quick fix will probably be to hard code width and height of the
viewport but I'm hoping to find a more flexible solution for the
future.

Thanks,

Casey

Peter Kapelyan

unread,
Nov 18, 2009, 1:12:38 PM11/18/09
to away3...@googlegroups.com
Put a RectangleClipping on your view, or use a scrollRect or mask.
-Pete
--
___________________

Actionscript 3.0 Flash 3D Graphics Engine

HTTP://AWAY3D.COM

Casey

unread,
Nov 20, 2009, 4:02:53 PM11/20/09
to away3d.dev
I'm using the BasicTemplate class which addes a RectangleClipping to
the view, do I need to further configure the RectangleClipping? For
anyone interested -- I determined that this bug is present in Flash
Player 10.0.12.X and Flash Player 10.0.22.X but not present in
10.0.36.X

Casey

unread,
Nov 20, 2009, 4:29:01 PM11/20/09
to away3d.dev
ScrollRect and mask also did not fix the issue, neither did any
variation of the values in the view.clipping RectangleClipping. I am
only able to reproduce the issue when SWFObject is embedding the SWF,
running standalone has no issue

Peter Kapelyan

unread,
Nov 20, 2009, 4:35:24 PM11/20/09
to away3...@googlegroups.com
Oops it's an Away3Dlite issue, not Away3D (which I assumed). I am not sure about whats going on, and being that Lite is still in its infancy there's plenty of goodies as well as bugs to find. Sorry for not being helpful :/

Casey

unread,
Nov 20, 2009, 4:53:42 PM11/20/09
to away3d.dev
No problem. Thanks for trying

Anyway back on topic... I was wrong about SWFObject playing a role in
this bug. It does not.

Casey

unread,
Nov 20, 2009, 6:10:31 PM11/20/09
to away3d.dev
After more research it seems that even the Away3D Lite examples are
affected by this bug. Is this already known? Is there a solution in
the works?

Just to clarify the bug:

All objects are scaled down to something like 1/20th of what they
should be.

<= Flash Player 10.0.22
All browsers
No relation to SWFObject

Can someone rename this thread to a more relevant title?

Thanks,

Casey

katopz

unread,
Nov 20, 2009, 10:40:29 PM11/20/09
to away3...@googlegroups.com
it's flash player bug, just chk flash player version or manual fix before doing things


  1.         private function correctMatrix3DMultiplyBug(matrix:Matrix3D):void
  2.         {
  3.             // see http://bugs.adobe.com/jira/browse/FP-670
  4.             var m1:Matrix3D = new Matrix3D(Vector.<Number>([ 0000,  0000,  0000,  0010 ]));
  5.             var m2:Matrix3D = new Matrix3D(Vector.<Number>([ 0000,  0000,  0001,  0000 ]));
  6.             m1.append(m2);
  7.             if (m1.rawData[15] == 20) {
  8.                 // バグ持ち!
  9.                 var rawData:Vector.<Number> = matrix.rawData;
  10.                 rawData[15] /= 20;
  11.                 matrix.rawData = rawData;
  12.             }
  13.         }


half of lite thread is this issue, maybe it's time to book it somewhere ;o

hth

2009/11/21 Casey <kle...@gmail.com>

Casey

unread,
Nov 22, 2009, 7:14:37 PM11/22/09
to away3d.dev
Thanks! Is this check not already a part of the Away3D Lite core? I'm
not exactly sure where/when to make this manual fix...

On Nov 20, 7:40 pm, katopz <kat...@gmail.com> wrote:
> it's flash player bug, just chk flash player version or manual fix before
> doing things
>
> http://wonderfl.net/code/fd77117130bc4a82c686afa7c3a2fa19a3b8e0fa
>
>
>
>
>
> > 1. private function
> > correctMatrix3DMultiplyBug(matrix:Matrix3D):void
> > 2. {
> > 3. // seehttp://bugs.adobe.com/jira/browse/FP-670
> > 4. var m1:Matrix3D = new Matrix3D(Vector.<Number>([ 0, 0, 0
> > , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0 ]));
> > 5. var m2:Matrix3D = new Matrix3D(Vector.<Number>([ 0, 0, 0
> > , 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0 ]));
> > 6. m1.append(m2);
> > 7. if (m1.rawData[15] == 20) {
> > 8. // バグ持ち!
> > 9. var rawData:Vector.<Number> = matrix.rawData;
> > 10. rawData[15] /= 20;
> > 11. matrix.rawData = rawData;
> > 12. }
> > 13. }

Casey

unread,
Nov 23, 2009, 4:47:03 PM11/23/09
to away3d.dev
Hey katopz,

I'm still a bit stumped on where to apply the fix... should I be
modifying the core Away3D Lite source? I see Matrix3D.append() in
Object3D, ObjectContainer3D, Camera3D, and SkinController. So far I
haven't had any success.

Also out of curiosity, has the fix been deliberately ignored for
Away3D Lite for the sake of file size or speed?

Thanks,

Casey

katopz

unread,
Nov 23, 2009, 9:12:12 PM11/23/09
to away3...@googlegroups.com
this bug is already fix, so just chk and force user to update their flash player to last version, that's it ;o

2009/11/24 Casey <kle...@gmail.com>



--
katopz
http://www.sleepydesign.com

Reply all
Reply to author
Forward
0 new messages