0

I am using Three.js to render Fallout 3 objects in WebGL. The JavaScript for a similar object rendering can be found here. Most objects, along with their normals, have been loading just fine... Until I tried to load the brahmin...

Yuck

So, as you can see, the texture and normals are imported into Blender just fine. But when I export the NIF file to a WaveFront OBJ file (coupled with a MTL file), it renders completely invisible. After purposely putting a typo in the MTL file for the JPG or DDS filepath, I found that it rendered as a white brahmin (no texture). Are there specific export settings that I am missing here (please note that I have exported these types of objects before)? Is there some significance behind the rendering being transparent? The files can be found here.

Note: there are no errors being thrown relating to textures not loading correctly.

Finally, for further reference, here is what it looks like when trying to export this misunderstood creature:

enter image description here

I appreciate your help, thank you.

WestLangley
  • 102,557
  • 10
  • 276
  • 276
Frumples
  • 425
  • 1
  • 4
  • 18

1 Answers1

1

In the .mtl file the value for d is 0 for all three materials. From the source code that parses the .mtl file:

// According to MTL format (http://paulbourke.net/dataformats/mtl/):
//   d is dissolve for current material
//   factor of 1.0 is fully opaque, a factor of 0 is fully dissolved (completely transparent)
gaitat
  • 12,449
  • 4
  • 52
  • 76
  • you just made my day! That was it. I just changed the "d" in the MTL files to 1.0 for full opacity and it turned out great. http://falloutfan.com/?obj=meshes/creatures/packbrahmin/packbrahmin&zoom=10&yaxis=-7 – Frumples Jun 25 '15 at 02:29
  • sorry I got caught up in the excitement. – Frumples Jun 25 '15 at 17:41