View Single Post
Old 30th July 2008, 04:12 PM   #2
lisa
Senior Member
Professional user
 
lisa's Avatar
 
Join Date: Mar 2005
Location: Phoenix, AZ
Posts: 917
Default Re: Sculpted tablecloth?

Here's an earlier thread on that topic:
http://www.inivis.com/forum/showthre...2108#post22108

Briefly:

1) Make a divided plane. *

2) Drape as desired. If you're creating cloth directly in AC3D, it's easiest to create a plane with a small number of points and a high subdivision level to create more natural folds. Make the major folds first, commit your subdivisions, then subdivide and adjust again to make your minor folds.

Alternatively, if you have Poser you can export to Poser and use "clothify" on your AC3D model. This will let you make natural folds with basically no effort. You can then import the clothified model back into AC3D for tweaking and export to SL. I'd recommend a high-res mesh if you want to go that route. Ditto if you want to paint folds in ZBrush.

3) Export your sculpt map and import it into SL.

4) Change your mapping mode in SL to "planar" with the following script:

Code:
default
{
    state_entry()
    {
        llSetPrimitiveParams([PRIM_TYPE, PRIM_TYPE_SCULPT,"your-texture-name-or-uuid", PRIM_SCULPT_TYPE_PLANE]);
    }
}

* A divided plane is already mapped correctly if you want a basic square or rectangular tablecloth. If you want a fancy edge, like the scalloped edge in the tablecloth pictured, you'll need adjust your UV map in the texture coordinate editor so the edges of your tablecloth go all the way to the edge of the texture. There's a picture of how to do that in the same thread.
lisa is offline   Reply With Quote