Vizi
Vizi copied to clipboard
Vizi.Loader detect type of Mesh or manually assign type
The Vizi.Loader currently creates all meshes of type THREE.Mesh. I'd like support for THREE.SkinnedMesh. So is it possible to detect the type of mesh that should be used based on the file? For example, if there are bones/animations, it should be a THREE.SkinnedMesh otherwise default to basic THREE.Mesh.
If that doesn't sound feasible or appropriate, then how would you feel about adding a parameter designating the type of mesh that gets passed into the Loader's constructor and propagated to the Vizi.Loader.prototype.handleModelLoaded function? Would doing that break anything?