How do you remove a Droideka shield's transparency?
Moderator: Moderators
-
Bob
- Brigadier General

- Posts: 633
- Joined: Thu May 27, 2010 4:28 am
- Location: at home
How do you remove a Droideka shield's transparency?
Is it possible to remove the transparency from the droideka shield effect?
I played around with the color line and the texture, but to no avail.
I played around with the color line and the texture, but to no avail.
Last edited by Bob on Sat May 12, 2012 2:25 pm, edited 2 times in total.
- AceMastermind
- Gametoast Staff

- Posts: 3285
- Joined: Mon Aug 21, 2006 6:23 am
- Contact:
How do you remove a Droideka shield's transparency?
Transparency is enabled in the msh file through the ATRB chunk:
BF2_ModTools\assets\sides\cis\effects\cis_droideka_shield.msh
Use a hex editor to change this:
http://www.gametoast.com/forums/viewtop ... 22#p424522
BF2_ModTools\assets\sides\cis\effects\cis_droideka_shield.msh
Use a hex editor to change this:
- 41 54 52 42 04 00 00 00 09 00 00 00
- 41 54 52 42 04 00 00 00 00 00 00 00
http://www.gametoast.com/forums/viewtop ... 22#p424522
-
Bob
- Brigadier General

- Posts: 633
- Joined: Thu May 27, 2010 4:28 am
- Location: at home
Re: a shield's transparency
So it's just like any other model? Didn't know that, thanks!
edit: ^Disregard that, didn't work.
edit: ^Disregard that, didn't work.
- AceMastermind
- Gametoast Staff

- Posts: 3285
- Joined: Mon Aug 21, 2006 6:23 am
- Contact:
How do you remove a Droideka shield's transparency?
Clean then munge after making changes so you can be 100% sure it didn't work.Bob wrote:edit: ^Disregard that, didn't work.
Did you try removing the alpha channel from cis_inf_droideka_shield.tga?
-
Bob
- Brigadier General

- Posts: 633
- Joined: Thu May 27, 2010 4:28 am
- Location: at home
Re: a shield's transparency
I made the texture plain white, isn't that equal to removing the alpha?
I'll try this out anyways, but after dinner (wich is now for me).
I'll try this out anyways, but after dinner (wich is now for me).
- AceMastermind
- Gametoast Staff

- Posts: 3285
- Joined: Mon Aug 21, 2006 6:23 am
- Contact:
How do you remove a Droideka shield's transparency?
If you mean you painted the RGB channels white, then no, that isn't the same thing.
Removing the alpha changes a 32 bit RGBA image to a 24 bit RGB image.
Removing the alpha changes a 32 bit RGBA image to a 24 bit RGB image.
-
Bob
- Brigadier General

- Posts: 633
- Joined: Thu May 27, 2010 4:28 am
- Location: at home
Re: a shield's transparency
Removed the alpha channel, but the shield is still transparent.
And yes, i did a full manual clean before munging.
And yes, i did a full manual clean before munging.
- AceMastermind
- Gametoast Staff

- Posts: 3285
- Joined: Mon Aug 21, 2006 6:23 am
- Contact:
How do you remove a Droideka shield's transparency?
It really shouldn't be this complex to remove the transparency, in droidekashield.fx try changing this:
- Color(96, 160, 192, 255);
- Color(96, 160, 192, 0);
-
Bob
- Brigadier General

- Posts: 633
- Joined: Thu May 27, 2010 4:28 am
- Location: at home
Re: a shield's transparency
Already tried this, makes the shield invisible since the 4th number conrols how visible the shield is.AceMastermind wrote:in droidekashield.fx try changing this:to this:
- Color(96, 160, 192, 255);
- Color(96, 160, 192, 0);
I believe the shield effect searches for a msh with the same name as the tga. I renamed the texture and the mesh to "dimension" (it's supposed to be some kind of dimensional barrier) and cleansed the side from any traces of the cis_droideka_shield.msh, from the lvls as well as from the _Build folder. There's still the same shield:AceMastermind wrote:I also don't see anything referencing the cis_droideka_shield.msh, which is puzzling.
Hidden/Spoiler:
Last edited by Bob on Sat May 12, 2012 5:32 pm, edited 1 time in total.
-
AcaelusThorne
- Corporal

- Posts: 153
- Joined: Tue Apr 26, 2011 3:30 am
- Projects :: Republic Commando Side Mod
- xbox live or psn: No gamertag set
Re: a shield's transparency
Correct me if I am wrong but when that number controlls visiblety and 0 is inviseble I would make it something higher than 255.Bob wrote: Already tried this, makes the shield invisible since the 4th number conrols how visible the shield is.
-
Bob
- Brigadier General

- Posts: 633
- Joined: Thu May 27, 2010 4:28 am
- Location: at home
Re: a shield's transparency
In fact, 255 is the highest number possible there. BYTE only reaches from 0 to 255.AcaelusThorne wrote:Correct me if I am wrong but when that number controlls visiblety and 0 is inviseble I would make it something higher than 255.Bob wrote: Already tried this, makes the shield invisible since the 4th number conrols how visible the shield is.
- AceMastermind
- Gametoast Staff

- Posts: 3285
- Joined: Mon Aug 21, 2006 6:23 am
- Contact:
How do you remove a Droideka shield's transparency?
I thought the same thing at first, but the mesh is named:Bob wrote:I believe the shield effect searches for a msh with the same name as the tga.AceMastermind wrote:I also don't see anything referencing the cis_droideka_shield.msh, which is puzzling.
- cis_droideka_shield.msh
- cis_inf_droideka_shield.tga
-
Bob
- Brigadier General

- Posts: 633
- Joined: Thu May 27, 2010 4:28 am
- Location: at home
Re: a shield's transparency
The line
also does nothing, I changed it to
and nothing happened.
Thus, it looks like the model of the shield is hardcoded for the "shield" ClassLabel
-> mesh can't be changed ord altered in any way.
Code: Select all
Type("droideka")Code: Select all
Type("cube")Thus, it looks like the model of the shield is hardcoded for the "shield" ClassLabel
-> mesh can't be changed ord altered in any way.
- AceMastermind
- Gametoast Staff

- Posts: 3285
- Joined: Mon Aug 21, 2006 6:23 am
- Contact:
How do you remove a Droideka shield's transparency?
The Type line refers to the Particle Mode in Particle Editor when dealing with normal *.fx language, but the droideka shield effect is an ODF+fx hybrid with a custom type not found in Particle Editor. The fambaa_shield.fx from SWBF1 is another example and is set up the same way.
It looks like a custom texture is as far as you can get here unless someone else knows something we don't see. Maybe you could try adding some form of Geometry line to the fx file and call a custom mesh with it.
It looks like a custom texture is as far as you can get here unless someone else knows something we don't see. Maybe you could try adding some form of Geometry line to the fx file and call a custom mesh with it.
-
THEWULFMAN
- Space Ranger
- Posts: 5557
- Joined: Tue Aug 17, 2010 3:30 pm
- Projects :: Evolved 2
- Location: Columbus, Ohio
- Contact:
Re: a shield's transparency
I tried everything I can think of(new texture, new model, new fx settings), and I can't remove the transparency. I am assuming it's hard coded into the ODF/fx hybrid Ace mentioned. Sorry for your luck.
