The folks over at Blitz and at papervision2 have come up with some interesting ways to actually have real interaction with the MovieClips you are texturing your models with.
The quick is that you always use MovieMaterials(created with a reference to an existing MovieClip someplace on stage). Normally the MovieMaterial object can be offstage or even visible=false to not see the clip; thing is they use visible=true, alpha=0 and reposition the clip actually under the mouse. A bit of trickery has the user actually interacting with the 2D flat MovieMaterial.
One of the nice things about this is that you can also do some testing and creating of functionality of your MovieClips as flat 2D objects and then map them to another object.
In creating an app with multiple panels in a 3D space every panel needs to be attached to the stage and then used to map onto your objects. This is fine when it’s just one object. When there are multiple surfaces that need interactivity this can quickly get out of control.
If you are using pureMVC or carimgorn to build your app you are used to creating a view/ui class that represents the specific element as a whole, it needs to have two elements, the stage texture version and the display3d object.
Ok cool. Just take a step back so that your view consists of two ui elements. Your mediators/viewhelpers can then access both elements and update them appropriately.
Wait what if we have multiple panels with the same textures? Looks like there are two options:
We also found that it’s a good idea to add some code that listens for the mouse to be off the given object and send the stage texture off stage and hidden. In the example from Blitz you can still click on an element even though the mouse wasn’t on the object.
Thanks to those guys for the hook ups of the advanced interactive elements.
Nate is currently a Senior Presentation Layer Architect at Razorfish Chicago. As an SPLA Nate: participates in technology leadership team and resource allocations, manage fulltime and contractor resources, represents technology for groups of brands across multiple clients, furthers development of standards within the office, architects project implementations and fosters community and mentoring.