Is it possible in XMesh Max to loop an xMesh loader out of range? So it goes 0-100, 0-100 etc?
This isn’t built into XMesh, but I think you can get the same effect by doing the following:
First, we assign a sawtooth wave to the XMesh Loader’s Playback Graph:
- Select your XMesh Loader.
- Enable Files rollout -> Timing -> Graph.
- Select the Graph Editors menu -> Track View - Curve Editor…
- In the Track View - Curve Editor window that appears:
[list=1][*]In the left-hand side, click World -> Objects -> Object (XMeshLoader) -> playbackGraphTime - Right-click playbackGraphTime, and choose Assign Controller…
- In the Assign Float Controller dialog that appears, choose “Float Script”
- A Script Controller dialog should appear. In the Expression field of the dialog, enter the following:
halfFrameT = (1.f).ticks / 2;
period = (101f).ticks;
(mod (T + halfFrameT) period) / TicksPerFrame - 0.5
- Press the Close button.
- Close the Track View dialog.
[/*:m][/list:o]
Next, we adjust the renderer’s motion blur settings, so that the renderer won’t step across the sawtooth wave’s sharp drop while it is rendering a frame. Based on your other post I assume you are using V-Ray.
- Open the Render setup dialog, by selecting the Render menu -> Render Setup…
- In the Render Setup dialog that appears:
[list=1][*]Switch to the V-Ray tab. - In the Camera rollout, find the Motion Blur settings.
- Change Duration (frames) to 0.99 (or some other value < 1)
- Change Interval center to 0.0.
[/*:m][/list:o]
Now your XMesh Loader should loop over its frame range, and its motion blur should appear correctly.