adrianhajdin / project_3D_developer_portfolio

The most impressive websites in the world use 3D graphics and animations to bring their content to life. Learn how to build your own ThreeJS 3D Developer Portfolio today!
https://jsmastery.pro
5.83k stars 1.29k forks source link

Maath/random not working #56

Open SafaSELLAM opened 1 year ago

SafaSELLAM commented 1 year ago

I cannot manage to to get any star to appear on my screen. I also can't find anything about maath/random and inSphere on the internet so i'm a little lost...I copied the exact same code that is posted on the repo but it still doesn't work... The only error i get in my console is : ackend_compact.js:2367 THREE.BufferGeometry.computeBoundingSphere(): Computed radius is NaN. The "position" attribute is likely to have NaN values. BufferGeometry {isBufferGeometry: true, uuid: 'c9432c0e-fe6a-48ad-8db3-8825a9f6aedd', name: '', type: 'BufferGeometry', index: null, …} at Frustum.intersectsObject (http://localhost:5173/node_modules/.vite/deps/chunk-76MQ6OTW.js?v=ca743729:8393:18) at Suspense at ErrorBoundary (http://localhost:5173/node_modules/.vite/deps/chunk-5AAZIUHE.js?v=ca743729:16593:5) at FiberProvider (http://localhost:5173/node_modules/.vite/deps/chunk-5AAZIUHE.js?v=ca743729:18338:21) at Frustum.intersectsObject (http://localhost:5173/node_modules/.vite/deps/chunk-76MQ6OTW.js?v=ca743729:8393:18) overrideMethod @ react_devtools.

I would really appreciate if anyone has an answer to this issue...