Problem viewing materials on Wavefront OBJ file

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Problem viewing materials on Wavefront OBJ file

unixnerd
I have a Wavefront OBJ file which loads and looks OK but with no materials. I verified the mtl file was being loaded and also tried copying it's contents into the defaults string to no avail. It's almost like the materials are being ignored.

Looks fine in MeshViewer which is where I exported it from.

Any ideas?
Reply | Threaded
Open this post in threaded view
|

Re: Problem viewing materials on Wavefront OBJ file

philjord
Hi,
Off the top of my head I recall obj files need the materials in a very specific place on the file system relative to the .obj file itself.

SweetHome3D loads up obj files well, so you could either get me a zip to take a look at an example of it not loading or take a look at
SweetHome3D-7.5-src.zip
under
package com.eteks.sweethome3d.j3d.OBJLoader