Replies: 2 comments 1 reply
-
You'll have to do that in shader material imo. by using uniform which will change on zooming in and out and pass the all the textures to the shader and change uvs of textures as zoom uniform changes |
Beta Was this translation helpful? Give feedback.
-
Lod: https://docs.pmnd.rs/react-three-fiber/advanced/scaling-performance#level-of-detail You don't have to change the geometry like in the csb example, textures work fine. You should not "swap" a texture by changing a prop because that could be expensive, it'll have to re upload it to the gpu. LODs imo mount all variants and merely change visibility, which should be efficient. Progressive loading: https://docs.pmnd.rs/react-three-fiber/advanced/scaling-performance#nested-loading |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all, I'm doing Zoom functions with @react-three/fiber.
The idea is:
The first init we load small texture
| Texture SD |
If user zoom it, it will get 4 part of texture and render to 1 mesh
|Texture HD| Texture HD|
|Texture HD| Texture HD|
So how can I combine (or replace) partial texture to initial texture?
Thanks so much!
Beta Was this translation helpful? Give feedback.
All reactions