public SkinnedMeshCapturer(AlembicRecorder exp, ComponentCapturer parent, SkinnedMeshRenderer target) : base(exp, parent, target) { m_target = target; var mesh = target.sharedMesh; if (mesh == null) { return; } m_abc = parent.abcObject.NewPolyMesh(target.name); m_mbuf = new MeshBuffer(); m_mbuf.SetupSubmeshes(m_abc, mesh, m_target.sharedMaterials); m_meshSrc = target.sharedMesh; m_cloth = m_target.GetComponent <Cloth>(); if (m_cloth != null) { m_cbuf = new ClothBuffer(); m_cbuf.rootBone = m_target.rootBone != null ? m_target.rootBone : m_target.GetComponent <Transform>(); var tc = m_parent as TransformCapturer; if (tc != null) { tc.capturePosition = false; tc.captureRotation = false; tc.captureScale = false; } } }
public CameraCapturer(AlembicRecorder exp, ComponentCapturer parent, Camera target) : base(exp, parent, target) { m_abc = parent.abcObject.NewCamera(target.name); m_target = target; m_params = target.GetComponent <AlembicCameraParams>(); }
public MeshCapturer(AlembicRecorder exp, ComponentCapturer parent, MeshRenderer target) : base(exp, parent, target) { m_target = target; var mesh = m_target.GetComponent <MeshFilter>().sharedMesh; if (mesh == null) { return; } m_abc = parent.abcObject.NewPolyMesh(target.name); m_mbuf = new MeshBuffer(); m_mbuf.SetupSubmeshes(m_abc, mesh, m_target.sharedMaterials); }
void Reset() { AlembicRecorder.ForceDisableBatching(); InitializeOutputPath(); }
public RootCapturer(AlembicRecorder rec, aeObject abc) { recorder = rec; abcObject = abc; }
public CustomCapturerHandler(AlembicRecorder exp, ComponentCapturer parent, AlembicCustomComponentCapturer target) : base(exp, parent, target) { m_target = target; }
public ParticleCapturer(AlembicRecorder exp, ComponentCapturer parent, ParticleSystem target) : base(exp, parent, target) { m_abc = parent.abcObject.NewPoints(target.name); m_target = target; }
public TransformCapturer(AlembicRecorder exp, ComponentCapturer parent, Transform target) : base(exp, parent, target) { m_abc = parent.abcObject.NewXform(target.name + " (" + target.GetInstanceID().ToString("X8") + ")"); m_target = target; }
public RootCapturer(AlembicRecorder exp, aeObject abc) : base(exp, null, null) { m_abc = abc; }
protected ComponentCapturer(AlembicRecorder exp, ComponentCapturer p, Component c) { m_recorder = exp; m_parent = p; m_obj = c != null ? c.gameObject : null; }