Hex-editing Transparency, Glow, and Scroll, at once?

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Hex-editing Transparency, Glow, and Scroll, at once?

Post by Fiodis »

I made a new weapon mesh, a plasma sword/rifle, and I tried to hex-edit it to allow the blade to be semi-transparent (Found 4th place over from ATRB and hexed a "04" in). I did this for both the main one and the one with the blade's texture right after it. In-game, it shows up white, as if the texture is missing. What is wrong?
Last edited by Fiodis on Sun May 17, 2009 11:44 am, edited 2 times in total.
User avatar
Fluffy_the_ic
Hoth Battle Chief
Hoth Battle Chief
Posts: 3223
Joined: Thu Jan 24, 2008 7:03 pm
xbox live or psn: fluffytherc
Location: she/her
Contact:

Re: Hex-editing Transparency

Post by Fluffy_the_ic »

It's not necessarily that you hexed wrong- It could be something like the texture was the wrong size (I've done that, 246x246) or it could just be a problem with export. What Frag told me to do to fix this was select all of the object's polys, right click, and select "Extract Polygons-Delete" and then export.
Caleb1117
2008 Most Original Avatar
Posts: 3096
Joined: Sun Aug 20, 2006 5:55 pm
Projects :: No Mod project currently.
xbox live or psn: No gamertag set
Location: X-Fire: caleb1117 ಠ_ಠ

Re: Hex-editing Transparency

Post by Caleb1117 »

Did you add an alpha channel to the texture?
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: Hex-editing Transparency

Post by Fiodis »

The texture has a shipped, stock alpha.

I just realized, I did hex wrong. Fancy that.
Fiodis wrote:(Found 4th place over from ATRB and hexed a "04" in).
Ought to have been 5th place over. :wink:

Well, then, another question before this can be locked: can weapon meshes scroll and have glow and transparency, all at the same time?
User avatar
Fluffy_the_ic
Hoth Battle Chief
Hoth Battle Chief
Posts: 3223
Joined: Thu Jan 24, 2008 7:03 pm
xbox live or psn: fluffytherc
Location: she/her
Contact:

Re: Hex-editing Transparency

Post by Fluffy_the_ic »

They can have two at once for sure, dunno about all three, although I believe that VF did that for the Energy Sword model.
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: Hex-editing Transparency

Post by DarthD.U.C.K. »

you can only add one flag per polygon/material but transparency isnt a flag
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: Hex-editing Transparency

Post by Fiodis »

DarthD.U.C.K. wrote:you can only add one flag per polygon/material b8t transparency isnt a flag
I have no idea what that means, unfortunately. I can only have transparency? All I do is hex-edit in numbers that do stuff. Are those numbers what you call flags? And what's a b8t?

EDIT - Seems you can't do all three, since where you'd have to hex in scrolling is the same place as glow, so it seems you ought to pick one or the other.
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: Hex-editing Transparency

Post by DarthD.U.C.K. »

ok, my explanation was not that understandable
for every material/polygon you can define one "flag" like scroll, glow bumpmap, specularmap, glossmap, throbb, reflections, envmap etc but you can only define one flag per poly/material and transparency is not a flag, that why you can make things transparent but envmapped for example

b8t is a typo i meant but
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: Hex-editing Transparency

Post by Fiodis »

DarthD.U.C.K. wrote:ok, my explanation was not that understandable
for every material/polygon you can define one "flag" like scroll, glow bumpmap, specularmap, glossmap, throbb, reflections, envmap etc but you can only define one flag per poly/material and transparency is not a flag, that why you can make things transparent but envmapped for example

b8t is a typo i meant but
Ah, that makes it a lot clearer and increases my understanding of how .msh files are arranged.

And I thought "b8t" meant "byte", which is what had me confused.

Well, this can be locked, my questions answered. Thanks!

EDIT - Hang on, don't lock this yet; another hexing question popped up, and it'd seem noobish to create a whole new thread.

I hexed in a "01" the 6th place after ATRB, to enable glow, but no apparent glow appears. Is there something else that I need to hex in, an intensity value or anything? Or is the texture missing something?
User avatar
Fluffy_the_ic
Hoth Battle Chief
Hoth Battle Chief
Posts: 3223
Joined: Thu Jan 24, 2008 7:03 pm
xbox live or psn: fluffytherc
Location: she/her
Contact:

Re: Hex-editing Transparency, Glow, and Scroll, at once?

Post by Fluffy_the_ic »

I don't reccomend hexing glow. And did you remember the msh.option?
VF501
Lieutenant Colonel
Lieutenant Colonel
Posts: 539
Joined: Fri Jun 08, 2007 1:18 am
Projects :: Various Stuff- Weapon models. UDK Stuff
Games I'm Playing :: Fallout New Vegas
xbox live or psn: Vintage Tagious
Location: Terra Firma, Sol System; Milky Way

Re: Hex-editing Transparency, Glow, and Scroll, at once?

Post by VF501 »

For the Covenant Energy Sword I did, I have it Flagged for Scrolling, and used the trick Culvar came up with for glow, by using a custom saber texture and adjusting blade lengths and widths to match it to my sword.

If you want to try it, make a duplicate of your part you want to flag, and flag each on separately and shrink one so its slightly smaller to avoid z-fighting.
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: Hex-editing Transparency, Glow, and Scroll, at once?

Post by Fiodis »

VF501 wrote:For the Covenant Energy Sword I did, I have it Flagged for Scrolling, and used the trick Culvar came up with for glow, by using a custom saber texture and adjusting blade lengths and widths to match it to my sword.

If you want to try it, make a duplicate of your part you want to flag, and flag each on separately and shrink one so its slightly smaller to avoid z-fighting.


The first wouldn't work since it's a rifle mesh. The second I'll have to try. Woudn't the stationary, glowing one show up under the non-glowing, transparent, scrolling top one? And how do you set glow intensity? I believe it's based on the texture, but I'm just making sure.
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: Hex-editing Transparency, Glow, and Scroll, at once?

Post by FragMe! »

Here is a picture with a scrolling transparent texture with a glow mesh in the middle.
The glow mesh is the scrolling polygons extracted and scaled down and flag set to glow.
There is other geometry in the middle of the weapon that is why the glow mesh is as big as it is but depending upon your model you might be able to get with rather small gometry and it wouldn't be as obvious.

Image

Sorry can't show you any more than that, not my weapon and not sure if the creator has made it public yet.

But for the glow you do need to do a color at vertices map and paint the polies the glow color you want.
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: Hex-editing Transparency, Glow, and Scroll, at once?

Post by Fiodis »

FragMe! wrote:But for the glow you do need to do a color at vertices map and paint the polies the glow color you want.


Could you explain this a bit? Is it some XSI feature, or can it be done with GIMP? And what's a vertices map?
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: Hex-editing Transparency, Glow, and Scroll, at once?

Post by FragMe! »

Color at Vertices map is a XSI thing, it is found under render/create/properties menus.
XSI has help for it that can explain it better than I can here. But basically you paint the polygons for the parts you want to glow. You can set what color they should glow as well.
There is also a thing in the FAQ for glow which also covers vertex coloring.

As for hex editing it in, since I don't do hex editing I am making some assumtions, but if they parts are different meshes within the model then you should be able to get to the bits separately to edit them.
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: Hex-editing Transparency, Glow, and Scroll, at once?

Post by Fiodis »

FragMe! wrote:Color at Vertices map is a XSI thing, it is found under render/create/properties menus.
XSI has help for it that can explain it better than I can here. But basically you paint the polygons for the parts you want to glow. You can set what color they should glow as well.
There is also a thing in the FAQ for glow which also covers vertex coloring.

As for hex editing it in, since I don't do hex editing I am making some assumtions, but if they parts are different meshes within the model then you should be able to get to the bits separately to edit them.
The gun is a sword/barrel combo, the sword blade is a seperate little mesh within the model, that's what I've hexed to glow. If I do this Color at Vertices thing, will it export correctly with MshEx or will I have to ask someone to do it?
Post Reply