Page 1 of 1

Adding transparency to laser model.

Posted: Wed Jun 24, 2015 12:09 am
by commanderawesome
Alright, I'm trying to convert a blaster shot model someone made for Empire at War. (Not from the stock game) But I can't get the transparency to show up, so it looks like this (sorry about the loadscreen):
https://www.youtube.com/watch?v=JwA6zIbyKCA
I tried hex-editing additive transparency using this tutorial, but to no effect. The model is just a bunch of planes and a texture.
Link to original, unconverted model:
http://www.moddb.com/mods/old-republic- ... ee-release

To converted the model using this method:
AceMastermind wrote:Free and legal

Re: Adding transparency to laser model.

Posted: Wed Jun 24, 2015 11:36 am
by AceMastermind
Anything transparent in SWBF requires a transparency type flag in the material (except cloth) and a texture with an alpha channel.
If there is more than one material in the msh file, you may need to flag them as well.
You could do this all in Mod Tool using ZETools prior to export, no need to hex edit anything.

ZE Tools > .MSH Tools > Manage Materials... > [select a material] > ZEify > ZeroEngine_Flags
Move the 'Transparency' slider to 2 (double-sided) and tick 'Additive Transparency'

I would clean up the model a bit in XSI by deleting the useless duplicate polygons occupying the same space. The texture needs some work too, the alpha channel is all white and covering the whole thing, black is completely transparent and white is completely visible in SWBF. You want to be able to see some color from the texture in-game without all the surrounding black from the RGB channels.

Re: Adding transparency to laser model.

Posted: Sat Jun 27, 2015 10:08 pm
by commanderawesome
AceMastermind wrote:The texture needs some work too, the alpha channel is all white and covering the whole thing, black is completely transparent and white is completely visible in SWBF. You want to be able to see some color from the texture in-game without all the surrounding black from the RGB channels.
How do I do that in gimp?

Re: Adding transparency to laser model.

Posted: Sun Jun 28, 2015 1:50 am
by AceMastermind
I don't know, I use Photoshop. This texture should help get you started, I just copied the red channel into the alpha.
http://www.mediafire.com/download/7xfcf ... er_Red.zip