How do I set the path to my textures?

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Daaark
Posts: 19
Joined: Sun Jan 14, 2007 11:14 pm
Location: IUnknown

How do I set the path to my textures?

Post by Daaark »

I'm loading an x file mesh as my level / backdrop and I'm not sure yet how to set my texture folder. MY searches haven't turned anything up yet. Do the .x files and textures have to be in the same folder?
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Post by CuteAlien »

Yeah, unfortunately there's no parameter yet for .x files to set another texture path. I changed that for myself once, but the .x loader has changed so much since than, that I can't do a simple patch for that anymore :(.

The easiest thing to do is to put them in the same folder. If you can't do that you should try to change it in code similar like it's been done for other formats. Those allow setting texture paths by setting parameters from SceneParameters.h in ISceneManager::getParameters ().
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Post Reply