Import x-ray videos into Maya with correct x-ray camera perspectives
- Open a new scene in Maya
- Click Xcam in the XROMM maya tool shelf. A window will appear:
- Browse or type your MayaCam file in the MayaCam File Path box. This file likely have a name similar to [ Cube_Before/After_CamNumber_ImageNumber ]Mayacam.csv. This file will tell Maya how to create a camera that has the same alignment as the Xray camera did in the actual setup.
- For the optional Image Path, Browse to Find the appropriate undistorted image or image sequence. This is what will be shown in frame when looking through the aligned Xray camera.
- If you are checking calibration, this file will be the undistorted cube image. Leave Image sequence unchecked.
- If you are checking digitization or animations, this file will be the first in the sequence of undistorted .tif images of created from the Xray video. As long as all of the .tif files in the sequence are in a separate folder, you only need to select the first one. Check Image Sequence, and Maya will find the other files.
- Name your camera (perhaps Xcam1)
- Close the XCam window
- Select Panels -> Perspective -> xrayCam1Shape1
- On the active camera window pane(s),
- Select Shading -> Smooth Shade All
- Select Hardware Texturing
- Click on the image frame (will be called Xcam1_Plane).
- This can be done either in the main window, or through Window -> Hypergraph: Heirarchy, and then clicking on Xcam1_Plane.
- If the Attribute Editor is not open on the left side of your screen, open it by clicking on Window ---> Attribute Editor
- Select the tab Xcam1lambert; you may have to click on a black arrow next to tabs for popup menu of more tabs
- Click on the black arrow next to Color
- If you are working with a single image, such as a calibration cube image, uncheck the Use Image Sequence box
- If you are working with an image sequence such as an Xray video, uncheck and recheck the Use Image Sequence box
- Repeat steps 1-11 for second camera
- make sure that the end time of animation range and the end time of playback range match the number of images in your sequence. If your image sequence does not start at 1, make sure the start and end times of the animation and playback range match the starting and ending numbers of your image sequence.