Animating a musical performance presents a number of challenges. One issue when a particular instrument has a strap- like a guitar- is to accurately simulate the behavior of a cloth item attached to two separate, independent objects. The strap must follow the movement of the instrument, conform to the figure, and look realistic in between.
This is an excellent place to use dynamic cloth, in particular its ability to use choreographed groups. A choreographed group is a piece of the cloth item which is not controlled entirely by the simulation, rather it's animated explicitly, like other props. This tutorial will describe one way of using choreographed groups on a simulated cloth strap to get a realistic, properly-behaving guitar strap.
1. Setting the Scene
We'll start by bringing in a figure and an instrument. For this example I've chosen the , and I've created a bass guitar prop from one of the instruments in the , also on CP.
2. Where's The Strap?
There are two possibilities here- if a conforming strap is available, I could bring it in from the Library and pose it properly in frame #1, such that it's touching the proper parts of the guitar and is properly positioned around the character's neck- for our purposes it's best if it's not actually touching the neck, but it should be close. The next step in this case is to export the whole posed strap as a single Wavefront OBJ file, then import it back in as a prop- which will be simulated shortly.
When exporting any conforming item with multiple 'body parts', it's a very good idea to use the Weld Body Part Seams option so that the item doesn't fall apart into its components when you simulate it.
The other option, if I don't have an existing strap, would be to build one in a modeling application like Shade. To start off, I'd save the Poser file and bring it into Shade using PoserFusion-
Here's where, whether I exported a conformed strap from Poser or a custom-built strap from Shade, I get to import the strap. I'll scale it and position it such that it's touching the guitar but is only close to the surface of the figure. I'll then parent the strap to the guitar- this is important as the choreographed cloth group I'll create should follow the guitar's movements, while the simulated part of the fabric interacts with the figure playing the guitar.
Running the simulation (by clicking the Calculate Simulation button in the Cloth Room) gives the results shown below- I might want to go back and adjust the cloth parameters, in particular raising the Shear Resistance and perhaps the Fold Resistance, so that the strap does a better job of keeping its shape when I run the simulation again- but the strap definitely does what it's supposed to here-
4. Render Time!
Applying a texture (and in this case some strand-based hair from the Hair Room) to my caveman's strap lets me render this still image- you could also use this same technique to set up a complete animated sequence. Rock on!
0 comments:
Post a Comment