Inside Edit Flags (FAQ)
Moderator: Moderators
- DarthD.U.C.K.
- Master of the Force
- Posts: 6027
- Joined: Wed Sep 27, 2006 11:05 am
- Location: Duckburg, Germany
Re: Inside Edit Flags (FAQ)
well, that depends on how the console is build.
the easiest way (and how pandemic did it i think) is to give the console hard-edged transparency and make the parts that should glow invisible. then make a simple white grid slightly under/behind the actual console, give it another material and then simply put a "02" or "03" in the 5th place for this material.
the easiest way (and how pandemic did it i think) is to give the console hard-edged transparency and make the parts that should glow invisible. then make a simple white grid slightly under/behind the actual console, give it another material and then simply put a "02" or "03" in the 5th place for this material.
-
- Jedi
- Posts: 1192
- Joined: Thu Oct 16, 2008 4:05 pm
Re: Inside Edit Flags (FAQ)
Hey Duck, I like what you did with the force ghost Obi there, and I want to apply that to a texture that I have. Right now I just have "02" in the fifth place after ATRB, but it makes the whole texture light up, when I want only the brightest part to glow. Would your "51" work for that?
- DarthD.U.C.K.
- Master of the Force
- Posts: 6027
- Joined: Wed Sep 27, 2006 11:05 am
- Location: Duckburg, Germany
Re: Inside Edit Flags (FAQ)
does the texture have transparency? if not you probably dont have to use the 5.
but yes, 01 makes the brighter parts glow more. i cant guarantee that it will work out how you want because i ont know what you want to do with what and because the effects differ depending on the combination of numbers.
but yes, 01 makes the brighter parts glow more. i cant guarantee that it will work out how you want because i ont know what you want to do with what and because the effects differ depending on the combination of numbers.
-
- Jedi
- Posts: 1192
- Joined: Thu Oct 16, 2008 4:05 pm
Re: Inside Edit Flags (FAQ)
Here's said texture. Its going on the shipped kas2_bldg_barrier_msh. What I want to happen is for the light to respond to the light bloom setting (i.e. to glow when it's checked), but I don't want the stone and metal portions to glow as well. Could that be made possible by hex editing, or is a more elaborate method required?
- DarthD.U.C.K.
- Master of the Force
- Posts: 6027
- Joined: Wed Sep 27, 2006 11:05 am
- Location: Duckburg, Germany
Re: Inside Edit Flags (FAQ)
to make only certain parts glow you have to use a glowmap.
to do that uses repsharpshooters meshtool and choose bumpmap.
open the mshfile with a hexeditor, search for "bump" an rename it to "glow".
now put "16" on the 6th place after atrb and 00 on the 5th place. you could try 02 and 03 on the fith place too, maybe it will make the glow independend form the lighting, i dont know
then make a texture called "texturename_glow" and color everything grey except for the parts you want to have glow. they should have the color they should glow in.
to do that uses repsharpshooters meshtool and choose bumpmap.
open the mshfile with a hexeditor, search for "bump" an rename it to "glow".
now put "16" on the 6th place after atrb and 00 on the 5th place. you could try 02 and 03 on the fith place too, maybe it will make the glow independend form the lighting, i dont know
then make a texture called "texturename_glow" and color everything grey except for the parts you want to have glow. they should have the color they should glow in.
- giftheck
- Droid Pilot Assassin
- Posts: 2218
- Joined: Mon Jan 19, 2009 5:58 pm
- Projects :: Star Wars Battlefront Legacy
Re: Inside Edit Flags (FAQ)
Has anybody ever found out what other options there are beyond these? And what do these actually do? Is it possible through this to have a texture that is double-sided when viewed ingame?AceMastermind wrote:Transparency and tick box options are found 5th place over from ATRB (after "B")
- Hex/Name
00 = No transparency/no options ticked
04 = Single sided transparency
08 = Double sided transparency
10 = Hard Edged Transparency(only)
14 = Single sided Transparency with Hard Edged Transparency option ticked
18 = Double sided Transparency with Hard Edged Transparency option ticked
- DarthD.U.C.K.
- Master of the Force
- Posts: 6027
- Joined: Wed Sep 27, 2006 11:05 am
- Location: Duckburg, Germany
Re: Inside Edit Flags (FAQ)
yes, i did. you can find the results on the first page of this topic
and to your second question: yes, that is exactly the effect.
and to your second question: yes, that is exactly the effect.
- giftheck
- Droid Pilot Assassin
- Posts: 2218
- Joined: Mon Jan 19, 2009 5:58 pm
- Projects :: Star Wars Battlefront Legacy
Re: Inside Edit Flags (FAQ)
So through the edit flags, I can make the addon kama mesh appear double-sided? Cool, I'll try that.
- DarthD.U.C.K.
- Master of the Force
- Posts: 6027
- Joined: Wed Sep 27, 2006 11:05 am
- Location: Duckburg, Germany
Re: Inside Edit Flags (FAQ)
yes, you can do it through simple hexeditiing too, but make sure to make it hardedged.
-
- Gametoast Staff
- Posts: 4910
- Joined: Sat Nov 03, 2007 4:55 pm
- Location: SoCal, USA
Re: Inside Edit Flags (FAQ)
@Null_1138: With that particular MSH, you shouldn't have the 02 in the fifth place after every ATRB. Make sure you only apply it to the MATD(s) that corresponds to the lighted parts. I think, by default, the MATD in which the lighted parts use has 01 in the fifth place after ATRB. That should save you some time from guessing.
- DarthD.U.C.K.
- Master of the Force
- Posts: 6027
- Joined: Wed Sep 27, 2006 11:05 am
- Location: Duckburg, Germany
Re: Inside Edit Flags (FAQ)
the lights have a seperate material? then you dont have to use the meshtool and a lightmap and just hexedit 02 or 03.
- ANDEWEGET
- Ancient Force
- Posts: 1266
- Joined: Tue Apr 01, 2008 8:42 am
- Location: Germany
- Contact:
Re: Inside Edit Flags (FAQ)
Better explanation of the old post:
The 5th place after ATRB is calculated from all the individual values of the used flags.
Incase the pic goes down:
Emissive - 1 - 01
Glow - 2 - 02
Singlesided - 4 - 04
Doublesided - 8 - 08
Hardedged transparency - 16 - 10
Per Pixel Ligthing - 32 - 20
Additive Transparency - 64 - 40
Specular - 128 - 80
Example: I want to use Specular, Per Pixel Lighting and Emissive.
1. Add all flag values:
Specular + PerPixel Lighting + Emissive
...128.....+.......32............+....1.......= 161
2. Now convert/pack the value so we get the hex representation. In the example it's A1.
New HTML/JS calculator here: http://schlechtwetterfront.github.io/ze_filetypes/
Hidden/Spoiler:
Incase the pic goes down:
Emissive - 1 - 01
Glow - 2 - 02
Singlesided - 4 - 04
Doublesided - 8 - 08
Hardedged transparency - 16 - 10
Per Pixel Ligthing - 32 - 20
Additive Transparency - 64 - 40
Specular - 128 - 80
Example: I want to use Specular, Per Pixel Lighting and Emissive.
1. Add all flag values:
Specular + PerPixel Lighting + Emissive
...128.....+.......32............+....1.......= 161
2. Now convert/pack the value so we get the hex representation. In the example it's A1.
New HTML/JS calculator here: http://schlechtwetterfront.github.io/ze_filetypes/
Last edited by ANDEWEGET on Tue Oct 20, 2015 10:47 am, edited 4 times in total.
-
- Space Ranger
- Posts: 5557
- Joined: Tue Aug 17, 2010 3:30 pm
- Projects :: Evolved 2
- Location: Columbus, Ohio
- Contact:
Re: Inside Edit Flags (FAQ)
If that is what I think it is, and you're saying what I think you're saying, this is freaking awesome and thank you so much! Brilliant stuff!
EDIT: Aw, the program crashes for me.
EDIT: Aw, the program crashes for me.
Hidden/Spoiler:
- ANDEWEGET
- Ancient Force
- Posts: 1266
- Joined: Tue Apr 01, 2008 8:42 am
- Location: Germany
- Contact:
Re: Inside Edit Flags (FAQ)
This requires the Java version from today which I used to create it. Ive only tested it on my computer so there might be other problems...
-
- Space Ranger
- Posts: 5557
- Joined: Tue Aug 17, 2010 3:30 pm
- Projects :: Evolved 2
- Location: Columbus, Ohio
- Contact:
Re: Inside Edit Flags (FAQ)
Jep, I'm installing the newest version as I type.
- AceMastermind
- Gametoast Staff
- Posts: 3284
- Joined: Mon Aug 21, 2006 6:23 am
- Contact:
Re: Inside Edit Flags (FAQ)
Outstanding! Thanks for sharing, now we can map out what every value combination is.
Edit:
I also want to post an update on the texture slots 1-3 in Edit Flags based on what i've seen looking through a lot of msh files. I don't think it matters which slot you put detail and bump texture names. Just start with the first slot, but order doesn't seem to make a difference, they simply need to be listed. Environment map textures are consistently listed in the 3rd slot(TX3D) though, even if no other textures are listed.
Edit:
I also want to post an update on the texture slots 1-3 in Edit Flags based on what i've seen looking through a lot of msh files. I don't think it matters which slot you put detail and bump texture names. Just start with the first slot, but order doesn't seem to make a difference, they simply need to be listed. Environment map textures are consistently listed in the 3rd slot(TX3D) though, even if no other textures are listed.
-
- Resistance Leader
- Posts: 5042
- Joined: Tue Feb 09, 2010 8:43 pm
- Projects :: DI2 + Psychosis
- xbox live or psn: Marth8880
- Location: Edinburgh, UK
- Contact:
Re: Inside Edit Flags (FAQ)
Tests!
Basic cube, white texture, opacity 25%, glow + single-sided transparency (00 00 00 00 06).
Same mesh and texture, no glow, only single-sided transparency (00 00 00 00 04).
Same mesh and texture, opacity 50%, glow + single-sided transparency (00 00 00 00 06).
It appears that transparency gets rid of the bloom but still brightens the pixels, just like when one has light bloom turned off, but at least the transparency is still retained.
Basic cube, white texture, opacity 25%, glow + single-sided transparency (00 00 00 00 06).
Hidden/Spoiler:
Hidden/Spoiler:
Hidden/Spoiler:
- AceMastermind
- Gametoast Staff
- Posts: 3284
- Joined: Mon Aug 21, 2006 6:23 am
- Contact:
Re: Inside Edit Flags (FAQ)
All possible 5th place flags:
You can see the pattern if you look closely.
These high bit values always represent these flags:
These low bit values always represent these flags:
Pair up a high bit and low bit value to complete a hex value.
Hidden/Spoiler:
These high bit values always represent these flags:
Hidden/Spoiler:
These low bit values always represent these flags:
Hidden/Spoiler:
-
- Space Ranger
- Posts: 5557
- Joined: Tue Aug 17, 2010 3:30 pm
- Projects :: Evolved 2
- Location: Columbus, Ohio
- Contact:
Re: Inside Edit Flags (FAQ)
Wow Ace, thanks a Quadrillion! That list is very helpful and saves everyone a lot of trouble.