Scaling issues in maya

Autodesk Maya (Plugin developed by JimStar)

Moderator: JimStar

User avatar
face
Octane Plugin Developer
Posts: 3204
Joined: Sat Mar 06, 2010 2:10 pm
Location: Germany

Maybe a solution, model your scene and parent it all to a model/null.
Scale the model/null down change your camera to the view you want and export.

face
Win10 Pro, Driver 378.78, Softimage 2015SP2 & Octane 3.05 RC1,
64GB Ram, i7-6950X, GTX1080TI 11GB
http://vimeo.com/user2509578
tehfailsafe
Licensed Customer
Posts: 229
Joined: Sun Nov 07, 2010 9:27 pm

Ah! Gotcha.

So then the units from Maya DO need to be set in the script in order to make the command line execution work proper. Here's what is in the script history in maya after exporting:

Maya units: Centimeters
--cam-focaldepth 5 --cam-pos-x -207.1581278 --cam-pos-y 64.35848872 --cam-pos-z 95.01916412 --cam-up-x 0.116004769 --cam-up-y 0.9926767022 --cam-up-z -0.0337025009 --cam-target-x 45.58214977 --cam-target-y 32.3301564 --cam-target-z 21.59132571 --film-width 1024 --film-height 512

Maya units: Meters
--cam-focaldepth 0.05 --cam-pos-x -2.071581278 --cam-pos-y 0.6435848872 --cam-pos-z 0.9501916412 --cam-up-x 0.00116004769 --cam-up-y 0.009926767022 --cam-up-z -0.000337025009 --cam-target-x 0.4558214977 --cam-target-y 0.323301564 --cam-target-z 0.2159132571 --film-width 1024 --film-height 512




Makes sense. Bazuka, you said you recently removed the scaling settings? Maybe they still need to be in there?
windows 7 64 bit| GTX580 1.5Gb x2 | Intel 2600k @ 4.9 | 16gb ddr3 | 3ds max 2012
tehfailsafe
Licensed Customer
Posts: 229
Joined: Sun Nov 07, 2010 9:27 pm

Thanks for the help face!
I also figured out the problem with the blurring I was having. I guess when you create a new camera the focus distance defaults to 5 units. When I was switching around from cm to meters maya updates the focus distance as well...

So I created camera while maya units = cm so the focus was set to 5 cm. Changing units to meters to get the camera to export correctly changed the focus distance to 0.05, thus making everything out of focus.



Phew, now I can get back to learning to use maya itself!
windows 7 64 bit| GTX580 1.5Gb x2 | Intel 2600k @ 4.9 | 16gb ddr3 | 3ds max 2012
bazuka
Licensed Customer
Posts: 259
Joined: Thu Apr 22, 2010 3:47 pm

yes i had to remove coz of animated obj, groups and visibility obj inside the groups

obj will export all object in the scene no matter if the r visible or now (if u choose export all)

if u choose export selected then i have to select only object inside the group that they r visible and export them separately

its complicated with animated/rigged object in maya coz everything is in the group

im still brain storming scale thing, i have some solutions but need to be tested...

cheers
Maya 2009 x64 & Maya 2011 x64
Windows 7 x64 & Windows XP x64
2x Quad Core Q6600, 8gb, Nvidia Gtx 260 & Gtx 460
MTECH
Licensed Customer
Posts: 42
Joined: Tue Sep 14, 2010 8:22 pm

Any luck finding a better solution for the Maya exporter? I'm having similar issues with scale atm. Right now my workflow is to switch Maya to meters, scale the object correctly (it's roughly 40x40mm in reality) create my camera, and export to Octane using Maya2Octane v2.4. The camera is ALWAYS completely off regardless of whether I set Octane to Meters to Meters, Centimeters to Meters, etc... I've tried keeping Maya in meters, scaling up the entire image to 100x via a group and repositioning the camera - same results, the camera is positioned as if it's still scaled 100x off... I'm so confused as to what the proper workflow is for Maya in order to keep everything properly scaled in both applications. Could someone clarify from step 1 how they're managing?

Thanks a ton!
Core i7 920 | 12 GB RAM | Nvidia GTX 470 & 260 | Win Vista x64 | Maya 2012.5 x64 | Octane beta2.57
bazuka
Licensed Customer
Posts: 259
Joined: Thu Apr 22, 2010 3:47 pm

well im not sure either, but here is how i do it
i do everything in maya in cm and thats it, didnt have any probl so far

could u send me scene (dont need eveything) just some basic stuff, cam and some ref obj (box, sphere) and ill see what i could do about it
Maya 2009 x64 & Maya 2011 x64
Windows 7 x64 & Windows XP x64
2x Quad Core Q6600, 8gb, Nvidia Gtx 260 & Gtx 460
vanlicht
Licensed Customer
Posts: 139
Joined: Fri Feb 26, 2010 8:19 am
Location: Los Angeles

I do everything in cm in maya, but still there's scaling issues, the black radial shades.
Windows 7 64bit | Maya 2010 64 bit (main) | Maya 2011 | Intel i7-920 | Nvidia Quadro FX1800 | Nvidia GTX480
Metzger
Licensed Customer
Posts: 8
Joined: Wed Jul 06, 2011 11:17 pm

You guys need to get your shit together. :D It's pretty basic conversion. I can't believe a version 2.5 exporter doesn't work. Was it released 2.5 days? Hehehe I'm just joking.

Pulling out scale function in script because people have problems with animation is no solution. If anything, those people should do a maya geo cache first and try to export a rig-less file. Which is the Model an no rig with Maya Cache attached. You can scale that on export all over the place without any issues.

If anyone is coming from Maya they treat 1 Maya Unit as 1 CM. I use V-Ray everyday and the Math is in CM. I understand Octane is Meters, but that doesn't help us Maya users.
User avatar
Refracty
Licensed Customer
Posts: 1599
Joined: Wed Dec 01, 2010 6:42 pm
Location: 3D-Visualisierung Köln
Contact:

Can't you just put all geometry and cameras in a group and scale it by 0.01 ? I think this is what face suggested.
Metzger
Licensed Customer
Posts: 8
Joined: Wed Jul 06, 2011 11:17 pm

Why scale everything to .01? The scale function should be on the exporter. Why should I have to pay the price because some people don't know how to properly rig and model to correct scale?
Post Reply

Return to “Autodesk Maya”