0
$\begingroup$

Hy I try to do some examples in threejs and would like to use Blender for modeling and animating.

I startet using an existing obj File i found some where in the internet and added an armature and everithing.

So far the animating and everything works fine, except my exports have some how invalid Materials. (Three js won't show anything except i change the material to a custom Material by Code with in threejs)

Here i have made a Screen Capture on what i have done: http://lukas.achatz.ws/tst/export%20character.gif

The export files can be found here: http://lukas.achatz.ws/tst/MewTwo.zip

Does some one know what i am doing wrong?

$\endgroup$
2
$\begingroup$

TGA textures require some particular workarounds for use in three.js (or on the web in general). The easiest fix is probably just to convert your images to PNG or JPG.

EDIT: another problem is that the opacity must not be 0.

$\endgroup$
  • $\begingroup$ Thanks for your Reply. I retried it. I converted the TGA to a PNG with gimp and updated the json file. Still the same problem. Currently i am a littlebit busy. But I think I can upload a demo on the Weekend. $\endgroup$ – maxbit89 Feb 27 '18 at 10:04
  • $\begingroup$ Hm ok. In addition to a demo, if you can post the source .blend file that might be helpful also. :) $\endgroup$ – Don McCurdy Feb 27 '18 at 18:19
  • $\begingroup$ Sry i was a little bit bussy i found the error first of all yeah .png is working :) the other problem was that the opacity of the material was equal 0 :3 $\endgroup$ – maxbit89 Apr 10 '18 at 18:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.