Has BezierPatch moved to some other package (from away3d.primitives in 3.6) in Away3d v4?
Or it has not/will not be implemented?
BezierPatch in Away3d v.4Software: Away3D 4.x |
||
astro, Newbie
Posted: 08 February 2013 12:30 PM Total Posts: 8 Has BezierPatch moved to some other package (from away3d.primitives in 3.6) in Away3d v4? Or it has not/will not be implemented? |
||
Greg Caldwell (Greg209), Administrator
Posted: 11 February 2013 10:42 AM Total Posts: 45 [ # 1 ] Hi, @astro The BezierPatch has not yet been implemented in Away3D 4.x. It’s something I’d like to do in the future but there isn’t any timescale on it yet. @LorenMC Are you refering to the Explorers for the Patches and NURBS on my blog ( http://www.geepers.co.uk/media/flash/software/bezier_patch_explorer.swf )? If so, I’m sure there are more effective methods but for those demos (in Away3D 3.x), I set up an almost completely transparent huge plane that is always facing the camera but is not visible until until there is a MOUSE_DOWN on a control points. Then the plane is made visible and is positioned slightly in front of the control cube so it now receives mouse events instead of the control point. As the MOUSE_MOVE is monitored over the plane, the cube is positioned at the 3d coordinates based on the mouse position minus the slight offset of the plane, so it always remains in front. When the MOUSE_UP is detected, the plane is hidden again so the rest of the scene detects mouse events. It’s not a particularly elegant solution but works ok in this case. Cheers Greg209 |
||
astro, Newbie
Posted: 11 February 2013 12:05 PM Total Posts: 8 [ # 2 ] I’ve seen draggable points implemented for this app http://wonderfl.net/c/yLPf/read I actually want to do pretty similar dynamic transformations with objects in my iOS app (running on Starling framework). In fact I already do so with Bezier curves but not in real time. I’m not sure if mobile device performance would allow for real time deformations as shown in demo. |
||
|
||
|