Remove Shadows from Objects? How could I open msh files?
Moderator: Moderators
-
modmaster13
- General

- Posts: 777
- Joined: Wed Aug 18, 2010 4:23 pm
- xbox live or psn: KrypticcElementt
- Location: Twitter @_KrypticElement
- Contact:
Remove Shadows from Objects? How could I open msh files?
Hi is there any way to remove shadows from objects?
I think it has something to do with opening msh files and editing them. But, what program would I use to do that?
-
Jaspo
- Command Sergeant Major

- Posts: 282
- Joined: Sun Mar 01, 2009 4:34 am
- Projects :: AotC DoW+++Boonta Eve Classic
- xbox live or psn: No gamertag set
- Contact:
Re: Remove Shadows from Objects? How could I open msh files?
How I would do it:
1. open msh file in this program (drag the file into the blue space to open it):
http://sites.google.com/site/swbfmodding/swbf-tools
2. export as vrml
3. import the vrml (.wrl) file in Blender (import VRML97)
Blender link:
http://www.blender.org/download/get-blender/
3. click the texface button for all imported texture materials (and since it creates a new material for every place there is a texture listed in the msh file, this can tend to be quite a few materials to check the button for...annoying, but I don't know of a way to do it easier)
4. export as VRML97 from Blender (can overwrite the old one)
5. import this .wrl file into the swbfviewer (drag the file into the blue space to open it)
6. save as .msh--use this file.
notes:
-textures should remain with the files throughout this process (same file location as the 3D files)...so probably just keep/save everything in the same folder.
-if you do it this way you'll lose the lowrez version of the model (so it will disappear at a certain distance (determined by LOD settings and the ranges in the map's .SKY file), rather than changing to a lower quality model).
-similarly, any special anything present in the original file will be lost (so this won't work for anything animated, either)
-if the object ends up being tilted 90 degrees from this process, there is a button you can check or uncheck during the blender vrml export to correct it.
-blender info:
my tutorial video:
http://starwarsbattlefront.filefront.co ... deo;116011
gametoast topic:
http://www.gametoast.com/forums/viewtop ... 27&t=17586
1. open msh file in this program (drag the file into the blue space to open it):
http://sites.google.com/site/swbfmodding/swbf-tools
2. export as vrml
3. import the vrml (.wrl) file in Blender (import VRML97)
Blender link:
http://www.blender.org/download/get-blender/
3. click the texface button for all imported texture materials (and since it creates a new material for every place there is a texture listed in the msh file, this can tend to be quite a few materials to check the button for...annoying, but I don't know of a way to do it easier)
4. export as VRML97 from Blender (can overwrite the old one)
5. import this .wrl file into the swbfviewer (drag the file into the blue space to open it)
6. save as .msh--use this file.
notes:
-textures should remain with the files throughout this process (same file location as the 3D files)...so probably just keep/save everything in the same folder.
-if you do it this way you'll lose the lowrez version of the model (so it will disappear at a certain distance (determined by LOD settings and the ranges in the map's .SKY file), rather than changing to a lower quality model).
-similarly, any special anything present in the original file will be lost (so this won't work for anything animated, either)
-if the object ends up being tilted 90 degrees from this process, there is a button you can check or uncheck during the blender vrml export to correct it.
-blender info:
my tutorial video:
http://starwarsbattlefront.filefront.co ... deo;116011
gametoast topic:
http://www.gametoast.com/forums/viewtop ... 27&t=17586
- DarthD.U.C.K.
- Master of the Force

- Posts: 6027
- Joined: Wed Sep 27, 2006 11:05 am
- Location: Duckburg, Germany
Re: Remove Shadows from Objects? How could I open msh files?
there may be a way to do it just by hexediting, but im not sure:
open the msh and search for "sv_", once you found it, rename it to something else like "tv_" or so. "sv" is the prefix for shadowvolumes that let the object cause a shadow and renaming it might make battlefront ignore it.
if the msh has a msh.option file, open it and look if it has "highresshadow" in it. if it has, the msh has no shadowvolume and because of the highresshadowcommando visualmunge creates a shadowvolume from the real model, so removing the line if its present removes the shadow ingame.
open the msh and search for "sv_", once you found it, rename it to something else like "tv_" or so. "sv" is the prefix for shadowvolumes that let the object cause a shadow and renaming it might make battlefront ignore it.
if the msh has a msh.option file, open it and look if it has "highresshadow" in it. if it has, the msh has no shadowvolume and because of the highresshadowcommando visualmunge creates a shadowvolume from the real model, so removing the line if its present removes the shadow ingame.
-
modmaster13
- General

- Posts: 777
- Joined: Wed Aug 18, 2010 4:23 pm
- xbox live or psn: KrypticcElementt
- Location: Twitter @_KrypticElement
- Contact:
Re: Remove Shadows from Objects? How could I open msh files?
I found something that says "shadowvolume" but not "sv_".DarthD.U.C.K. wrote:there may be a way to do it just by hexediting, but im not sure:
open the msh and search for "sv_", once you found it, rename it to something else like "tv_" or so. "sv" is the prefix for shadowvolumes that let the object cause a shadow and renaming it might make battlefront ignore it.
if the msh has a msh.option file, open it and look if it has "highresshadow" in it. if it has, the msh has no shadowvolume and because of the highresshadowcommando visualmunge creates a shadowvolume from the real model, so removing the line if its present removes the shadow ingame.
Should I delete "shadowvolume"?
-
FragMe!
- Gametoast Staff

- Posts: 2244
- Joined: Sat May 13, 2006 12:34 am
- Projects :: Not sure keep changing my mind.
- xbox live or psn: No gamertag set
- Location: Origin name GT_FragMe
- Contact:
Re: Remove Shadows from Objects? How could I open msh files?
shadowvolume and sv are one in the same. You can't just delete the name you would have to remove the whole model chunk. You could try renaming it to something with the same amount of letters like hhadowvolume or something and if was hidden originally you shouldn't notice it in game.
-
modmaster13
- General

- Posts: 777
- Joined: Wed Aug 18, 2010 4:23 pm
- xbox live or psn: KrypticcElementt
- Location: Twitter @_KrypticElement
- Contact:
Re: Remove Shadows from Objects? How could I open msh files?
Better idea, I deleted shadowvolume and when I tried to open ZE, it crashed which was pretty odd.FragMe! wrote:shadowvolume and sv are one in the same. You can't just delete the name you would have to remove the whole model chunk. You could try renaming it to something with the same amount of letters like hhadowvolume or something and if was hidden originally you shouldn't notice it in game.
But when I switched it back to the origional MSH files, it worked again. I'll try hhadowvolume.
- Maveritchell
- Jedi Admin

- Posts: 7366
- Joined: Mon Aug 21, 2006 11:03 pm
Re: Remove Shadows from Objects? How could I open msh files?
That is not odd at all, it is exactly what you should expect. If you just delete a part of a .msh file without updating any length IDs parenting it (usually for chunks, just HEDR and MSH2) you will have an invalid .msh file.modmaster13 wrote:Better idea, I deleted shadowvolume and when I tried to open ZE, it crashed which was pretty odd.![]()
-
modmaster13
- General

- Posts: 777
- Joined: Wed Aug 18, 2010 4:23 pm
- xbox live or psn: KrypticcElementt
- Location: Twitter @_KrypticElement
- Contact:
Re: Remove Shadows from Objects? How could I open msh files?
Hmm...is there any way I could update length ID's?Maveritchell wrote:That is not odd at all, it is exactly what you should expect. If you just delete a part of a .msh file without updating any length IDs parenting it (usually for chunks, just HEDR and MSH2) you will have an invalid .msh file.modmaster13 wrote:Better idea, I deleted shadowvolume and when I tried to open ZE, it crashed which was pretty odd.![]()
- Maveritchell
- Jedi Admin

- Posts: 7366
- Joined: Mon Aug 21, 2006 11:03 pm
Re: Remove Shadows from Objects? How could I open msh files?
http://www.gametoast.com/forums/viewtop ... 27&t=11141modmaster13 wrote:Hmm...is there any way I could update length ID's?
-
modmaster13
- General

- Posts: 777
- Joined: Wed Aug 18, 2010 4:23 pm
- xbox live or psn: KrypticcElementt
- Location: Twitter @_KrypticElement
- Contact:
Re: Remove Shadows from Objects? How could I open msh files?
Could this fix the removing shadows problem that effects ZE (not by adding a cloth)?
- Maveritchell
- Jedi Admin

- Posts: 7366
- Joined: Mon Aug 21, 2006 11:03 pm
Re: Remove Shadows from Objects? How could I open msh files?
Please read the topic instead of just skimming it. You will see that it answers your question.modmaster13 wrote:Could this fix the removing shadows problem that effects ZE (not by adding a cloth)?
-
modmaster13
- General

- Posts: 777
- Joined: Wed Aug 18, 2010 4:23 pm
- xbox live or psn: KrypticcElementt
- Location: Twitter @_KrypticElement
- Contact:
Re: Remove Shadows from Objects? How could I open msh files?
I'm confused because it talks about "adding" something
, I want to "remove" something. Sorry if i'm bugging you. 
Idk if it is about removing a code in the HE.
Idk if it is about removing a code in the HE.
Last edited by modmaster13 on Mon Feb 28, 2011 5:47 pm, edited 2 times in total.
- Maveritchell
- Jedi Admin

- Posts: 7366
- Joined: Mon Aug 21, 2006 11:03 pm
Re: Remove Shadows from Objects? How could I open msh files?
modmaster13 wrote:I'm confused because it talks about "adding" something, I want to "remove" something. Sorry if i'm bugging you.
modmaster13 wrote:Hmm...is there any way I could update length ID's?Maveritchell wrote:If you just delete a part of a .msh file without updating any length IDs parenting it (usually for chunks, just HEDR and MSH2) you will have an invalid .msh file.
Hidden/Spoiler:
-
modmaster13
- General

- Posts: 777
- Joined: Wed Aug 18, 2010 4:23 pm
- xbox live or psn: KrypticcElementt
- Location: Twitter @_KrypticElement
- Contact:
Re: Remove Shadows from Objects? How could I open msh files?
Just an idea about the ZE crash, what if I put a second MSH folder in the ***/world1 folder as a backup? 
