improve live recording
This commit is contained in:
@@ -101,6 +101,7 @@ namespace Gallop.Live.Cutt
|
||||
public bool IsRecordVMD;
|
||||
public List<LiveCameraFrame> RecordFrames = new List<LiveCameraFrame>();
|
||||
public List<List<LiveCameraFrame>> MultiRecordFrames = new List<List<LiveCameraFrame>>();
|
||||
public event Action RecordUma;
|
||||
|
||||
public float currentLiveTime
|
||||
{
|
||||
@@ -307,10 +308,10 @@ namespace Gallop.Live.Cutt
|
||||
_isNowAlterUpdate = true;
|
||||
_oldLiveTime = currentLiveTime;
|
||||
currentLiveTime = liveTime;
|
||||
_currentFrame = currentLiveTime * 60f;
|
||||
_oldFrame = _oldLiveTime * 60f;
|
||||
_deltaTime = currentLiveTime - _oldLiveTime;
|
||||
_deltaTimeRatio = _deltaTime / 0.0166666675f;
|
||||
_currentFrame = currentLiveTime * 60f;
|
||||
AlterUpdate_CharaMotionSequence(liveTime);
|
||||
AlterUpdate_FacialData(liveTime);
|
||||
AlterUpdate_LipSync(liveTime);
|
||||
@@ -355,6 +356,8 @@ namespace Gallop.Live.Cutt
|
||||
LiveCameraFrame mulframe = new LiveCameraFrame(currentFrame, MulCamera.transform, cam.fieldOfView, lastMulframe);
|
||||
MulFrame.Add(mulframe);
|
||||
}
|
||||
|
||||
if (currentFrame % 2 == 0) RecordUma?.Invoke();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -80,13 +80,12 @@ namespace Gallop.Live.Cutt
|
||||
|
||||
public void AlterUpdate(float currentTime)
|
||||
{
|
||||
if(Director.instance.liveMode == 0)
|
||||
var director = Director.instance;
|
||||
if (Director.instance.liveMode == 0)
|
||||
{
|
||||
|
||||
if(_targetAnim != null)
|
||||
if (_targetAnim != null)
|
||||
{
|
||||
//_tempAnim[_targetAnim.name].time = currentTime;
|
||||
if (Director.instance.sliderControl.is_Touched)
|
||||
if (director.sliderControl.is_Touched || director.IsRecordVMD)
|
||||
{
|
||||
_tempAnim[_targetAnim.name].time = currentTime;
|
||||
_tempAnim.Play(_targetAnim.name);
|
||||
@@ -108,7 +107,7 @@ namespace Gallop.Live.Cutt
|
||||
|
||||
_curIndex = curKey.index;
|
||||
|
||||
if ((curKey != null && _curIndex != -1 && _curIndex != _prevIndex) || Director.instance.sliderControl.is_Touched || Director.instance._syncTime == false)
|
||||
if ((curKey != null && _curIndex != -1 && _curIndex != _prevIndex) || Director.instance.sliderControl.is_Touched || Director.instance._syncTime == false || director.IsRecordVMD)
|
||||
{
|
||||
LiveTimelineKeyCharaMotionData arg = curKey.key as LiveTimelineKeyCharaMotionData;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user