Adding lava

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

Adding lava

Post by Fiodis »

How do you add lava? I know now that it's just the same as normal water, with death regions added. But how do you go about adding it? I looked in the mus1.fx file, and I couldn't find any lines pretaining to lava. I couldn't find anything in the effects folder about it, either; and that "PC" folder that is mentioned in the tutorial isn't there either. So how do I add lava? What files do I need, and where do I find them?
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Adding lava

Post by Maveritchell »

Image
MileHighGuy
Jedi
Jedi
Posts: 1194
Joined: Fri Dec 19, 2008 7:58 pm

Re: Adding lava

Post by MileHighGuy »

its not water, it a prop. its part of the volcano objects (in the mustafar assets) and its a scrolling 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: Adding lava

Post by Fiodis »

I'm not talking about the lava prop; I'm talking about the lava lava, the liquid type you see under the comm antenna in Mustafar.

And thanks Mav, I've got it mostly working now. It shows up green, though, I'll see what I can do about that.
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Adding lava

Post by Maveritchell »

Fiodis wrote:I'm not talking about the lava prop; I'm talking about the lava lava, the liquid type you see under the comm antenna in Mustafar.
That is also prop lava (there is no water in Mustafar, look at the .wld file).
MileHighGuy
Jedi
Jedi
Posts: 1194
Joined: Fri Dec 19, 2008 7:58 pm

Re: Adding lava

Post by MileHighGuy »

Fiodis wrote:I'm not talking about the lava prop; I'm talking about the lava lava, the liquid type you see under the comm antenna in Mustafar.

And thanks Mav, I've got it mostly working now. It shows up green, though, I'll see what I can do about that.
i think that is what you are talking about
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: Adding lava

Post by Fiodis »

Yes, but you see, it's not. I'm not talking about a prop. I'm talking about a lava that has ripples and splashes.
MileHighGuy
Jedi
Jedi
Posts: 1194
Joined: Fri Dec 19, 2008 7:58 pm

Re: Adding lava

Post by MileHighGuy »

oh, then i guess youd have to appy the mustafar texture to water and edit the watersplash effects
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: Adding lava

Post by Fiodis »

That's what I did, and it works. Thanks again for the search reminder, Mav.
User avatar
vampire_lord
Rebel Sergeant
Rebel Sergeant
Posts: 216
Joined: Thu Mar 20, 2008 7:02 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: Mexico City
Contact:

Re: Adding lava

Post by vampire_lord »

Hey Fiodis, would you mind sharing your water-lava code with us? I left a Shola map pending because the Mustafar props weren't any good for a planet surface map and I could never modify the water properly.
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Adding lava

Post by Maveritchell »

vampire_lord wrote:Hey Fiodis, would you mind sharing your water-lava code with us? I left a Shola map pending because the Mustafar props weren't any good for a planet surface map and I could never modify the water properly.
Sharing? Code? It's just water with a different texture! Argh, I don't know why this hangs up people so much.
User avatar
vampire_lord
Rebel Sergeant
Rebel Sergeant
Posts: 216
Joined: Thu Mar 20, 2008 7:02 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: Mexico City
Contact:

Re: Adding lava

Post by vampire_lord »

I had no problem with texture, but I can't figure the color combination or rather the non-color for the lava texture to be opaque.
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: Adding lava

Post by Fiodis »

vampire_lord wrote:I had no problem with texture, but I can't figure the color combination or rather the non-color for the lava texture to be opaque.


Alpha is transparency. Set it to 255.
Post Reply