public void AddSceneRoot(SharpGLTF.Schema2.Scene scene) { foreach (var root in scene.VisualChildren) { AddRoot(root); } }
public ModelContent CreateModelContent(SharpGLTF.Schema2.Scene scene, int armatureIndex) { var drawables = GLTFNODE.Flatten(scene) .Where(item => item.Mesh != null) .Select(item => CreateDrawableContent(item)) .ToArray(); var model = new ModelContent(armatureIndex, drawables); return(model); }
public GLTFArmatureFactory(SharpGLTF.Schema2.Scene scene, Converter <SharpGLTF.Schema2.ExtraProperties, Object> tagConverter) { AddSceneRoot(scene); _TagConverter = tagConverter; }