Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some meshes lost when using fbx #242

Open
4 tasks done
ZhengzhongSun opened this issue Jan 4, 2019 · 5 comments
Open
4 tasks done

Some meshes lost when using fbx #242

ZhengzhongSun opened this issue Jan 4, 2019 · 5 comments

Comments

@ZhengzhongSun
Copy link

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
Copy link
Author

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

@saboteur111
Copy link

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.

@ZhengzhongSun
Copy link
Author

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
Copy link
Author

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!

@saboteur111
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants