Difference between revisions of "Advanced Sculptie Exporter From Maya"
Dzonatas Sol (talk | contribs) m (→Overview) |
Dzonatas Sol (talk | contribs) m (links) |
||
Line 1: | Line 1: | ||
[[Image:Qlab_ant.jpg|right]] | [[Image:Qlab_ant.jpg|right]] | ||
(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. an original copy of the tutorial (complete with graphics and witty banter) is available at http://www.qarl.com/qLab/?p=49 ALSO - if you feel so inclined, feel free to improve upon the codebase here.) | (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. an original copy of the tutorial (complete with graphics and witty banter) is available at [http://www.qarl.com/qLab/?p=49 qLab] ALSO - if you feel so inclined, feel free to improve upon the codebase here.) | ||
== Overview == | == Overview == | ||
Line 8: | Line 8: | ||
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. | 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 | 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 ant.ma] | ||
: (can we store these files in the wiki itself, so that they too can be modified?) | : (can we store these files in the wiki itself, so that they too can be modified?) | ||
:: (script is too big for wiki page, otherwise this link would work [http://wiki.secondlife.com/w/index.php?action=raw&ctype=text/javascript&dontcountme=s&title=Advanced_Sculptie_Exporter_From_Maya/ant.ma ant.ma] - Dz) | :: (script is too big for wiki page, otherwise this link would work [http://wiki.secondlife.com/w/index.php?action=raw&ctype=text/javascript&dontcountme=s&title=Advanced_Sculptie_Exporter_From_Maya/ant.ma ant.ma] - Dz) | ||
with the maya scene open, now execute this mel script: | with the maya scene open, now execute this mel script: [[LlSculpt_mel]] | ||
[[Image:Qlab sculpt.jpg|150px|left]] | [[Image:Qlab sculpt.jpg|150px|left]] | ||
Line 23: | Line 22: | ||
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: | 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/prim prim] | ||
* http://www.qarl.com/qLab/pile/ant/texture | * [http://www.qarl.com/qLab/pile/ant/texture texture] | ||
* http://www.qarl.com/qLab/pile/ant/transform | * [http://www.qarl.com/qLab/pile/ant/transform transform] | ||
* http://www.qarl.com/qLab/pile/ant/shape | * [http://www.qarl.com/qLab/pile/ant/shape shape] | ||
the scripts were generated with my qLab code - which may explain why they're a bit funny. | 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. | 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 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. | this "primscript" script will read your primscript file - rez copies of the "qDynaPrim" - and send them commands to control their shape/position/appearance. | ||
now you need only invoke the primscript command (which listens on channel 500.) create a notecard containing the primscript, get its UUID, and say < | now you need only invoke the primscript command (which listens on channel 500.) create a notecard containing the primscript, get its UUID, and say: | ||
<pre>/500 primscript -script 32fad6a2-630e-aaf0-2659-817ea00b1052</pre> | |||
course you'll want to replace that UUID with your own - especially if you want to make something OTHER than ants. | |||
hope you enjoy. | hope you enjoy. | ||
[[Image:Qlab_bad_ant.jpg]] | [[Image:Qlab_bad_ant.jpg]] |
Revision as of 16:47, 20 June 2007
(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. an original copy of the tutorial (complete with graphics and witty banter) is available at qLab ALSO - if you feel so inclined, feel free to improve upon the codebase here.)
Overview
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: ant.ma
- (can we store these files in the wiki itself, so that they too can be modified?)
- (script is too big for wiki page, otherwise this link would work ant.ma - Dz)
with the maya scene open, now execute this mel script: LlSculpt_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:
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 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.
now you need only invoke the primscript command (which listens on channel 500.) create a notecard containing the primscript, get its UUID, and say:
/500 primscript -script 32fad6a2-630e-aaf0-2659-817ea00b1052
course you'll want to replace that UUID with your own - especially if you want to make something OTHER than ants.
hope you enjoy.