Forums > Jitter

.obj object-can't find texture

May 18 2006 | 8:43 pm

I’m trying to import a .obj that I exported from Cinema4d. I can
import the object no problem, but my texture I applied in C4D can’t be
found, I get the error: " can’f find material "Mat". which
is my default texture name. I have the texture in the proper path. In
the examples the models with included textures have them in the same
folder, with a text file like this:

# Wavefront material file: d:objets webobjetsappleapple.mtl
# Bounding box of geometry = (23.5545,0.709068,-36.6852) to

newmtl material__14
Ns 6
d 1
illum 2
Kd 0.347059 0.192157 0.0
Ks 0.044902 0.044902 0.044902
Ka 0.211765 0.0628877 0.123209
map_Kd stem_color.tif

newmtl material__13
Ns 6
d 1
illum 2
Kd 0.892157 0.188235 0.078431
Ks 0.1 0.05 0.2
Ka 0. 0. 0.
map_Kd skin.tif

Should this have been exported along with the .obj for the texture to
work properly? Did I miss some basic thing here?

May 19 2006 | 1:16 am

Yes you need to have a .mtl file which references the filename as
part of the material description essentially like apple.mtl. I’m not
familiar with how to cajole Cinema 4d into doing this, but I would
imagine it is an option such as "output material file" or something
along these lines. Otherwise if C4D doesn’t support ouputting
material files, you should be able to cobble one together yourself.
based on this and other online examples.


Viewing 2 posts - 1 through 2 (of 2 total)

Forums > Jitter