Could not load texture

Post your questions, suggestions and experiences regarding to Image manipulation, 3d modeling and level editing for the Irrlicht engine here.

Could not load texture

Postby ibax » Wed Sep 10, 2014 9:59 pm

Hi,

I'm modeling in Maya, and I export the model to obj format. This obj+mtl file is loaded to irrEdit to create the scene file (.irr file), which is loaded using the irrlicht engine.

Unfortunately I have sereral textures, which are not loaded using irrEdit, and therefore the .irr file also does not contain any information about it. It remains black. The log shows: Could not load texture: ...
All the texture files are jpg files, and those which are not loaded, does not contain any special content, simple jpg files...

Can somebody help me? What can be the problem?

Here it an example texture file...

Image
ibax
 
Posts: 179
Joined: Thu Jun 21, 2007 8:56 am
Location: hungary

Re: Could not load texture

Postby CuteAlien » Sat Sep 13, 2014 3:36 pm

We can't say much about irrEdit (it's not part of the Irrlicht engine), but mtl files are also a simple text-format. So maybe look at the texture information there if anything looks strange.
IRC: #irrlicht on irc.freenode.net
Code snippets, patches&stuff: http://www.michaelzeilfelder.de/irrlicht.htm
Free racer created with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
User avatar
CuteAlien
Admin
 
Posts: 8528
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany

Re: Could not load texture

Postby ibax » Mon Sep 15, 2014 7:28 pm

Hello all,

I found the solution! irrEdit loads the texture files from the directory, what is set for him in the Options menu -> Working directory.
If I place my .obj and .mtl + texture files to another directory, irrEdit tries to load the textures from the previously set working directory. If I place new textures to the modified directory, those texture files won't load.
The mtl file does not contain path information of the textures, maybe this is the reason that I have to set the working directory first!

ibax
ibax
 
Posts: 179
Joined: Thu Jun 21, 2007 8:56 am
Location: hungary

Re: Could not load texture

Postby ibax » Mon Mar 09, 2015 11:30 am

I always set the "Working directory" to that directory, where my irr and mtl files are located.
And I restart irrEdit each time, when I modify the Working directory path.
ibax
 
Posts: 179
Joined: Thu Jun 21, 2007 8:56 am
Location: hungary


Return to Everything 2d/3d Graphics

Who is online

Users browsing this forum: No registered users and 1 guest