Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk® FBX® / FBX SDK / Camera Switcher
  RSS 2.0 ATOM  

Camera Switcher
Rate this thread
 
57191
 
Permlink of this thread  
avatar
  • Watt
  • Posted: 22 June 2011 12:33 AM
  • Total Posts: 10
  • Joined: 31 March 2011 12:24 PM

Hi -> I posted a message over a week ago regarding the Camera Switcher but have yet to get a reply. We’ve invested a lot of time in the FBX format and it would be good to know how it works. If someone from Autodesk reads this I’d really appreciate an answer -> even if its the fact that Camera Switchers are no longer supported.
Regards
Watt



Replies: 0
avatar

Hi Watt,

I saw your post about importing a camera switcher from 3ds Max, but then I understood the FBX Plug-ins Discussions that you seemed to have found your way. So please tell us what exactly is your question?

We do support camera switchers in the FBX SDK, although this support is limited. Its purpose is mainly to transport camera switcher info to/from MotionBuilder. So it is very possible that what you are trying to do in the SDK is not supported.

Regards,

Viviane Rochon
Maya Data Platform
Autodesk



Viviane Rochon
Maya Data Platform
Autodesk

Replies: 0
avatar
  • Watt
  • Posted: 23 June 2011 12:19 AM

Hi, sorry for the confusion, my mistake. The message posted on the FBX Plug-ins Discussion turned out in fact to be too optimistic. I thought I’d got hold of the camera switcher but then realized I hadn’t. I then posted this on the FBX SDK:

Hi, I’m getting no joy trying to import camera switcher info from 3DSMAX. Create an animation that cuts cameras from any of the following methods suggested in:

http://area.autodesk.com/blogs/louis/switching_cameras_in_an_animation_in_3ds_max

and exporting an .fbx file gives NULL everytime for:

KFbxCameraSwitcher* lCameraSwitcher = mFbxScene->GlobalCameraSettings().GetCameraSwitcher();

The sample program ExportScene04 claims to export a camera switcher but I also get NULL when trying to get hold of it. The ( usually reliable ) sample program ImportScene doesn’t seem to decode any camera switching information. The SDK documentation talks briefly about the curves got from the node attribute KFCURVENODE_CAMERA_INDEX but doesn’t say which node has this information nor which channel.

It might be that the exporter from 3DSMAX is at fault ( FBX version for exported file is 7.2.0 ). Without a sample .fbx file that definitely contains switcher information ( and there don’t appear to be any examples in the SDK, we’re simply in the dark.

Regards

Watt



Replies: 0
avatar

Hi Watt,

Damon will inquire to what extend the Camera Switcher is supported when exported from 3ds Max to FBX, and we will keep you posted about that.

On the side of the FBX SDK, the Camera Switcher was removed from ExportScene04 a while ago, at release 2011.1. I don’t know where you got that information, is some of our documentation not up to date?

I retrieved and changed some of the old code of ExportScene04 for you, but I could not verify if it is correct. Here, I create a camera switcher from scratch, I do not use the “default” camera switcher provided by the global camera settings. It shows how to animate the camera switcher too. I hope this file helps you with your work.

Regards,

Viviane



Viviane Rochon
Maya Data Platform
Autodesk

Attachment Attachment
Replies: 1
/img/forum/dark/default_avatar.png

Many thanks, that’s a great help.
Regards
Watt

Author: Watt

Replied: 23 June 2011 09:43 PM