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

FBX - VRX Model Not Behaving / Draggable Like OBJ #172

Open
JamesRMorey opened this issue Oct 13, 2022 · 3 comments
Open

FBX - VRX Model Not Behaving / Draggable Like OBJ #172

JamesRMorey opened this issue Oct 13, 2022 · 3 comments
Labels
bug Something isn't working iOS Affects apple devices using iOS

Comments

@JamesRMorey
Copy link

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.

@Muhammad-Usama-lab
Copy link

@JamesRMorey did you find any solution to this?

@robertjcolley
Copy link
Collaborator

Can you share the VRX or OBJ file you're using?

@robertjcolley robertjcolley added bug Something isn't working iOS Affects apple devices using iOS labels Jan 31, 2024
@JamesRMorey
Copy link
Author

JamesRMorey commented Jan 31, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working iOS Affects apple devices using iOS
Projects
None yet
Development

No branches or pull requests

3 participants