Closed dariotarantini closed 5 years ago
Hi - does the file /home/gate.bmp
exist?
Hi - does the file
/home/gate.bmp
exist?
no, of course. I don't understand what that file mean
The file /home/gate.bmp
is an image so it's probably a texture referenced inside your e.mtl
material file. You can open your .mtl
file in any text editor to see which textures it references. Did you generate your .obj
and .mtl
using some software or grabbed them from somewhere? If you grabbed them from somewhere you need to grab the textures as well and make sure they match the paths inside the .mtl
file. Alternatively you can pass in ""
instead of the e.mtl
file in your call to obj.Decode()
and it should load the model with a default material. Like so: dec, err := obj.Decode("e.obj", "")
It work! thanks!
Hi, im tryng to load a obj model. Here is the code:
i get this error: