-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gray MTL Model problem #2
Comments
Actually, I tried with {DAEModel} too. |
Maybe there is a conflict between the path of the MTL file and the path of the image contained in the MTL file, and the texture is not loaded. You can directly modify the image path in the MTL file or add 'texPath ' parameter to the texPath: /> |
I can successfully load pikachu's model. |
Updated version 1.0.10 doesn't work at all!! In fact 1.0.9 version caused some problems to me because import dogModel from "./model/dog.obj"; Although the url was the same but src={'./model/dog.obj'} didn't work and only src={dogModel} worked. |
It has been fixed in v1.0.11 .Try again ~ |
./node_modules/react-3d-viewer/dist/scripts/react-3d-viewer.js That's weird! |
Look at this example, https://github.com/dwqdaiwenqi/react-3d-viewer/blob/master/site/index.html =====
===== To include React from a CDN instead of bundling it |
webpack.config.js module.exports = { |
Accoring to webpack.config.js in /hello-react/node_modules/react-3d-viewer/ |
Hi, thanks for your 3d viewer.
I tried MTLModel with several 3d obj and mtl files.
One of them is this dog model, https://free3d.com/3d-model/dog-v1--722788.html
and another one is this kitchen table model. https://free3d.com/3d-model/kitchen-set-15847.html
Anyway, when I import {MTLModel} and put obj and mtl file
mtl file doesn't work at all. All I get is gray(almost black) 3d objects like this:
the dog model
https://user-images.githubusercontent.com/39916556/48070323-f5765480-e21a-11e8-9479-d31589f28c5c.png
the kithcen table model
https://user-images.githubusercontent.com/39916556/48070178-9a446200-e21a-11e8-921c-321a1307b07a.png
Also, this is my code for MTLModel:
<MTLModel
width="500" height="500"
position={{x:0,y:0,z:0}}
mtl={dogMaterial}
src={dogModel}
/>
Is there any recommendation for me?
The text was updated successfully, but these errors were encountered: