viro icon indicating copy to clipboard operation
viro copied to clipboard

Viro3DObject moving with camera instead of staying static

Open waqaskhanroghani opened this issue 3 years ago • 5 comments

<Viro3DObject source={ModelObjects[selectedAlphabet][currentObject].obj} // source={require('../../assets/objects/apple.obj')} position={ModelObjects[selectedAlphabet][currentObject].position} scale={[0.2, 0.2, 0.2]} rotation={[5, 5, 55]} materials={['orange']} // fixedToCamera={true}

        type="OBJ"
        // type="VRX"
        onClick={() => {
          console.log('click');
          {
            missionComplete();
          }
        }}
      />

waqaskhanroghani avatar Jul 22 '22 09:07 waqaskhanroghani

We experienced this same issue.

childrensinnovation avatar Aug 24 '22 01:08 childrensinnovation

I find some solution for that :- 1: First convert your OBJ file FBX or export you 3d object in FBX extension. 2: Then convert your FBX file to VRX which the help of this viro lib : https://github.com/ViroCommunity/ViroFBX . 3: Use the VRX file in your app. I hope that solve your Issue.

waqaskhanroghani avatar Aug 24 '22 06:08 waqaskhanroghani

Did not solve the issue, broke 3d model and broken model is moving with the camera.

PaulOskarSoe avatar Sep 25 '22 00:09 PaulOskarSoe

Did not solve the issue, broke 3d model and broken model is moving with the camera.

use Vrx objects instated of FBX or OBJ.

waqaskhanroghani avatar Sep 27 '22 15:09 waqaskhanroghani