Extract path and FOV of 3DSMax camera

How do you extract 3DSMax camera path and its FOV either from FBX file or max script?

Thanks in advance

The animation is easy heheh just link a box call it CamBox, to you animated cam and bake the animation into th box.
But the FOV…
Well if you can script. Add an extra box to you animated CamBox. So now you have a cam as parent and CamBox as child with one more box as child, lets call it FOVBox.

Maybe you could script in max that the your changes in FOV could change the FOVBox relative position to your CamBox (Local)
Ex. Start FOV is 65, your FOVBox is positioned 0 to its parent, local height 0, if you increase your FOV in max to 75, the script then needs to move the FOVbox to Y= 10 according to its parent the CamBox.
So as the animation goes and the FOV changes up and down the FOV box moves up and down locally to its parent.
I dont know its possible to script this in max.
Just a thought

:wink:

Thank you “holmeren” for your speedy reply, let me work on your suggestions if I have a problem I will get back to you otherwise thanks a lot. :slight_smile:

You should be able to do this VIA the wire parameters tools inside max… if you set the box’s Y to adjust the FOV inside max… then animate the boxes Y… when you export you can then hook up the FOVBox to the camera’s FOV inside unity using script. so yeah… basicly as holmeren suggested except using the Wire Parameters settings inside 3dsMax to allow you to control animation and export the raw data without having to use max script :smile:
good luck, and let me know how you get on (I’d like to play with this now :smile: )

hehehe the ripples of minds spread
:stuck_out_tongue:

Cool, so I decided to make a quick test… I thought I better upload a build before I get some kip.

http://www.joerobins.co.uk/storage/FOVtest.html
UPDATED

http://www.joerobins.co.uk/storage/FOVtest2.html
I’ve added a quick GUIbox test too… using a few different interpolation curves
so you get the idea.

UPDATE 2
http://www.joerobins.co.uk/storage/FOVtest3.html
Just one last test for the day (back to REAL work) this time I’m manipulating the UV offset of the material

and it uses this REALLY simple bit of code:

var cameraFovControls : GameObject;
function Update ()
{
  camera.fieldOfView = (cameraFovControls.transform.position.y * 50 ); 
}

so yeah… its a pretty simple method but ultimately you can do a huge amount with it … I’m going to have to play around with other ideas.

Inside 3dsmax’s Wire Parameters settings you can add expressions also, so it would just be a case of mirroring those expressions in your unity code :slight_smile:

cool stuff… the mind boggles hehe

edit: I just noticed I didn’t use localPosition.y for my code, which would be more suitable… but meh, you get the idea!

Any update on this?
Can you share the project?

hi, joe
I want to know how to export the animation about the fov from 3dmax, can you help me ?