How do I set the path to my textures?
How do I set the path to my textures?
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?
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 ().
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
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm