Textures messed up on model

How to create models in XSI and other 3D applications and make them work in Battlefront 1 & 2. Post models, tips for application usage and share anything XSI, 3DMax, SketchUp, etc.

Moderator: Moderators

User avatar
[TFA]Padawan_Fighter
High General
High General
Posts: 806
Joined: Wed Mar 25, 2009 3:37 pm
Projects :: Ha - as if I will ever get back to them
Games I'm Playing :: SWBF2 ARK EliteDngrs
xbox live or psn: No gamertag set
Location: Lost at sea

Textures messed up on model

Post by [TFA]Padawan_Fighter »

Hey all. So I'm trying to hex-edit a .msh file to fix a texture problem, but it has come to my attention that there is more than one type of hex editor. Which one would be best for editing a .msh file?
Last edited by [TFA]Padawan_Fighter on Sun Sep 20, 2009 5:51 am, edited 1 time in total.
Labj
Sith
Sith
Posts: 1400
Joined: Tue Jun 16, 2009 3:20 pm
Games I'm Playing :: Halo 4
xbox live or psn: SiulS2409
Location: Costa Rica
Contact:

Re: Hex Editors

Post by Labj »

The newest one, souldnt ?
User avatar
General_Nate
Lieutenant General
Lieutenant General
Posts: 689
Joined: Sun Jun 28, 2009 4:01 pm
Projects :: None because BFII is not working
Games I'm Playing :: Minecraft
xbox live or psn: No gamertag set
Location: 127.0.0.1

Re: Hex Editors

Post by General_Nate »

The one recommended in the FAQ is good.
User avatar
[TFA]Padawan_Fighter
High General
High General
Posts: 806
Joined: Wed Mar 25, 2009 3:37 pm
Projects :: Ha - as if I will ever get back to them
Games I'm Playing :: SWBF2 ARK EliteDngrs
xbox live or psn: No gamertag set
Location: Lost at sea

Re: Hex Editors

Post by [TFA]Padawan_Fighter »

Alright...it showed multiple ones though....I chose SciTE.

But eh...all I see is garbled stuff... :?

Okay...I needed to fix something up in the .msh because I was following the sketchup to XSI tutorial, and it told me to do this:
5. Do whatever you would do with another model, then export from XSI. After exporting, change the .pngs of the textures to .tgas and reference them correctly with a hex editor in the msh. so, when you export to .dae, the textures are jpgs. Change it to tga, and change the name (texture0, texture1)to the proper number of letters, and reference that texture in place of texture0, texture1, etc.
Apparently, using what ever remnants of my brain I had, this meant I needed to change the texture files into the proper order of .tga files, as well as reference them in the .msh file using a hex editor. I think I messed up on the latter, did I?
Deviss
Master of the Force
Master of the Force
Posts: 3772
Joined: Tue Aug 12, 2008 7:59 pm
Projects :: Clone Wars Extended
Games I'm Playing :: BF2

Re: Hex Editors

Post by Deviss »

is easy use xvi32 and you want change the reference? so only change the number into MODL chunk MATI section :wink:
User avatar
[TFA]Padawan_Fighter
High General
High General
Posts: 806
Joined: Wed Mar 25, 2009 3:37 pm
Projects :: Ha - as if I will ever get back to them
Games I'm Playing :: SWBF2 ARK EliteDngrs
xbox live or psn: No gamertag set
Location: Lost at sea

Re: Hex Editors

Post by [TFA]Padawan_Fighter »

Cool, thanks. I got Xvi32 now. But...eh...could you mind explaining how to change the numbers into a MODL or...whatever? As you can see, I've just started to hex edit a msh. :oops:
Deviss
Master of the Force
Master of the Force
Posts: 3772
Joined: Tue Aug 12, 2008 7:59 pm
Projects :: Clone Wars Extended
Games I'm Playing :: BF2

Re: Hex Editors

Post by Deviss »

[TFA]Padawan_Fighter wrote:Cool, thanks. I got Xvi32 now. But...eh...could you mind explaining how to change the numbers into a MODL or...whatever? As you can see, I've just started to hex edit a msh. :oops:
ouch sorry no problem :wink: , well for example your MODL chunk is called jetpack:
MODL NAME JETPACK bla bla so after jetpack search the word MATI and into this will appear characters for example MATI8364 00 00 00 00 write in fourth 00 this make reference to your texture for example you wanted make reference to the second texture:
MATI8364 00 00 00 02
User avatar
[TFA]Padawan_Fighter
High General
High General
Posts: 806
Joined: Wed Mar 25, 2009 3:37 pm
Projects :: Ha - as if I will ever get back to them
Games I'm Playing :: SWBF2 ARK EliteDngrs
xbox live or psn: No gamertag set
Location: Lost at sea

Re: Hex Editors

Post by [TFA]Padawan_Fighter »

Okay...well, I searched for MODL, and I got alot of results in it, but everything is sandwiched in with extra characters n' stuff. Is it supposed to be like that?

Here's a screenshot of the hex editor:
Hidden/Spoiler:
Image
So I'm just wondering if there's like a button that hides all that, or do I have to figure it all out? I hate to sound like I'm a total retard, but codes aren't quite my forte. Doesn't mean I won't try to get it right though...
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Hex Editors

Post by Maveritchell »

What you're trying to do shouldn't involve hex-editing. All that looks like it should be done in XSI/3DS/whatever modeling software you're using. You're just going to make it difficult hex-editing here.
User avatar
[TFA]Padawan_Fighter
High General
High General
Posts: 806
Joined: Wed Mar 25, 2009 3:37 pm
Projects :: Ha - as if I will ever get back to them
Games I'm Playing :: SWBF2 ARK EliteDngrs
xbox live or psn: No gamertag set
Location: Lost at sea

Re: Hex Editors

Post by [TFA]Padawan_Fighter »

Well, what AM I supposed to do? The tut said to reference them via a hex editor in the msh. And, it looks FINE in XSI, but once it's converted to .msh, the textures are gone. So the only logical thing, was to do what the tutorial said. Unless there is another way...?
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Hex Editors

Post by Maveritchell »

Are the texture names referenced at all? All they're probably saying is that in your .msh, they're referenced as .jpgs and not as .tgas - which is why they say:
"convert to tga"
"change reference in msh"

So look through your msh for the names of your texture/s (probably "mytexture.jpg") and change it to "mytexture.tga" - this is basic "how to edit textures with a hex-editor" straight from the tutorial thread.
User avatar
[TFA]Padawan_Fighter
High General
High General
Posts: 806
Joined: Wed Mar 25, 2009 3:37 pm
Projects :: Ha - as if I will ever get back to them
Games I'm Playing :: SWBF2 ARK EliteDngrs
xbox live or psn: No gamertag set
Location: Lost at sea

Re: Hex Editors

Post by [TFA]Padawan_Fighter »

I know....they're TGAs, but I forgot to turn off the compression when I changed them to tgas.


They all have No Compression on...but now, this happens in MSHViewer:
Hidden/Spoiler:
Image
It's SUPPOSED to look like this (it showed up fine in XSI as well):
Hidden/Spoiler:
Image

Now, I don't have a clue what's going on. :faint:


*EDIT* Does anyone know how to fix this? :(
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Hex Editors

Post by Maveritchell »

[TFA]Padawan_Fighter wrote:I know....they're TGAs, but I forgot to turn off the compression when I changed them to tgas.
Then you can just resave your .tgas correctly. It looks more like your problem is that you didn't freeze something on your mesh - I don't think you even have a texture problem, but a transforms problem. You can (maybe) avert this by exporting your model as an .obj, reimporting to XSI, and then reexporting as .msh (or .xsi->.msh).
User avatar
[TFA]Padawan_Fighter
High General
High General
Posts: 806
Joined: Wed Mar 25, 2009 3:37 pm
Projects :: Ha - as if I will ever get back to them
Games I'm Playing :: SWBF2 ARK EliteDngrs
xbox live or psn: No gamertag set
Location: Lost at sea

Re: Hex Editors

Post by [TFA]Padawan_Fighter »

Ooookay, thats um, everything that I did.


-I resaved my TGAs correctly.

-I don't know what freezing something on my msh means.

-The way I did this, was import it from .dae, export it as an .obj, restarted XSI, imported my .obj, follow the MeshEx tutorial (put everything under a null, etc.), exported it as a .xsi, and used MeshEx to export it to .msh.


EDIT
Sorry about the doublepost, but this topic got past a page b/c of no replies :( .

Can someone please tell me how to fix this problem? I need to get this finished up for a map I'm helping to make.

Double posting is against the RULES, please EDIT your post instead -Staff

^
|
| : I would like to, believe me, and I'm sorry. But it got past a page, and nobody would notice any changes if I edited it. So I had to do a dp...I hope you understand.


*EDIT* Changed "Hex Editors" to "Textures messed up on model"
FragMe!
Gametoast Staff
Gametoast Staff
Posts: 2244
Joined: Sat May 13, 2006 12:34 am
Projects :: Not sure keep changing my mind.
Games I'm Playing :: F1 and SWBF
xbox live or psn: No gamertag set
Location: Origin name GT_FragMe
Contact:

Re: Textures messed up on model

Post by FragMe! »

You will need to go back into XSI and fix up some of the UV mapping.
From my one and hopefully only experience with converting from sketchup to XSI, on bigger models in particular, the UV mapping and material mapping in some cases gets all messed up so you have to go through and check them all.
Now fortunately the transfer from one to the other preserves the clusters so that will at least show you if all the polies are mapped to the proper material. Use the help in XSI to find out about clusters and hiding and unhiding them it is a very useful thing to know. Selecting a cluster and pressing ALT-7 will show you the UV mapping and you should be able to see which ones are wrong realatively easy.
User avatar
[TFA]Padawan_Fighter
High General
High General
Posts: 806
Joined: Wed Mar 25, 2009 3:37 pm
Projects :: Ha - as if I will ever get back to them
Games I'm Playing :: SWBF2 ARK EliteDngrs
xbox live or psn: No gamertag set
Location: Lost at sea

Re: Textures messed up on model

Post by [TFA]Padawan_Fighter »

Aight. Is there a way I can get it to make a texture template thing, like the textures in the stock BF2 Models?
User avatar
DarthD.U.C.K.
Master of the Force
Master of the Force
Posts: 6027
Joined: Wed Sep 27, 2006 11:05 am
Location: Duckburg, Germany

Re: Textures messed up on model

Post by DarthD.U.C.K. »

what do you mean?
User avatar
[TFA]Padawan_Fighter
High General
High General
Posts: 806
Joined: Wed Mar 25, 2009 3:37 pm
Projects :: Ha - as if I will ever get back to them
Games I'm Playing :: SWBF2 ARK EliteDngrs
xbox live or psn: No gamertag set
Location: Lost at sea

Re: Textures messed up on model

Post by [TFA]Padawan_Fighter »

I mean, is there a way I can make it generate a texture file without any textures, maybe an outline of all that needs to be filled in? I heard it was possible...if not, just...Never mind...I probably sound stupid anyway..
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Textures messed up on model

Post by Maveritchell »

[TFA]Padawan_Fighter wrote:I mean, is there a way I can make it generate a texture file without any textures, maybe an outline of all that needs to be filled in? I heard it was possible...if not, just...Never mind...I probably sound stupid anyway..
Now you are asking questions better asked in the 3D forum, but the closest thing to what I think you want is generating "unique UVs" and then stamping them to a .tga. XSI can never just create a perfect UV layout for a model; you will have to do that yourself. Once you've made your UVs (which do not have to be unique, they can be cubic, spherical, whatever - any of these are just templates), you can stamp your UVs to a texture and then work on them that way. To do any of this you will need to learn how to apply textures in XSI.
User avatar
[TFA]Padawan_Fighter
High General
High General
Posts: 806
Joined: Wed Mar 25, 2009 3:37 pm
Projects :: Ha - as if I will ever get back to them
Games I'm Playing :: SWBF2 ARK EliteDngrs
xbox live or psn: No gamertag set
Location: Lost at sea

Re: Textures messed up on model

Post by [TFA]Padawan_Fighter »

Oh, ok...yeah, that's what I was asking. Thanks. And yes, I think this should belong in the Modeling and Animation forum.


*EDIT* Stamping won't work. :( It only makes a stamp of one texture (the wooden table, to be exact). I must have done something wrong...how do I go about doing this the right way?
Post Reply