I am trying to upgrade this package https://www.npmjs.com/package/react-container-3d to the latest version of three and react , react upgradation is fine for me that i handled but due to the latest three package when i am trying to do mainContainer.getCamera() instanceof THREE.Perspective so it is always givng me false and this may be the cause of raycasting stop working , i need help to upgrade it to the lastest three version so i can utilize the three latest feature please help me in this .
Before upgradation everything is working fine
so this is the attached zip file of my demo project i am trying to upgrade the version of three js so i use the latest version here what is observe after upgrading the reat-container-3d and react-cubeview in the setup method in app.js the scene object is giving me false(scene instanceof THREE.Scene) thats why the upgradation is failed
please i stretch my head a lot i need help from the three js community demo-project.zip (50.9 KB)
how about using the core three js and remove the package dependency because i see react-three-fiber dont have any docs on instancing and even other new feature of three js we have to write core three js code instead of react-three-fiber
no point in duplicating docs, r3f is just another way to express threejs. it isnt reliant on maintainers when threejs adds new features, it will be able to use them declaratively (or, if you like, imperatively) without update. this is possible because it’s a reconciler, not a binding. you yourself decide which threejs version you use, it could be version 1, or latest - r3f only has a peerDependency on it.