engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 静态 Public 成员函数 | 所有成员列表
IMovieSceneMotionVectorSimulation结构体 参考abstract

Crude helper class for applying simulated transforms for all animated objects of a sequence on camera cut frames from sequencer Simulated transforms are passed onto the renderer at the end of a sequence's evaluation and will be used for motion vector computation 更多...

#include <IMovieSceneMotionVectorSimulation.h>

Public 成员函数

virtual void Add (USceneComponent *Component, const FTransform &SimulatedTransform, FName SocketName)=0
 Add a new simulated transform for the specified component (and optionally a socket on that component). 更多...
 
virtual void Apply (IMovieScenePlayer &Player)=0
 Apply all the simulated transforms from this frame using the specified player, passing them onto the renderer for this frame 更多...
 
virtual void PreserveSimulatedMotion (bool bShouldPreserveTransforms)=0
 Indicate that all the currently stored simulated transforms should be preserved or reset once evaluated this frame 更多...
 

静态 Public 成员函数

static void EnableThisFrame (FPersistentEvaluationData &PersistentData)
 Enable simulated motion vectors for the current frame
 
static FFrameTime GetSimulationTime (const FMovieSceneContext &Context)
 Computes a time at which to simulate motion vectors for the current frame. 更多...
 
static bool IsEnabled (const FPersistentEvaluationData &PersistentData, const FMovieSceneContext &Context)
 Check whether we should simulate motion vectors for the current evaluation. 更多...
 

详细描述

Crude helper class for applying simulated transforms for all animated objects of a sequence on camera cut frames from sequencer Simulated transforms are passed onto the renderer at the end of a sequence's evaluation and will be used for motion vector computation

成员函数说明

◆ Add()

virtual void IMovieSceneMotionVectorSimulation::Add ( USceneComponent *  Component,
const FTransform &  SimulatedTransform,
FName  SocketName 
)
pure virtual

Add a new simulated transform for the specified component (and optionally a socket on that component).

Persists only while PreserveSimulatedMotion is enabled.

参数
ComponentThe component that should have the simulated transform associated with it
SimulatedTransformThe simulated previous position, rotation and scale of the component last frame
SocketName(Optional) The name of a socket on 'Component' which affects the simulated transform of all components attached to the socket.

◆ Apply()

virtual void IMovieSceneMotionVectorSimulation::Apply ( IMovieScenePlayer &  Player)
pure virtual

Apply all the simulated transforms from this frame using the specified player, passing them onto the renderer for this frame

参数
PlayerThe movie scene player currently playing back the sequence

◆ GetSimulationTime()

static FFrameTime IMovieSceneMotionVectorSimulation::GetSimulationTime ( const FMovieSceneContext &  Context)
static

Computes a time at which to simulate motion vectors for the current frame.

返回
A time one-frame in the future. Information for the previous frame should be extrapolated backwards from here to ensure correct simulations where no previous data exists (such as animations that start on frame 0).

◆ IsEnabled()

static bool IMovieSceneMotionVectorSimulation::IsEnabled ( const FPersistentEvaluationData &  PersistentData,
const FMovieSceneContext &  Context 
)
static

Check whether we should simulate motion vectors for the current evaluation.

返回
true if we should simulate motion vectors, false otherwise.

◆ PreserveSimulatedMotion()

virtual void IMovieSceneMotionVectorSimulation::PreserveSimulatedMotion ( bool  bShouldPreserveTransforms)
pure virtual

Indicate that all the currently stored simulated transforms should be preserved or reset once evaluated this frame

参数
bShouldPreserveTransformsWhen true, simulated transforms will be preserved indefinitely (useful if a sequence is paused); when false, transforms will all be reset once evaluated this frame.

该结构体的文档由以下文件生成: