Origin/Alignment differences with Spite2D and MovieClipSprite object/materials

0 views
Skip to first unread message

gz

unread,
Nov 20, 2007, 1:59:08 PM11/20/07
to away3d.dev
Good day group!

First off, thanks for the new update Rob! Can't wait to try to test it
out. But before I do I need to tackle a small issue. I hope this is
not just really stupid simple and I did not think investigate more,
but I am swamped and do not feel like struggling. So here goes!

I have been building a prototype application using bitmap Sprite2D
objects and now need to move pretty much all marterials over to swf/
vector MovieClips. I immediately tried to leverage the
MovieClipSprite class and applied this to what was previously a
Sprite2D pinned to the world 0,0,0. The old material for the Sprite2D
was the same size as my View3D and filled the screen perfectly. I went
into the Flash IDE and pasted the old bitmap material into a new swf
(centered it) and published. When I viewed the scene the
MovieClipSprite(or maybe just its material?) appeared shifted up and
to the left quite a bit, almost as if one origin was using the top
left and one the center.

Bottom line in a long-winded problem solving approach, is there an
easy way to convert my current alignment/placement of sprites so I can
change out all 2D planes to use MovieClipSprite?

Thanks for any and all help!

Best,
Ken Rogers

Rob Bateman

unread,
Nov 21, 2007, 7:45:55 AM11/21/07
to away3...@googlegroups.com
Unfortunately MovieClipSprite is not implemented in the new revision - we are working on correcting this asap.

In the meantime i would suggest trying to use MovieMaterial with a Plane object instead. You have to set the initial dimensions of the plane manually but the effect should be the same, as long as you execute a lookAt( camera.position) every frame to ensure the plane stays face-on


atb


Rob
--
Rob Bateman
Flash Development & Consultancy

Work: 0207 4823328
Mobile: 07714 329 073

rob.b...@gmail.com
Reply all
Reply to author
Forward
0 new messages