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

fix for all the errors you guy's are getting here #112

Open
bilalmirza74 opened this issue Sep 14, 2023 · 18 comments
Open

fix for all the errors you guy's are getting here #112

bilalmirza74 opened this issue Sep 14, 2023 · 18 comments

Comments

@bilalmirza74
Copy link

check my repo

3D model can be render on mobile phones
added lazy loading

https://github.com/bilalmirza74/folio/tree/master

don't forget to give a ⭐if it fixed your issue

@sajithsojan
Copy link

@bilalmirza74 The error for Computers.jsx is not fixed

@bilalmirza74
Copy link
Author

@bilalmirza74 The error for Computers.jsx is not fixed

Actually you need to change the 3D model for the mobile phone view to make it responsive

Because the size of Computer 3D model is too big to render on mobile phone

@sajithsojan
Copy link

@bilalmirza74 THREE.BufferGeometry.computeBoundingSphere(): Computed radius is NaN. The "position" attribute is likely to have NaN values.

this error keeps popping up all the time

@bilalmirza74
Copy link
Author

https://stackoverflow.com/questions/62183371/threejs-three-buffergeometry-computeboundingsphere-gives-error-nan-position

check out this

@sajithsojan
Copy link

@bilalmirza74 the tech sections is not getting renderred in some mobiles after i deploy

@bilalmirza74
Copy link
Author

In which mobiles? Did you noticed?

@sajithsojan
Copy link

oneplus,realme devices

@bilalmirza74
Copy link
Author

That might be a issue with phone
RAM random access memory

Not be able to render full 3D model

@jaismeenMehra
Copy link

@bilalmirza74 THREE.BufferGeometry.computeBoundingSphere(): Computed radius is NaN. The "position" attribute is likely to have NaN values.

this error keeps popping up all the time

I am getting same error. Did you solved the error?

@sajithsojan
Copy link

That might be a issue with phone RAM random access memory

Not be able to render full 3D model

my phone has 12gb latest ram and still

@bilalmirza74
Copy link
Author

That might be a issue with phone RAM random access memory

Not be able to render full 3D model

my phone has 12gb latest ram and still

https://www.webdevfreelancer.me/

Check this out is this working

@sajithsojan
Copy link

That might be a issue with phone RAM random access memory

Not be able to render full 3D model

my phone has 12gb latest ram and still

https://www.webdevfreelancer.me/

Check this out is this working

It is working, but has issue with the pc 3d model
It is same for mobile and pc

@MaheshBabu11
Copy link

MaheshBabu11 commented Oct 23, 2023

@sajithsojan . You can use these compressed models to improve the performance.

  1. The computer scene (https://github.com/MaheshBabu11/3D-Portfolio/blob/main/public/desktop_pc/scene.glb) 1.33 MB
  2. The planet scene ( https://github.com/MaheshBabu11/3D-Portfolio/blob/main/public/planet/scene.glb) 325 KB

Usage :
const computer = useGLTF("./desktop_pc/scene.glb");

Adding <Canvas frameloop="demand" shadows dpr={[1, 2]} camera={{ position: [20, 3, 5], fov: 25 }} gl={{ preserveDrawingBuffer: true ,alpha: true}} >
,alpha: true in gl can resolve the loading issues in mobile.

Hope that helps. (I have deployed mine here : portfolio)

@bilalmirza74
Copy link
Author

bilalmirza74 commented Oct 23, 2023

@MaheshBabu11
After scrolling down upto form
While scrolling up this happens

Screenshot_2023-10-23-10-53-54-45_40deb401b9ffe8e1df2f1cc5ba480b12.jpg

Screenshot_2023-10-23-10-54-30-52_40deb401b9ffe8e1df2f1cc5ba480b12.jpg

Screenshot_2023-10-23-10-54-15-79_40deb401b9ffe8e1df2f1cc5ba480b12.jpg

Hope you understand the problem :(

@responsive-we
Copy link

Has anyone found any solutions for it?
I am also getting the same error. Please help

@AT0047
Copy link

AT0047 commented Nov 18, 2023

I have the same issue here too after deployment
on my PC works fine but on other PCs and mobile doesn't work

@responsive-we
Copy link

I think it is due to the limitations of the mobile browsers. So it must be optimised for phone? anyone could help us with it?

@responsive-we
Copy link

I have the same issue here too after deployment on my PC works fine but on other PCs and mobile doesn't work

But mine works on PCs, on all browsers installed in an iPhone and Mozilla firefox (on android).

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

6 participants