level loading and 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
aburt11
Posts: 66
Joined: Sun Jan 15, 2012 10:27 am

level loading and textures

Post by aburt11 »

just wanted a professonal opinion in this but is there any format supported by irrlicht witch packages the mesh and textures together.
So say i create a level in 3ds max but then i want to use multiple textures, how would i produce an abstracted file that can be imported to irrlicht on the fly?
CuteAlien
Admin
Posts: 9682
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: level loading and textures

Post by CuteAlien »

I think the pk3 format does put textures inside. Or just put all the files into a zip-file (pk3 is basically just doing that).
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
aburt11
Posts: 66
Joined: Sun Jan 15, 2012 10:27 am

Re: level loading and textures

Post by aburt11 »

hmm i have done somethign like thgat already but i probably need support for more than one texture which i see as writing a parser for a text file which indicates what textures go where.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Re: level loading and textures

Post by hybrid »

Seems like you have a major misconception here. Your files will automatically load all textures they require. At least most file formats do so. If you put all mesh files and textures into a zip file and mount that as a virtual device into Irrlicht, the textures will automatically be loaded from there. No need for manual parsing or any such stuff. If you intend to do something completely different you should probably descibe your intentions in detail so we can help.
Post Reply