AWS Thinkbox Discussion Forums

Loops out of Range

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:

  1. Select your XMesh Loader.
  2. Enable Files rollout -> Timing -> Graph.
  3. Select the Graph Editors menu -> Track View - Curve Editor…
  4. In the Track View - Curve Editor window that appears:
    [list=1][*]In the left-hand side, click World -> Objects -> Object (XMeshLoader) -> playbackGraphTime
  5. Right-click playbackGraphTime, and choose Assign Controller…
  6. In the Assign Float Controller dialog that appears, choose “Float Script”
  7. 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

  1. Press the Close button.
  2. 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.

  1. Open the Render setup dialog, by selecting the Render menu -> Render Setup…
  2. In the Render Setup dialog that appears:
    [list=1][*]Switch to the V-Ray tab.
  3. In the Camera rollout, find the Motion Blur settings.
  4. Change Duration (frames) to 0.99 (or some other value < 1)
  5. 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.

Privacy | Site terms | Cookie preferences