I installed the three.js exporter. When I export a blender model I get a model.json file. I tried to replace the model in this example/tutorial http://blog.teamtreehouse.com/the-beginners-guide-to-three-js with my model, but it is not shown... how do I have to embed the exported .json files? thanks and regards Adriana
2 Answers
0
votes
There is no easy answer. Try to import your model to editor and see if it works. If not - there is problem with your model. If it works - there problems with your code.
Are you using the whole code from example? Or are your trying to reproduce it? Then maybe your path to model is wrong or there is issue with three.js version. Is there any console errors in your project?
0
votes
What version of three.js are you using? If r70 the exporter defaults to Scene
(JSONLoader expects geometry format and not scene format) exports so you will need to uncheck that option during export. Additionally I would suggest using the exporter in the dev
branch of three.js as it has undergone loads of bug fixes, additionally the export defaults to geometry exports.