-
I apologize in advance because the ask might be too general. But I genuinely have little clue so far since I can't inspect rendered WebGL like regular DOM. Basically, I am trying to rewrite this code (https://github.com/brunoimbrizi/interactive-particles) to R3F. Although it seems like I'm translating everything right, it does not show anything. It is supposed to show a particles render of the zebra image. Here is my reproduction repo: https://github.com/fnick851/particles-map. The project was scaffolded with https://github.com/pmndrs/react-three-next. I wonder if someone is kind enough to take a look at my R3F code and see what is wrong with it? Or maybe point me to a right direction? It'll be much appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
it would be easier if thats a codesandbox, setting up a repo just to find a bug is too much time wasted. the usual problem with porting plain three is that vanilla code is a spaghetti of dependencies, miss one and it fails. i'd suggest start simple, get some particles on screen then go from there. |
Beta Was this translation helpful? Give feedback.
-
I got it to work. It turned out I missed some pieces from the original code. But I still need to write imperative code for material and geometry, then: <mesh material={material} geometry={geometry} /> I don't know how to express |
Beta Was this translation helpful? Give feedback.
I got it to work.
It turned out I missed some pieces from the original code.
But I still need to write imperative code for material and geometry, then:
I don't know how to express
<rawShaderMaterial />
and<instancedBufferGeometry />
declaratively with r3f.