My name is Vincent and i’m trying to build a software that can simply display a 3D that i make with Cinema4D.
The problem i have is: i cannot load the Mtl with my obj.
// The file and all other data (extracted from the zip file) must be in the data folder
// of the current sketch to load successfully
s = loadShape(“NicetoClub.obj”);
with this understanding i would say
there is no way to use a .mtl file ( alone )
to draw something in processing
if you find the corresponding .obj file try that first
if you have both files there are some rules like
in the .obj file is a reference to the .mtl file ( so check file name and that entry )
Here is the error message : The texture map “P:_\05-Recherches\04-Processing\sketch_3D_visual_net\data-o" in the materials definition file "P:_\05-Recherches\04-Processing\sketch_3D_visual_net\data\NicetoClub.mtl” is missing or inaccessible, make sure the URL is valid or that the file has been added to your sketch and is readable.
But the mtl file is inside the data file, and i try with C4D and Blender, i can’t import it to processing
it works for me. Maybe in Windows it’s \\ instead of /.
Why? I don’t know I looked at http://paulbourke.net/dataformats/mtl/ and found map_Kd and map_d. The -o argument should be valid, but for some reason it’s not working.
Surprising, though, is that the frameRate I get with the texture is 1 fps, even if I scale it down to 10% of its size. On a GTX 1060. Very strange.