• Resolved ahmadissa97

    (@ahmadissa97)


    Hello there,
    So im working on this react app that uses 3d objects (using R3F).
    So i loaded a 3d object (fbx) and the app worked fine, after building and deploying (offline locally, and online), the fbx directory would be non existent (asset not loaded “404 – not found”). Whereas the app in VSCode works like a charm.

    Location of my model is in ‘~reactpress/apps/test-app/public/model.fbx’

    And code implementation:

    //loads from public directly
    const fbx = useLoader(FBXLoader, './port.fbx');

    Any idea as to why this is not functioning locally on wplocal or online?
    ps: i did add fbx MIME type ‘application/octet-stream’

Viewing 1 replies (of 1 total)
  • Plugin Author rockiger

    (@rockiger)

    The build path is set in package.json. Maybe you need to adjust for that in production. Have a look in package.json.

Viewing 1 replies (of 1 total)
  • The topic ‘loading .fbx’ is closed to new replies.