Username
Password
Auto-login
Show my name in the online users list
Not a member?
Please register.
Forgot your password?
(1) October 2008
(2) May 2008
(1) January 2008
(1) November 2007
(2) September 2007
(7) August 2007
(2) July 2007
(1) June 2007
(3) May 2007
(4) April 2007
(8) March 2007
(9) February 2007
Paper Airplanes using nCloth
Posted: Aug 02, 2007 - 07:38 PM
Category: nCloth
paperPlane1.jpg
Here is a scene file that lets you launch and fly 5 different paper airplane designs:
paperAirplaneLaunch.ma (you'll find this at the bottom)

The airplanes are all made with nCloth and take advantage of the properties of lift and drag on the cloth. When you load the scene a heads up UI appears with several attributes. The first is airplane shape and lets you choose one of the 5 designs to fly. Here is number 5:
paperPlane2.jpg
Number 3 is the record holder for long distance flight. I was surprised to find that after giving the nCloth version its first test flight it flew further than any of the other 5 designs.

To run the simulation simply playback. (note that due to a bug if you are running an XP64 version of Maya8.5 the playback will be very slow... the 32 bit version will be faster) You can set the launch speed and elevation before starting playback. Also you can rotate the plane with the rotate tool to push it at different angles of attack. The flaps can be adjusted while the plane is flying but they are sensitive to use( a joystick would be nice ).
paperPlane3.jpg
Each plane has its own camera that follows it around( see this tutorial ). Note that you can even use Maya camera controls while the simulation is running to better follow the plane, however if the view gets far off you may need to reframe the plane. You can click on the button "Fixed Camera" to switch to a non-following camera.

It is possible to edit the planes. Scaling and rotation are fine, although if you want to edit cvs first select the "Edit Plane" button. When done editing select "Simulate Plane" before playing back.
paperPlane4.jpg
Basically the "edit plane" button is just doing "nCloth: Display Input Mesh".

Real paper airplanes are folded in a way that makes them heavy and stiffer in parts. I simulated this by painting the mass per vertex to be greater where there would be more paper. This is very important for the flight behavior.
paperPlane5.jpg
The launching was accomplished by accellerating a single face plane and constraining the paper airplane to it. The launch speed determines the point at which this constraint is broken by toggling the disable flag. I was able to share the constraint among all the airplanes by setting the "component relation" to "all to first" on the constaint. This connects all the constraint's nComponents to the first one, rather than connecting them all to each other.

The flaps were done by poly combining rotating flaps with the base plane meshes and merging verts before making nCloth. This was followed by "Edit nCloth: Connect Input Mesh to Rest Shape". The nCloth also needed high stretch and bend resistance to simulate paper. Needless to say, lift, drag, mass and gravity were important to get right for the final effect. Gravity is low in this scene, but I think it is more fun to see the planes in slow motion.

The following file shows how you can simulate a lot of planes very quickly. All the planes were first merged with poly combine before making nCloth.(there is only 1 nCloth in the scene). The playback should be pretty much realtime. The final animation has selfCollision enabled on the cloth which is important for the final look, but slows it down a little.
paperAirplanes.jpg
In order to post any comments, you must be logged in!
  Posted by strob  on  11 Apr, 2008  at  10:05 AM

Hi Duncan. How did you create the sliders in the viewport??? I can’t see any expression about them.

Can we animate those sliders so we could render the paper plane animations?

Thanks a lot for thoses examples.

  Posted by peter moner  on  21 Mar, 2008  at  06:15 PM

thanks .

  Posted by alexB  on  04 Dec, 2007  at  09:39 AM

oh duncan: the files (both paper airplane ones at least) dont work in maya 2008. only running in 8.5

cheers

alex

  Posted by alexB  on  04 Dec, 2007  at  09:31 AM

hmm.. the paperAirplaneDemo file just gives me a static scene. even a newly created poly cube which i converted to a nCloth object does not show any gravity movement.

any idea?

cheers

alex

  Posted by bullster  on  28 Oct, 2007  at  10:31 AM

Sir, sorry for the OT. How do you make those sliders? Thank you in advance smile

 
Page 1 of 1 pages