示例#1
0
    void ProcessCapture()
    {
        if (!m_recording)
        {
            return;
        }

        float begin_time = Time.realtimeSinceStartup;

        AbcAPI.aeAddTime(m_ctx, m_time);
        foreach (var recorder in m_capturers)
        {
            recorder.Capture();
        }
        m_time += Time.deltaTime;
        ++m_frameCount;

        m_elapsed = Time.realtimeSinceStartup - begin_time;
        if (m_detailedLog)
        {
            Debug.Log("AlembicExporter.ProcessCapture(): " + (m_elapsed * 1000.0f) + "ms");
        }

        if (m_maxCaptureFrame > 0 && m_frameCount >= m_maxCaptureFrame)
        {
            EndCapture();
        }
    }