Paths from Max?

Hey, all,

I’m wanting to write a bit of code which makes a camera follow a path that I define as a shape in 3DS Max.

The only way I can think to do it is very long-winded by accessing the mesh for the path (if I can even get the FBX exporter to export it!), then using linear interpolation to plot the route between the points in the shape’s mesh.

This is hardly ideal, though - is there any easier way to do this that would save me this hassle?

Thanks, in advance for any info! :slight_smile:

SB

I too would like to know if exporting camera data is at all possible :slight_smile:

I’m pretty sure there’s no way to get that curve in Unity. Why not just path constrain the camera in Max and play that animation clip in Unity?

I tried parenting a camera to an animated object once and it didn’t work…

However, I put all of 5 seconds of effort into it :slight_smile:

You can definitely parent your camera in unity to anything, including a keyframed object from your 3d app of choice. I have just such an arrangement for animating camera shakes and zooms (my camera is parented to a locator I animated in maya).

So in short, animate an invisible object (like a bone or locator) along the curve in question, import that to your scene and parent your unity camera to it.

I thought of the idea of parenting the camera to an invisible object, but as the object in question would follow the path using an “animation”, I figured it wouldn’t work as I need to be able to control the movement of the object a step at a time. I don’t want the camera to just play it’s way down the path - I want the player to have a bit of contol over the flow.

Unless I’m missing something with animations?

You can change the speed and/or jump to specific points in an animation. I’m not sure what kind of control you’re looking for specifically, but animations might be able to pull it off.