2 textures - .x model

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
Cocodrilo
Posts: 33
Joined: Fri Jul 21, 2006 9:27 pm
Location: Sweden, Eskilstuna
Contact:

2 textures - .x model

Post by Cocodrilo »

Hi Everybody!! :D
I dont know if anyone can help me with this but:
I've made a labyrint and is going to have it on .x file format, and i want to have one floor texture and one wall texture, but anyway heres the prob...
If i texture my model in my modelling program the dir to the pictures will be specific (it will be like: C:\map\file) and then i wont be able to the see the textures in another computer.
So... i want to make the path to only "texture.bmp" so it will find the texture in same map as the application... but i dont want to change more than 50 paths (its nearly "50+" boxes in the model")...
Could i setup 2 textures in irrlicht and how can i make it found out what boxes the wall and floor is....

I hope you understand, if not, please tell me and i'll try to make it more clear! :)

//Many thanks!!
"Clicker"
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post by Acki »

You can pack all stuff in a zip archive...
There you can store all in seperate pathes if you want...
Then, when adding the zip archive to the Irrlicht file system (addZipFileArchive(...)) you can set a flag to ignore the pathes...
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
Cocodrilo
Posts: 33
Joined: Fri Jul 21, 2006 9:27 pm
Location: Sweden, Eskilstuna
Contact:

Post by Cocodrilo »

So, if i set the path in the modelling program to C:\textures\texture1.bmp
i can have it in the zip:
textures\texture1.bmp
"Clicker"
roxaz
Posts: 575
Joined: Tue Jan 23, 2007 8:35 pm
Location: LT

Post by roxaz »

nowdays text editors have quick replace feature so i think it is one of solutions for you :)
Cocodrilo
Posts: 33
Joined: Fri Jul 21, 2006 9:27 pm
Location: Sweden, Eskilstuna
Contact:

Post by Cocodrilo »

Really? any free? if its exist, can u give me the name of it or link? :)

and thanks alot Acki, it worked!
"Clicker"
Post Reply