Hi guys,
I’m currently working on a project which requires multi touch support as well as what used to be known as MovieMaterial in previous versions of Away3D. I forked the current version of Away3D 4 and added support for TransformGestureEvents using a Gesture3DManager class that I wrote, pretty much identical to the Mouse3DManager that already comes with Away3D. Everything should work similar to how you already work with Mouse3DEvents. For example:
plane.addEventListener(GestureEvent3D.GESTURE_ROTATE, onGestureRotate);
private function onGestureRotate(event:GestureEvent3D):void {
var target:Object3D = event.object;
target.rotationZ -= event.rotation;
}
GestureEvent3D should support the same event types as TransformGestureEvent (Pan, Rotate, Swipe, Zoom). My dev fork is located here if your’e interested: https://github.com/robdodson/away3d-core-fp11/tree/dev
I’m wondering if this is something that you guys would like to pull into the Away3D project and who I should talk to about further contributions? I’ve already started down the road of writing my own MovieMaterial and I have many aspects of that working however it was using the old BitmapMaterial which I see is no longer supported in the current dev branch of Away3D so I have to figure out how to work with the new stuff. I would love to talk to some team members to get their ideas on how to best use the new TextureMaterial to create a MovieMaterial. My current project requires MovieMaterial so I’ll be writing a solution for this problem one way or the other. I figure if it’s in line with that the team has in mind that could maybe also be a useful contribution.
Thanks!
- rob