Description
MAC
RN - 0.6
IOS and Android
ViroReact V2.2
Testing device is iPhone 11 but on all others too
I have created an AR scene with ViroReact on both IOS and Android. The scene works great with OBJ files and textures, I can drag the objects around and the snap to planes.
The issue occurs when I try and use and animated model. I convert the FBX file to VRX using the converter and although the model looks a bit mashed it is ok and the animation works. However, the model just stays in one place on the phone screen, is not snapping to planes, is about 1000X as big as it was before (I know it can be scaled and has in the video) and is no longer draggable.
RPReplay_Final1665679610.2.mov
Scene Code (same as obj which works, just swapped model to vrx)
<ViroARScene>
<ViroAmbientLight color="#ffffff" />
<Viro3DObject
source={require('../../models/vampire/source/vampire.vrx')}
materials={['../../models/vampire/source/Vampire.png']}
animation={{
name: 'Vampire_Armature|AnimationTest',
run: true,
loop: true,
delay:1000
}}
position={[0.0, 0.0, -30]}
rotation={[0,0,0]}
scale={[0.0005, 0.0005, 0.0005]}
type="VRX"
dragPlane={{
planeNormal: [0, 0, 0],
planePoint: [0, 0, -2],
maxDistance: 10,
}}
onDrag={(event) => {}}
dragType="FixedToWorld"
highAccuracyEvents={true}
/>
</ViroARScene>
As I say the scene works perfectly with an OBJ, but once switched to VRX this happens. Any help greatly appreciated.