virocore
virocore copied to clipboard
Some meshes lost when using fbx
- [x] Review the documentation: https://virocore.viromedia.com/
- [x] Search for existing issues: https://github.com/viromedia/virocore/issues
- [x] Use the latest ViroCore release: https://virocore.viromedia.com/docs/releases
- [x] Turn off Instant Run in Android Studio
Environment
Please provide the following information about your environment:
- OS: Mac
- Version: ViroCore1.12.0
- Device(s): Sony Xperia Z1
Description
I want to load a fbx with animation. The fbx is correct when preview in Maya, but when I convert it to vrx and load it with virocore, the rocks disappear.
Reproducible Demo
Here is the zip of fbx and vrx. Could you give me any suggestion about it? sampledata.zip
Another problem. I found the model's position and rotation will change when I play the animation. I'm confused about it, you can try it. The code to play the animation is from the sample.
`// Now that the model is loaded, get its animation
animation = object.getAnimation("Take 001");
// Make the animation loop, then play it
animation.setLoop(true);
animation.play();`
Can you please include the textures being used for the scene? It was not included in the zip. Also, if you can freeze and reset transformations for the rocks, that may help. I noticed its root isn't zero'd out. The rocks may have legacy transforms which may cause it to move out of scene upon export to vrx. Modify>Reset Transformations, Modify>Freeze Transformations.
sampledatawithTexture.zip Here is the sample data with texture, but I don't think the texture will influence the meshes lost. I will try reset and freeze transformation. Thanks!
After I freeze the transformation, the rocks appear. But the scale of the whole model in the scene view changed. I found the position and scale will change if I just made a small modification on my models. Is it the problem of your vrx exporter? Could you ensure that the vrx has the same effect with fbx? Thanks!
Please make sure to just freeze the transformations for the rocks and not the entire scene. That may create unwanted transformations in the other models. We tried this and the scene appears to load correctly after doing this.