Advanced Sculptie Exporter From Maya

From Second Life Wiki
Revision as of 14:10, 20 June 2007 by Qarl Linden (talk | contribs) (New page: (this is bare bones template for communal work - please, PLEASE, feel free to rewrite every word here. in fact, the first person to do a major clean-up becomes my new best friend.) the i...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

(this is bare bones template for communal work - please, PLEASE, feel free to rewrite every word here. in fact, the first person to do a major clean-up becomes my new best friend.)

the idea here is to take an entire maya scene (modeled with NURBS, that is) and import it directly into SL, complete with surface textures and baked lighting and all position/scale/rotation information. it builds upon the maya exporter we released with the initial sculptie launch.

first-up in an example maya scene. here we have a generous contribution from Bret St. Clair, his ant: http://www.qarl.com/qLab/pile/ant/ant.ma (can we store these files in the wiki itself, so that they too can be modified?)

with the maya scene open, now execute this mel script: http://www.qarl.com/qLab/pile/ant/sculpt.mel

the option to "Bake surface textures" will do just that - create one surface texture per prim, to be applied later. unfortunately, our maya ant has no interesting textures (he's white) but we do capture his lighting (and shadows.) you also want to click "Generate Primscript" which creates a file describing the scene.

the next bit is tedious. first, create a prim called "qDynaPrim". into this place all the textures above (you'll want to bulk upload them) together with the following scripts:

http://www.qarl.com/qLab/pile/ant/prim http://www.qarl.com/qLab/pile/ant/texture http://www.qarl.com/qLab/pile/ant/transform http://www.qarl.com/qLab/pile/ant/shape

the scripts were generated with my qLab code - which may explain why they're a bit funny.

now create another prim and call it "ant maker" (this name isn't terribly important) and put the "qDynaPrim" into it (THIS name is important.) also put http://www.qarl.com/qLab/pile/ant/primscript into it.

this "primscript" script will read your primscript file - rez copies of the "qDynaPrim" - and send them commands to control their shape/position/appearance.