Using parsed jsx as a dynamic component in React App #203
Unanswered
Search-For-a-Friend
asked this question in
Q&A
Replies: 1 comment 1 reply
-
|
Finally : I have managed to render the component by using string-to-react-component Now I am wondering how I can manage processing of the glb file (equivalent to npx gltfjsx model.gltf --transform) with upload of the glb--transformed file along the .jsx file to my backend. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, and thank you for this amazing tool !
My idea is to use the power of your tool to create "optimized" preview renders of 3D models, which could be stored in a distant storage. The scope of the project is a 3D Asset Sharing Platform ("à la" Sketchfab)
Right now, I am fetching GLB and generated JSX from the storage, and am trying to render it in the App through a standard react-three-fiber Canvas.
However, all I manage to do is fetching the JSX as plain text (string) and I have trouble creating a component from it which could be rendered. (This might not even be a gltfjsx issue, simple React practice probably)
My two questions are :
Can't wait to have your input on this.
Beta Was this translation helpful? Give feedback.
All reactions