Green liquid poison pool

Have questions about CoD2 mapping that aren't covered in the tutorials section? Post here!

Moderator: Core Staff

User avatar
<LT>YosemiteSam[NL]
Core Staff
Core Staff
Posts: 2155
Joined: December 7th, 2004, 2:07 am
Location: Netherlands
Contact:

Green liquid poison pool

Post by <LT>YosemiteSam[NL] » June 1st, 2010, 8:46 am

I've tried alot of things and took me about 6 hours but I can't seem to make a green transparent liquid with a water texture (like the green poison in Unreal tournament) is this even possible or am I wanting too much :)

I know how to make something act like liquid (normal water is easy to make) and I tried sticking green lights in there but that doesn't work (it doesn't see the lights because it still is a solid liquid).

Someone have any idea's ?

User avatar
Rezil
Core Staff
Core Staff
Posts: 2030
Joined: July 24th, 2006, 11:21 am
Location: Cramped in a small cubicle/making another jump map

Re: Green liquid poison pool

Post by Rezil » June 1st, 2010, 9:35 am

Of course it's possible, I did something simmilar in jm_cruise. :)

Do you need help with making the texture or what?
Drofder2004: Drofder's rules for reviewing a map
[...]
#5 If your name is Rezil, minimum 5/5.
---
<LT>YosemiteSam[NL]:
I heard somewhere that the best way to start is juggling 2 balls with one hand, so you will get a feel for it.

User avatar
<LT>YosemiteSam[NL]
Core Staff
Core Staff
Posts: 2155
Joined: December 7th, 2004, 2:07 am
Location: Netherlands
Contact:

Re: Green liquid poison pool

Post by <LT>YosemiteSam[NL] » June 1st, 2010, 10:02 am

I have the green texture from unreal but I doubt that will work.
What I want to know is ;
- how to make the above texture (water) transparent (so you can see the bottom true the water)
- how to make the liquid color green (tried liquid and typ k (color choser)and made it green but that doesn't work)

I'll post a pic of the unreal poison when I get home...makes it more clear.
It must looks like a big pool of green jelly tbh :)

User avatar
Rezil
Core Staff
Core Staff
Posts: 2030
Joined: July 24th, 2006, 11:21 am
Location: Cramped in a small cubicle/making another jump map

Re: Green liquid poison pool

Post by Rezil » June 1st, 2010, 11:12 am

Sure, it's not a problem. Here's a quick tutorial on how to do it:

Making transparent textures(for any Call Of Duty really):

Things you'll need:

- Photoshop
- .DDS Plugin for Photoshop (Download, scroll down to 'Download latest version')
- CoD Asset Manager

Alright, for the purpose of this tutorial I'm going to use this slime texture from Quake 3, it's a normal .jpeg which will later be converted to a proper format:

Image
128x128, must be a power of 2 otherwise you can't convert it

1. Photoshop editing:

Open up photoshop(I'm using version 10.0 CS3 but any version is good as long as it can use the .dds plugin and make alpha channels) and open the texture you want to use. Click on the channels tab and add a channel by clicking on the circled button:

Image

Now there's a new channel called Alpha 1. It's the alpha channel - a bit of explanation how it works: The alpha channel contains information about the transparency of pixels by maknig a grayscale image where white is 0% transparent and black is 100% transparent. We want our slimy texture to be about 30% transparent so what you do is this: click on the alpha channel so it's the only channel visible(the little eye next to the thumbnail image), select the 'Paint Bucket' tool, choose a light grey color and fill the image with it:

Image

Image

Alright that's it for the editing, now you save it as a .dds format with the Alpha Channels option ticked. If for some reason you can't save it - an error pops up saying: Too many channels(5) you can fix it by flattening the image.

Image

After you save it another window should pop up looking something like this:

Image

Use the same settings as shown here(DXT5 gives the best results but takes up the most ammount of space, I usually use this option when making transparent textures and DXT1 when making non-transparent ones) and click 'Save'.

Well done, you now have a .dds image with alpha information. Next up:

2. Importing into Call Of Duty 2:

Browse to your Call Of Duty 2 folder and the bin subfolder, then open asset_manager.exe. On the top left you'll see some buttons and a list below that. Scroll down the list until you find the 'material' entry, select it and then press the New Entry button:

Image

You can name it anything(it will be the name of the material file which ands up in your .iwd), I'll call it 'tutorial_slime'. Alright, now you have a lot of options, I'll explain some of them right now so you can use them if you need to do other textures aswell:

materialType: What the material will be used for: world phong is a texture used for the game world, 2d is various HUD elements or loadscreens etc.
sort: What sort of material it is: skybox, decals etc.
surfaceType: How footsteps sound when walking on this material and how bulletmarks show.
usage: Self explanatory really, what you set here is where the texture will be located when you filter by 'usage' in CoD2Radiant.

Color Map: The 2d image you have created in Photoshop. It's the most important part of maknig a texture, there are other options such as Detail Map and Normal Map which deal with how light bounces of the texture but this one is the most important.

That's the basic stuff that you need to know, now choose what's appropriate or copy my settings:

Image
(Note: You won't have the 'Rezil' locale, I made that for convenience so I can locate my own textures quickly)
(Note2: The .dds texture needs to be located somewhere inside the Call Of Duty 2 folder, it can be in a submap)
(I'm also not sure if sort should be 'opaque water', I've used default so far and it didn't pose any problems while behaving like a normal water texture)

BlendFunc needs to be set to Blend, otherwise it won't use the alpha channel. Now hit Ctrl+S to save your .gdt file, then press F10 to convert your asset to a proper format.

Congrats, you've made a transparent texture, usable in-game! :)

3. Finishing up:

You'll have two new folders in your 'main' folder, named 'images' and 'materials', put those two folders into your map .iwd and you're done!

Image
Image in Radiant.

Tutorial made by rezil. :)
Drofder2004: Drofder's rules for reviewing a map
[...]
#5 If your name is Rezil, minimum 5/5.
---
<LT>YosemiteSam[NL]:
I heard somewhere that the best way to start is juggling 2 balls with one hand, so you will get a feel for it.

User avatar
<LT>YosemiteSam[NL]
Core Staff
Core Staff
Posts: 2155
Joined: December 7th, 2004, 2:07 am
Location: Netherlands
Contact:

Re: Green liquid poison pool

Post by <LT>YosemiteSam[NL] » June 1st, 2010, 11:37 am

Thx alot m8 !!
I'll try it out tonight !

User avatar
Rezil
Core Staff
Core Staff
Posts: 2030
Joined: July 24th, 2006, 11:21 am
Location: Cramped in a small cubicle/making another jump map

Re: Green liquid poison pool

Post by Rezil » June 1st, 2010, 7:18 pm

Sure thing KS.
Drofder2004: Drofder's rules for reviewing a map
[...]
#5 If your name is Rezil, minimum 5/5.
---
<LT>YosemiteSam[NL]:
I heard somewhere that the best way to start is juggling 2 balls with one hand, so you will get a feel for it.

User avatar
Rezil
Core Staff
Core Staff
Posts: 2030
Joined: July 24th, 2006, 11:21 am
Location: Cramped in a small cubicle/making another jump map

Re: Green liquid poison pool

Post by Rezil » June 1st, 2010, 7:26 pm

You mean to look like YOU did it, right? :P Thieving bastard!
Drofder2004: Drofder's rules for reviewing a map
[...]
#5 If your name is Rezil, minimum 5/5.
---
<LT>YosemiteSam[NL]:
I heard somewhere that the best way to start is juggling 2 balls with one hand, so you will get a feel for it.

User avatar
<LT>YosemiteSam[NL]
Core Staff
Core Staff
Posts: 2155
Joined: December 7th, 2004, 2:07 am
Location: Netherlands
Contact:

Re: Green liquid poison pool

Post by <LT>YosemiteSam[NL] » June 2nd, 2010, 12:06 am

Rez I followed your tut to the letter but something isn't adding up at the end (in radiant).
I made the texture and it behaves like water and stuff like that but in Radiant it looks transparent but when I compile it, it's not (see pic). Any ideas on how this can be (must be an overside probably).
You do not have the required permissions to view the files attached to this post.

User avatar
Rezil
Core Staff
Core Staff
Posts: 2030
Joined: July 24th, 2006, 11:21 am
Location: Cramped in a small cubicle/making another jump map

Re: Green liquid poison pool

Post by Rezil » June 2nd, 2010, 12:12 am

Hm, it shows as transparent in Radiant but not ingame? Hm, the only thing I can think of is not to have the texture 'fit' the brush, instead just make it natural(open the surface inspector-S and press the 'Natural' button).
Drofder2004: Drofder's rules for reviewing a map
[...]
#5 If your name is Rezil, minimum 5/5.
---
<LT>YosemiteSam[NL]:
I heard somewhere that the best way to start is juggling 2 balls with one hand, so you will get a feel for it.

User avatar
Rezil
Core Staff
Core Staff
Posts: 2030
Joined: July 24th, 2006, 11:21 am
Location: Cramped in a small cubicle/making another jump map

Re: Green liquid poison pool

Post by Rezil » June 2nd, 2010, 12:23 am

Tested it myself, works fine:

Image
Drofder2004: Drofder's rules for reviewing a map
[...]
#5 If your name is Rezil, minimum 5/5.
---
<LT>YosemiteSam[NL]:
I heard somewhere that the best way to start is juggling 2 balls with one hand, so you will get a feel for it.

User avatar
Drofder2004
Core Staff
Core Staff
Posts: 13315
Joined: April 13th, 2005, 8:22 pm
Location: UK, London

Re: Green liquid poison pool

Post by Drofder2004 » June 2nd, 2010, 2:25 am

Out of interest, why are you not generating mipmaps?

----

Make sure your settings are all 100% correct.
Image
Virgin Media 20Mb Broadband:
"Perfect for families going online at the same time, downloading movies, online gaming and more."
Borked internet since: 22-07-2010

User avatar
Rezil
Core Staff
Core Staff
Posts: 2030
Joined: July 24th, 2006, 11:21 am
Location: Cramped in a small cubicle/making another jump map

Re: Green liquid poison pool

Post by Rezil » June 2nd, 2010, 2:39 am

Usually it's just a force of habit but using mip-maps takes up even more space along with DXT5 compression.
Drofder2004: Drofder's rules for reviewing a map
[...]
#5 If your name is Rezil, minimum 5/5.
---
<LT>YosemiteSam[NL]:
I heard somewhere that the best way to start is juggling 2 balls with one hand, so you will get a feel for it.

User avatar
<LT>YosemiteSam[NL]
Core Staff
Core Staff
Posts: 2155
Joined: December 7th, 2004, 2:07 am
Location: Netherlands
Contact:

Re: Green liquid poison pool

Post by <LT>YosemiteSam[NL] » June 2nd, 2010, 8:14 am

Maybe I'm making my slime the wrong way.

- draw a brush and make it liquid
- Select the upper texture and make it the slime texture.

is this correct or do I have to make the whole liquid box the slime texture? Or am I doing it al wrong ? (probably :oops: )

User avatar
Rezil
Core Staff
Core Staff
Posts: 2030
Joined: July 24th, 2006, 11:21 am
Location: Cramped in a small cubicle/making another jump map

Re: Green liquid poison pool

Post by Rezil » June 2nd, 2010, 9:10 am

Can you see through the brush in Radiant?
Drofder2004: Drofder's rules for reviewing a map
[...]
#5 If your name is Rezil, minimum 5/5.
---
<LT>YosemiteSam[NL]:
I heard somewhere that the best way to start is juggling 2 balls with one hand, so you will get a feel for it.

User avatar
<LT>YosemiteSam[NL]
Core Staff
Core Staff
Posts: 2155
Joined: December 7th, 2004, 2:07 am
Location: Netherlands
Contact:

Re: Green liquid poison pool

Post by <LT>YosemiteSam[NL] » June 2nd, 2010, 9:27 am

yes.
In game I can jump into the liquid, and when I look at the sides they are all black (not seethrough) but I can see through the top surface of the liquid (from underneath I mean).
I'll make a new testmap from scratch to test if I'm doing it right.

Post Reply

Who is online

Users browsing this forum: No registered users and 8 guests