public void SetupSubmeshes(aeObject abc, Mesh mesh, Material[] materials)
 {
     for (int smi = 0; smi < mesh.subMeshCount; ++smi)
     {
         abc.AddFaceSet(string.Format("submesh[{0}]", smi));
     }
 }
            public void WriteSample(aeObject abc)
            {
                var data = default(aePolyMeshData);

                data.visibility   = visibility;
                data.points       = points;
                data.pointCount   = points.Count;
                data.normals      = normals;
                data.uv0          = uv0;
                data.uv1          = uv1;
                data.colors       = colors;
                data.submeshes    = submeshData;
                data.submeshCount = submeshData.Count;
                abc.WriteSample(ref data);
            }
예제 #3
0
 public void SetupSubmeshes(aeObject abc, Mesh mesh, Material[] materials)
 {
     if (mesh.subMeshCount > 1)
     {
         for (int smi = 0; smi < mesh.subMeshCount; ++smi)
         {
             string name;
             if (smi < materials.Length && materials[smi] != null)
             {
                 name = materials[smi].name;
             }
             else
             {
                 name = string.Format("submesh[{0}]", smi);
             }
             abc.AddFaceSet(name);
         }
     }
 }
예제 #4
0
 public void WriteSample(aeObject abc)
 {
     {
         var data = default(aePolyMeshData);
         data.indices    = indices;
         data.indexCount = indices.Count;
         data.points     = points;
         data.pointCount = points.Count;
         data.normals    = normals;
         data.uv0        = uv0;
         data.uv1        = uv1;
         data.colors     = colors;
         abc.WriteSample(ref data);
     }
     for (int fsi = 0; fsi < facesets.Count; ++fsi)
     {
         var data = default(aeFaceSetData);
         data.faces     = facesets[fsi];
         data.faceCount = facesets[fsi].Count;
         abc.WriteFaceSetSample(fsi, ref data);
     }
 }
예제 #5
0
 [DllImport("abci")] public static extern aeProperty  aeNewProperty(aeObject parent, string name, aePropertyType type);
예제 #6
0
 [DllImport("abci")] public static extern void        aeCameraWriteSample(aeObject obj, ref aeCameraData data);
예제 #7
0
 [DllImport("abci")] public static extern void        aePolyMeshWriteSample(aeObject obj, ref aePolyMeshData data);
예제 #8
0
 [DllImport("abci")] public static extern void        aeXFormWriteSample(aeObject obj, ref aeXFormData data);
예제 #9
0
 [DllImport("abci")] public static extern aeObject    aeNewPolyMesh(aeObject parent, string name, int tsi = 1);
 public RootCapturer(AlembicRecorder rec, aeObject abc)
 {
     recorder  = rec;
     abcObject = abc;
 }
 public abstract void CreateAbcObject(aeObject parent);
 public override void CreateAbcObject(aeObject parent)
 {
     m_abc = parent.NewPoints(gameObject.name);
 }
예제 #13
0
 public RootCapturer(AlembicExporter exp, aeObject abc)
     : base(exp, null, null)
 {
     m_abc = abc;
 }