Page 1 of 1
Multiple textures
Posted: Wed May 18, 2005 5:03 am
by DeadEdJ
Is it possbile to have different textures for the same ODF? If so, how?
RE: Multiple textures
Posted: Wed May 18, 2005 7:56 am
by Qdin
I actually have NO idea, but I dont think so - because what would it help...? the Textures is just the surface of the model, so if you have 2 textures, you'll ONLY see the one "on top"/last added texture. am I right? or else: Correct me
C ya - but tell me why you ask

Posted: Wed May 18, 2005 8:41 am
by DeadEdJ
I have two parts to my map; an industrial CIS docking bay, and a clean Republic temple-type-place. I want to use the bespin models from cloud city, and have already darkened the textures. I was wondering if there was something you could put in a new odf to tell it to use the same msh, but replace each dirty texture with a shiny white one.
Posted: Wed May 18, 2005 9:22 am
by Qdin
so... you JUST want to give it ANOTHER texture...? lol - instead of darken it, brighten it up

lol
but I honestly dont know what you mean, except; that you want to give it a new texture, right?
and is it, so the texture changes, if you hit in the head? like burnt holes in the suit? or what? hey, THAT would be cool
hmm... tell again what you mean... and make a HUGE post about it

ok?
C ya
Posted: Wed May 18, 2005 9:46 am
by DeadEdJ
Sorry if i didn't make myself clear enough.
This is where the CIS start in my map:

Notice the buildings' textures are dirty. These buildings (some of them) use the mshs from Bespin cloud city, and use textures which I darkened.
This is where the Republic start in my same map (MAJORLY UNFINISHED):

I would like to scatter some of the Bespin buildings around, such as the one highlighted in the pic, but they will be dark, and look out of place, due to the textures being dark.
So basically, I would like the Buildings in the first pic to load the dark textures, and the buildings in the second to load light textures, but currently, they load the same texture file. So if bes_main_01.tga (or whatever it is) is brown, both buildings are brown. If it is white, as default, both are white.
Comprendez?
Posted: Wed May 18, 2005 10:45 am
by Saturn_V
The texture references are held in the msh file, not the odf, so you need two msh files each having a corresponding odf file.
Make a copy of the msh files of the buildings that you want to have different textures, change the file names (like append _L and _D to them or something) then you need to edit the msh file for the buildings with a hex editor; search the file for .tga references and change the texture filename to something else. Be careful not to change the total length of the filename because that will corrupt the file, so if the texture referenced is, say, "bes2_build_city04.tga" you could change it to "bes2_build_mytexL.tga" but not to "building_light.tga". Finally copy and edit the building's odf, have one to call the light colored building and one to call the dark colored one.
Posted: Wed May 18, 2005 10:49 am
by Chamboozer
lol,i was about to answer him....
Posted: Wed May 18, 2005 1:02 pm
by Leviathan
Hex-editing could also allow you to change textures associated with a Mesh Model...
Posted: Wed May 18, 2005 1:08 pm
by DeadEdJ
Hex-editing?
Can you give me some info on that? What program do I need? Can I use Notepad? And will it be as simple as searching for the texture and changing it, or will it all be in code?
Posted: Wed May 18, 2005 1:08 pm
by Qdin
lol, I STILL dont get it

sorry, but I think I "missed the train"
try what Saturn said - I got THAT part
C ya - and good luck

Posted: Wed May 18, 2005 1:39 pm
by Leviathan
try what Saturn said
I talked about "hex-editing" for those interested
and experimented. Moreover, it's boring and risky...
Posted: Wed May 18, 2005 3:31 pm
by Saturn_V
then you need to edit the msh file for the buildings with a hex editor
Like I said... if you want to change the textures for an existing msh, you need to hex edit it.
Your other option is to use Bconstructor and get it into a 3D program, change the textures there, then bang it back into msh format through BConstructor. If that doesn't make any sense to you, go the hex edit route. Use the Search forum function, there's quite a bit of hex editing info here.
Posted: Wed May 18, 2005 5:04 pm
by DeadEdJ
Yes, I have tried Bconstructor, but it doesnt work too well. This is what happened when I just pulled a staircase into and straight out of milkshape3d with bconstructor:

So I guess I'm stuck with hex editing. All I want to know is whether it is hard or not to do this. Will it be as easy, as say, looking through the msh and replacing all the lines which say one texture, with another texture (I dont even no if hex editing has lines, but you get the idea), or will it all be in a complicated code. Because I'm only doing this for a few buildings, and I dont want to spend long doing this, if it is going to be complicated. I'm not lazy, i'm just efficient. 
Posted: Thu May 19, 2005 1:26 pm
by Leviathan
Otherwise, search for the name of the texure associated to a model in the hex-editor, and replace all occurrences by the name of the texture you want to apply to your 3D model... (Try with and without the *.TGA extension...)
Posted: Fri May 20, 2005 2:27 pm
by DeadEdJ
Just posting to say that I have downloaded a hex editor, and successfully changed all of the new msh i created's entries for tga files, to white, shiny ones
, and it works brilliantly. Thank you all.
Posted: Fri May 20, 2005 4:21 pm
by Saturn_V
Nice to hear you got it working.
Posted: Sat May 21, 2005 12:30 pm
by Leviathan
So, hex-editing has worked ? I can't believe it... (I made something working...)

Posted: Sat May 21, 2005 12:42 pm
by Qdin
congratulations

lol
hey, that Hex-editing, whats THAT??? I tried the Ultra-Edit (someone said, that I should use THIS program, or what?) but its just another Text-program, so I want to know what/why/how I can use that Hex-Editing, please...? people mention it over, and over, but I never understood it (because I was directed to a Text-program, and I dont think its the right program)
well, I'm just currious - and if you explain it:
This is my third year in shool with English, so PLEASE dont use TOO many fancy words

ok? thnx
and if you use things like mentioning things like: .ODF's, mision.LUA's, and/or another kind of programming thing, please explain it (or else I wont get it, lol)
thanks
C ya
Posted: Sat May 21, 2005 1:02 pm
by Leviathan
As for me, I use
Hex Editor instead of
Ultra Edit...
Next, we can not explain you
all the hex-edition... You must specify what you want to do using it...