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

THREE.WebGLRenderer: Context Lost. #53

Open
Emmydapson opened this issue Nov 2, 2023 · 9 comments
Open

THREE.WebGLRenderer: Context Lost. #53

Emmydapson opened this issue Nov 2, 2023 · 9 comments

Comments

@Emmydapson
Copy link

immediately i rendered the backdrop into the cameraRig in the index.jsx file, my screen went blank and i get this errror, tried fixing it but still the same;
below is how my index.js file looks like

import { Canvas } from '@react-three/fiber'
import { Environment, Center } from '@react-three/drei';

import Shirt from './Shirt';
import Backdrop from './Backdrop';
import CameraRig from './CameraRig';

const CanvasModel = () => {
return (
<Canvas
shadows
camera={{ position: [0, 0, 0], fov: 25 }}
gl={{ preserveDrawingBuffer: true }}
className="w-full max-w-full h-full transition-all ease-in"
>

  <CameraRig>
    <Backdrop />
    <Center>
      <Shirt />
    </Center>
  </CameraRig>
</Canvas>

)
}

export default CanvasModel

@Emmydapson
Copy link
Author

Screenshot (58)
Screenshot (59)

this errors

@dinobronx
Copy link

@Emmydapson, I saw this error. The issue is in Shirt.jsx, change map-anisotropy to mapAnisotropy.

@Emmydapson
Copy link
Author

Emmydapson commented Nov 19, 2023 via email

@Emmydapson
Copy link
Author

@dinobronx thanks alot..it worked

@saarimshaikh
Copy link

Can anyone guide me through this solution? I'm also getting the same error. I'm a beginner

@Emmydapson
Copy link
Author

Emmydapson commented Dec 1, 2023 via email

@Emmydapson
Copy link
Author

Emmydapson commented Dec 1, 2023 via email

@saarimshaikh
Copy link

I'm still getting the same, I've tried all the methods.
If possible can you share your updated codes in reference of this error here?
it would be helpful.

@Emmydapson
Copy link
Author

Emmydapson commented Dec 8, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants