Material texture failed #546
xupeng1232
started this conversation in
General
Replies: 1 comment
-
you shouldnt do material={new ...} geometry={new ...} see https://github.com/react-spring/react-three-fiber/blob/master/api.md#objects-and-properties textures are also weird https://codesandbox.io/s/r3f-color-management-66h2x your code essentially recreates everything from scratch, compiles materials, build geom, fetches textures on every render. as for the reason why you dont see anything, your urls are wrong. you cant use "textures/planets/..." that url will create a 404 browser error. in bundle environments you either import/require a url, or textures has to be in the public folder. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I built two spheres, as you can see here
I want the big ball to show the appearance of the earth, I added stickers to it, but the stickers didn't work, I would like to ask if it is my picture path, how to use the picture path correctly in React -three-fiber, I hope to get help from the kind people, thank you
Beta Was this translation helpful? Give feedback.
All reactions