The "Lordfly asks stupid questions about Maya" thread - SLUniverse Forums
 
Navigation » SLUniverse Forums > Development Discussion and Support > Content Creation » The "Lordfly asks stupid questions about Maya" thread


Content Creation Discuss building, scripting, and other forms of content creation for SL.

Reply
 
LinkBack Thread Tools Display Modes
Old 10-19-2009, 12:53 PM   #1 (permalink)
Grid.Living
 
Lordfly Digeridoo's Avatar
Buy my prefabs!
 
Join Date: Aug 2007
Location: Michigan
Posts: 2,325
My Mood:
SLShopper Ads: 5
SL Join Date: 7/21/2003
Business: Grid.Living

Awards: 1
Thread Title of the Week 
Send a message via MSN to Lordfly Digeridoo Send a message via Skype™ to Lordfly Digeridoo
The "Lordfly asks stupid questions about Maya" thread

I don't learn by tutorials, I tend to learn best by trial by fire. Thus, I'm diving into Maya, trying to remmeber the little bits and pieces I learned last time.

I'll be asking random questions and cursing here, so feel free to sticky this thread to witness the meltdown.

Okay, so I'm trying to make a gnarled tree. So far I've managed to make it look pretty good in Maya, but exporting to SL is turning into a comical pile of scripting errors and crashes.

Using Qarl's script (unless there's a better one) in Maya, exporting works fine until I get to a specific branch. Then, the MEL script complains about one of two things:

1) Cannot use type no type in scalar operations
2) It complains about the object having the same name as another object (which it doesn't, until the script copies the damn object when it crashes out)

I cant get it to fix itself. I hate life.

So THEN, I've tried even just doing the ones that DO work, but Qarl's LSL scripts like to send them off-world as soon as they're rezzed; his scripts toss them sideways until they fly off the region simulator.

What the fuck am I doing wrong here?


OH. And how the hell do you shrink multiple objects cohesively, like SL links do? I thought maybe the tree might be too big, so I tried shrinking it... and then the objects all decided to shrink independently, ruining the tree.

Help a po man out.
__________________
http://www.lordfly.com/
Lordfly Digeridoo is offline   Reply With Quote
Old 10-19-2009, 12:56 PM   #2 (permalink)
Grid.Living
 
Lordfly Digeridoo's Avatar
Buy my prefabs!
 
Join Date: Aug 2007
Location: Michigan
Posts: 2,325
My Mood:
SLShopper Ads: 5
SL Join Date: 7/21/2003
Business: Grid.Living

Awards: 1
Thread Title of the Week 
Send a message via MSN to Lordfly Digeridoo Send a message via Skype™ to Lordfly Digeridoo
And now the camera is screwed up. It seems to think that I want to jump 50m every time I move my mouse a little bit.
Lordfly Digeridoo is offline   Reply With Quote
Old 10-19-2009, 03:01 PM   #3 (permalink)
BUY TREES MOAR1
 
Khamon's Avatar
Iz a timeout
 
Join Date: Jun 2007
Location: Alabama
Posts: 4,819
My Mood:
SLShopper Ads: 2
SL Join Date: November, 2003
OMG WHAT A STUPID QUESTION!





WHASRONGWITCHU?
__________________
But of bliss and glad life there is little to be said, before it ends; as works fair and wonderful, while still they endure for eyes to see, are their own record, and only when they are in peril or broken for ever do they pass into song. - Quenta Silmarillion

Please Visit Our Gardens and Our Website
Khamon is offline   Reply With Quote
2 Users Laughed:
Old 10-19-2009, 03:12 PM   #4 (permalink)
Senior Member
 
Join Date: Nov 2008
Posts: 193
My Mood:
SL Join Date: 7/10/2005
Business: Breach
1. import premade .obj files that already conform to sculpty verts.
1. export finished maya model as another .obj to wings3d and export from that as sculpt.
3. profit?
Compulsion is offline   Reply With Quote
Old 10-19-2009, 09:23 PM   #5 (permalink)
Indulging Inaccuracy
Snack time..
 
Join Date: Dec 2007
Location: United States Midwest
Posts: 4,283
My Mood:

Awards: 1
Thread Title of the Week 
Are you working from Poly meshes, or NURBS surfaces? If NURBS, are you using lofting or rotating curves to build the shape, or just deforming the default 'primitive' surfaces (sphere, torus, cyl..)?

I have had the object name/scalar operation issue before when working with rotated surfaces, which was tied to the 'correct orientation' checkbox. If you're running with that checked and working from an object without definite poles (i.e. not using the 'sphere' stitching type) try un-checking it and exporting again.
Sobriquet Kryakutnoy is offline   Reply With Quote
Old 10-20-2009, 10:53 AM   #6 (permalink)
Junior Member
 
qarl's Avatar
 
Join Date: Mar 2008
Posts: 10
Lordfly - make sure you're using the latest: http://www.qarl.com/sculpt.mel

i wouldn't use the LSL scripts to make these - Eddy Stryker has a libsl based program that does a much better job.

to scale multiple objects cohesively, group them first (ctrl-g) and then scale the group, not the individuals.

best yet, wait for meshes which should have much better support.

best,


K.
qarl is offline   Reply With Quote
Old 10-20-2009, 11:54 AM   #7 (permalink)
Senior Member
 
Join Date: Nov 2008
Posts: 193
My Mood:
SL Join Date: 7/10/2005
Business: Breach
Quote:
Originally Posted by qarl View Post
best yet, wait for meshes which should have much better support.
when when when.?

Compulsion is offline   Reply With Quote
Old 10-20-2009, 03:59 PM   #8 (permalink)
11.25°
 
LoganBauer's Avatar
Edit
 
Join Date: Aug 2007
Posts: 1,266
My Mood:
SLShopper Ads: 8
SL Join Date: 6/13/04
re: Scalar error , it looks like unchecking "correct orientation" fixed that for Josh in a previous thread - don't think I've seen that error myself yet.
I MADE SOMETHING IN MAYA!


if that doesn't fix it, copy all of your objects, open a new scene in maya, and paste them in.

if THAT still doesn't fix it, try steps 1-4 posted at the bottom here


Quote:
Originally Posted by qarl View Post
best yet, wait for meshes which should have much better support.
/me begins holding his breath and turning blue right now.
__________________

[Arctic Greenhouse - [Blog] [In World] [XStreet] ]
LoganBauer is offline   Reply With Quote
1 User Laughed:
Old 10-20-2009, 09:45 PM   #9 (permalink)
Indulging Inaccuracy
Snack time..
 
Join Date: Dec 2007
Location: United States Midwest
Posts: 4,283
My Mood:

Awards: 1
Thread Title of the Week 
Quote:
Originally Posted by qarl View Post
to scale multiple objects cohesively, group them first (ctrl-g) and then scale the group, not the individuals.
It probably goes without saying, but if you are using a curve or other object as a parent to define part of your geometry, be sure to delete history before scaling in this manner. Otherwise, you will get some..interesting results.

Last edited by Sobriquet Kryakutnoy; 10-20-2009 at 09:51 PM.
Sobriquet Kryakutnoy is offline   Reply With Quote
Old 10-22-2009, 01:01 AM   #10 (permalink)
Grid.Living
 
Lordfly Digeridoo's Avatar
Buy my prefabs!
 
Join Date: Aug 2007
Location: Michigan
Posts: 2,325
My Mood:
SLShopper Ads: 5
SL Join Date: 7/21/2003
Business: Grid.Living

Awards: 1
Thread Title of the Week 
Send a message via MSN to Lordfly Digeridoo Send a message via Skype™ to Lordfly Digeridoo
Quote:
Originally Posted by Sobriquet Kryakutnoy View Post
Are you working from Poly meshes, or NURBS surfaces? If NURBS, are you using lofting or rotating curves to build the shape, or just deforming the default 'primitive' surfaces (sphere, torus, cyl..)?
I'm using pre-made NURB prims, such as cylinders, and generally just applying deformers to them (bend, twist, etc).

Quote:
I have had the object name/scalar operation issue before when working with rotated surfaces, which was tied to the 'correct orientation' checkbox. If you're running with that checked and working from an object without definite poles (i.e. not using the 'sphere' stitching type) try un-checking it and exporting again.
What does "correct orientation" do exactly?
Lordfly Digeridoo is offline   Reply With Quote
Old 10-24-2009, 12:00 PM   #11 (permalink)
Grid.Living
 
Lordfly Digeridoo's Avatar
Buy my prefabs!
 
Join Date: Aug 2007
Location: Michigan
Posts: 2,325
My Mood:
SLShopper Ads: 5
SL Join Date: 7/21/2003
Business: Grid.Living

Awards: 1
Thread Title of the Week 
Send a message via MSN to Lordfly Digeridoo Send a message via Skype™ to Lordfly Digeridoo
Quote:
Originally Posted by qarl View Post
Lordfly - make sure you're using the latest: http://www.qarl.com/sculpt.mel

i wouldn't use the LSL scripts to make these - Eddy Stryker has a libsl based program that does a much better job.
Ah yes, I forgot about that. It... didn't do anything. It uploaded the files and then promptly failed to rez them in any particular fashion, on my own land. What did I do wrong?
Lordfly Digeridoo is offline   Reply With Quote
Old 11-08-2009, 10:47 PM   #12 (permalink)
Grid.Living
 
Lordfly Digeridoo's Avatar
Buy my prefabs!
 
Join Date: Aug 2007
Location: Michigan
Posts: 2,325
My Mood:
SLShopper Ads: 5
SL Join Date: 7/21/2003
Business: Grid.Living

Awards: 1
Thread Title of the Week 
Send a message via MSN to Lordfly Digeridoo Send a message via Skype™ to Lordfly Digeridoo
Okay. Let's say I wanted to use Maya for something else.

I model a crate, and then simulate cloth to drape some burlap over the crate (impromptu seat). I light it up.

How would I export just the textures in a correct UV setup? I've looked everywhere online, and can't find a simple way to just export the textures into a jpg or something.

HOW DUZ I DO ZAT?
Lordfly Digeridoo is offline   Reply With Quote
Old 11-08-2009, 11:48 PM   #13 (permalink)
Indulging Inaccuracy
Snack time..
 
Join Date: Dec 2007
Location: United States Midwest
Posts: 4,283
My Mood:

Awards: 1
Thread Title of the Week 
The short answer? Open the hypershade, make sure your object is selected in the main window, and its associated material is selected in the hypershade. Then, in the hypershade, go to Edit > Convert File to Texture (Maya Software). The options are pretty self explanatory..bake shadows, texture size/format, et cetera.

You can also run bakes through Mental Ray if you prefer raytracing over depth map for your shadows, if you use reflections/environment maps, et cetera. To do that, set your menus to the Rendering toolset, and use Lighting/Shading > Batch Bake (Mental Ray).

ETA: Bakes run through the Maya Software renderer go into your project's 'sourceimages' directory. Mental ray bakes go to the '/renderData/mentalRay/lightMap' directory.

Last edited by Sobriquet Kryakutnoy; 11-10-2009 at 04:19 PM.
Sobriquet Kryakutnoy is offline   Reply With Quote
1 User Said Thanks:
Old 11-10-2009, 12:47 PM   #14 (permalink)
Grid.Living
 
Lordfly Digeridoo's Avatar
Buy my prefabs!
 
Join Date: Aug 2007
Location: Michigan
Posts: 2,325
My Mood:
SLShopper Ads: 5
SL Join Date: 7/21/2003
Business: Grid.Living

Awards: 1
Thread Title of the Week 
Send a message via MSN to Lordfly Digeridoo Send a message via Skype™ to Lordfly Digeridoo
Thanks for that - two problems I've found, however. Inputting the problems into Google finds me at some Japanese forum that's shut down.

If I use anything but Mental Ray, I get an error about "not selecting a shader node". I don't know what that means, but in any case the rendering poops out.

If I use Mental Ray, it compiles, but the results are... less than flattering. It looks like the resulting texture files are corrupt (lots of bit noise, squares missing, etc).
Lordfly Digeridoo is offline   Reply With Quote
Old 11-10-2009, 04:17 PM   #15 (permalink)
Indulging Inaccuracy
Snack time..
 
Join Date: Dec 2007
Location: United States Midwest
Posts: 4,283
My Mood:

Awards: 1
Thread Title of the Week 
Yes, getting shading to look nice using ray tracing is a bit tricky, though the final result is fantastic.

As far as the shader node message from the software renderer, be sure that your object in the perspective(or top/side/etc) view in the main window is selected (it will highlight green along the edges) as well as the material you have assigned to it inside the hypershade window. You have to shift-select, even though you are working in separate windows.
Sobriquet Kryakutnoy is offline   Reply With Quote
Old 11-10-2009, 04:29 PM   #16 (permalink)
Hive Mind Director

forum overlord
 
Cristiano's Avatar
 
Join Date: Jun 2007
Location: Miami, FL
Posts: 10,805
My Mood:
SLShopper Ads: 4
SL Join Date: Dec 2002
Business: ANOmations
Blog Entries: 16
Send a message via MSN to Cristiano Send a message via Yahoo to Cristiano
Quote:
Originally Posted by Lordfly Digeridoo View Post
Okay. Let's say I wanted to use Maya for something else.

I model a crate, and then simulate cloth to drape some burlap over the crate (impromptu seat). I light it up.

How would I export just the textures in a correct UV setup? I've looked everywhere online, and can't find a simple way to just export the textures into a jpg or something.

HOW DUZ I DO ZAT?
This PDF has a whole section on textures and sculpties:

http://www.landgasthof-waldschaenke....orial_v1.1.pdf
__________________
"At least he died doing what he loved most - blogging on the Huffington Post" - 30 Rock



Cristiano is online now   Reply With Quote
1 User Said Thanks:
Old 11-12-2009, 12:18 AM   #17 (permalink)
Grid.Living
 
Lordfly Digeridoo's Avatar
Buy my prefabs!
 
Join Date: Aug 2007
Location: Michigan
Posts: 2,325
My Mood:
SLShopper Ads: 5
SL Join Date: 7/21/2003
Business: Grid.Living

Awards: 1
Thread Title of the Week 
Send a message via MSN to Lordfly Digeridoo Send a message via Skype™ to Lordfly Digeridoo
Quote:
Originally Posted by Cristiano View Post
This PDF has a whole section on textures and sculpties:

http://www.landgasthof-waldschaenke....orial_v1.1.pdf
I'm currently not working with sculpties. This is for... something else.
Lordfly Digeridoo is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On