Changing Underwater Color [Solved]

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
Lozza
Lieutenant Colonel
Lieutenant Colonel
Posts: 543
Joined: Tue Jan 05, 2010 5:11 am
Games I'm Playing :: STALKER - TDU2
Location: Australia. Melbourne
Contact:

Changing Underwater Color [Solved]

Post by Lozza »

I was currently working on a map based on gas/poison etc.

I changed the water top to a green texture but when you go under water its still blue. What texture do I have to edit in order to change the colour of underwater?
Grev
Hoth Battle Chief
Hoth Battle Chief
Posts: 3132
Joined: Sun Dec 09, 2007 11:45 pm
Projects :: No Mod project currently.
Games I'm Playing :: Minecraft
Location: A Certain Box Canyon

Re: Underwater Textures Question

Post by Grev »

I'm not sure, but since you technically, the way the developers meant it, shouldn't be in the water deep enough for seeing it's color, you probably won't be able to change it. Although I may be wrong.
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: Underwater Textures Question

Post by AQT »

In your world's .fx file, look for this line under the Water section (PC):

Code: Select all

		UnderwaterColor(104, 60, 144, 128);
The first three values define the color.
User avatar
Lozza
Lieutenant Colonel
Lieutenant Colonel
Posts: 543
Joined: Tue Jan 05, 2010 5:11 am
Games I'm Playing :: STALKER - TDU2
Location: Australia. Melbourne
Contact:

Re: Underwater Textures Question

Post by Lozza »

AQT wrote:In your world's .fx file, look for this line under the Water section (PC):

Code: Select all

		UnderwaterColor(104, 60, 144, 128);
The first three values define the color.
Thanks AQT, your a good help.
User avatar
SW_elite
Filthy Thief
Filthy Thief
Posts: 507
Joined: Sat Jan 02, 2010 6:43 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Australia!!!

Re: Underwater Textures Question

Post by SW_elite »

Cool, this stuff is all useful for me, thx!
User avatar
sampip
General
General
Posts: 792
Joined: Mon Mar 16, 2009 12:08 pm
Projects :: Something big. And exciting.
Games I'm Playing :: Battlefield 3
xbox live or psn: masowner66
Location: Zebra

Re: Underwater Textures Question

Post by sampip »

AQT wrote:In your world's .fx file, look for this line under the Water section (PC):

Code: Select all

		UnderwaterColor(104, 60, 144, 128);
The first three values define the color.
Thats interesting, what does the last one do exactly? Just for reference.
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: Changing Underwater Color [Solved]

Post by Fiodis »

I'd imagine alpha.

@ Grev - There are multiple occasions on stock maps where you can go underwater, and the color is not always the same.
User avatar
Lozza
Lieutenant Colonel
Lieutenant Colonel
Posts: 543
Joined: Tue Jan 05, 2010 5:11 am
Games I'm Playing :: STALKER - TDU2
Location: Australia. Melbourne
Contact:

Re: Changing Underwater Color [Solved]

Post by Lozza »

Yeah, I think its alpha.
Post Reply