What is the -right- way to export camera's to Maya?

Started by yesmine, September 07, 2014, 02:47:27 AM

Previous topic - Next topic

yesmine

Some time ago I had inquired about exporting and importing cameras between Terragen and Maya but, in trying to decide what/if it's an efficient option now, I thought I'd ask a more specific question.

Has anyone written a tutorial on, essentially, the right way to export a camera from TG so that it will import to Maya without difficulty? Since with the right a version of TG it appears possible to animate a scene within TG so that it could be composited that with a scene rendered in Maya, I'm trying to get a grasp on the workflow and how simply a TG camera will import into Maya.

My confusion comes from reading previous posts about exporting/importing cameras that suggest it is difficult to accurately export TG cameras, either as FBX files that import to Maya perfectly, or .chan, which Maya cannot import anyway. Other things suggest you need to know to convert XYZ or ZYX, or play with the FOV, etc. The documentation suggests TG can export a .mov file but all the screenshots I've looked at show nothing but FBX or .chan. So I was curious to know if it is actually easy and practical to accomplish, and if perhaps there is a tutorial or step-by-step explanation of it that doesn't require many manual tweaks and jumping through hoops to get this to match well.
Thanks..

gregtee

I've done a lot of I/O from Maya to Terragen to Terragen to Maya and the main thing I need to recall is scaling.  Use the fbx tool.  It works, but you may have to mess with the scaling option on the fbx export or import features to get the right unit scale.  Since Maya can work in a variety of different unit scales, I would suggest creating a one unit cube in Maya, exporting it as an obj file, importing that into Terragen and then placing a camera in Maya say, ten units back from the cube and one unit off the ground plane and then run the fbx export in Maya to save a camera file.  Import that fbx file into Terragen using the defaults and see what you get. If it looks correct, you're fine. If on the other hand the camera seems too close or too far from the Maya exported cube, adjust your scaling on the fbx import option in Terragen by factors of 10 until your camera sits correctly in the scene. 

For my usage I've found that I need to scale cameras by a factor of 100 when importing Maya cameras or by .01 when exporting using Terragen's fbx tool to get cameras to play nice with my Maya or Terragen scene.  We use centimeters as our default unit scale in Maya so assuming you're using that too a scaling factor of 100 or .01 depending on which way you're going should work. 

All other aspects of the camera shouldn't need messing with, such as fov, film back, etc.

Good luck.
Supervisor, Computer Graphics
D I G I T A L  D O M A I N

mash

I had this question a while back.
Digitalguru wrote a script that will import and export the camera data.
the thread is here
http://www.planetside.co.uk/forums/index.php/topic,16739.msg163633.html#msg163633

his script is here
http://www.creativecrash.com/maya/script/terraman

It might help you out some.
I tested it out and got everything to line up in Maya Correctly.

PadPukNumMunHoy