virocore icon indicating copy to clipboard operation
virocore copied to clipboard

Some meshes lost when using fbx

Open ZhengzhongSun opened this issue 5 years ago • 5 comments

  • [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:

  1. OS: Mac
  2. Version: ViroCore1.12.0
  3. 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. image screenshot_20190104-120355

Reproducible Demo

Here is the zip of fbx and vrx. Could you give me any suggestion about it? sampledata.zip

ZhengzhongSun avatar Jan 04 '19 06:01 ZhengzhongSun

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();`

ZhengzhongSun avatar Jan 04 '19 06:01 ZhengzhongSun

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.

saboteur111 avatar Jan 04 '19 21:01 saboteur111

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!

ZhengzhongSun avatar Jan 06 '19 05:01 ZhengzhongSun

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!

ZhengzhongSun avatar Jan 07 '19 01:01 ZhengzhongSun

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.

saboteur111 avatar Jan 08 '19 19:01 saboteur111