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: "jit.gl.model: 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
Kd 0.347059 0.192157 0.0
Ks 0.044902 0.044902 0.044902
Ka 0.211765 0.0628877 0.123209
Kd 0.892157 0.188235 0.078431
Ks 0.1 0.05 0.2
Ka 0. 0. 0.
Should this have been exported along with the .obj for the texture to
work properly? Did I miss some basic thing here?
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.
C74 RSS Feed | © Copyright Cycling '74