Manipulating Water - Is it possible

If you're looking for mapping help or you reckon you're a mapping guru, post your questions / solutions here

Moderator: Moderators

Shifty
Map Reviewer
Posts: 717
Joined: Sun Dec 15, 2002 11:53 pm
Location: UK
Contact:

Manipulating Water - Is it possible

Post by Shifty »

Ok this is something i've been toying with for a long time as Im a massive fan of Stargate SG-1 i wanted to build a stargate map but when i Put the water texture in it moves from the bottom of the gate to the top

(See Screenshot- This is a Very Early test build of the gate)

Image

So what im wondering is, is it at all possible to change the effect of the water to say having it ripple from the centre outwards?
.MDT Webmaster, Mapper, Moddeler & Concept Artist
.Map Reviewer
Image
http://www.shiftys-bunker.tk Under Construction
Angex
Major
Posts: 293
Joined: Mon Dec 30, 2002 1:23 pm
Contact:

Post by Angex »

I would guess from my experience with other games, that the water riples are just animated textures. Therefore you need to create a new texture. (Just a guess !!!).

Its probably wrong as MoH always seems to do things differently.
User avatar
wacko
Field Marshal
Posts: 2085
Joined: Fri Jul 05, 2002 8:42 pm
Location: Germany

Post by wacko »

You can rotate the animation (scroll) of the watertexture in the surface inspector with the texture property rotation.
Also you could write a new .shader for a new or an existing texture, but I don't think you can make it scroll from the center outwards.
I would suggest, cut your gate in some pieces and change the rotation of each piece so the water looks as if scrolling the right way. Doesn't look perfect but I think this should do it?!
Another Idea: Make a curve cylinder with a water texture scrolling from the peak to the bottom, make it REALLY flat and use this almost even circle as your gate.
Innkeeper
Colonel
Posts: 475
Joined: Mon Nov 25, 2002 10:13 pm
Location: NC, USA (about 7.5 klicks from the capital dome)
Contact:

Post by Innkeeper »

There is a subpen texture in Spearhead that when shot ripples in concentric circles. Maybe take a look at how that is done and enlarge the effect.
User avatar
wacko
Field Marshal
Posts: 2085
Joined: Fri Jul 05, 2002 8:42 pm
Location: Germany

Post by wacko »

:oops: :oops: :oops:
I forgot half of the solution:
You must make a curve cylinder,
then select it, press v and make a cone out of it (if you do not know how, ask here), thenmake it really flat...
If you find a water texture without waves, you can use that, if not you should make your own scrolling texture! This is not that difficult as I found out two days ago :)

I gave this solution a try(without new texture but with canal sludge) and it looked great!
User avatar
wacko
Field Marshal
Posts: 2085
Joined: Fri Jul 05, 2002 8:42 pm
Location: Germany

Post by wacko »

Have done a demo-pk3. Who wants to see it? I have no place to put it, but I've sent it to Surgeon, so let's see, what happens...
phalanx

Post by phalanx »

tga's can have animation?
User avatar
wacko
Field Marshal
Posts: 2085
Joined: Fri Jul 05, 2002 8:42 pm
Location: Germany

Post by wacko »

Yes and no, as far as I know: You won't play videos :wink: but you can make them scroll like the water textures. Study the misc_outside.shader in the pak0.pk3. There you will find the shader-info for the water-textures which you can use as a basis for writing own shaders for scrolling textures.
Innkeeper
Colonel
Posts: 475
Joined: Mon Nov 25, 2002 10:13 pm
Location: NC, USA (about 7.5 klicks from the capital dome)
Contact:

Post by Innkeeper »

Intreresting that subpen_water_clear uses 5 different images to produce the animation. The shader maps these as .tga files but they are all .jpg files
User avatar
mohaa_rox
Field Marshal
Posts: 2760
Joined: Mon Nov 11, 2002 7:05 am
Contact:

Post by mohaa_rox »

I think it's the .shader file that have animations.
Live to map, not map to live.
-mohaa_rox, .map
moderator
Shifty
Map Reviewer
Posts: 717
Joined: Sun Dec 15, 2002 11:53 pm
Location: UK
Contact:

Post by Shifty »

Wow thx guys i'll check that shader out and see if I can come up - also I know the gate looks very dodgy at the moment but its one i made when I very first started mapping it'll do for the test at the moment then i'll build a better one
.MDT Webmaster, Mapper, Moddeler & Concept Artist
.Map Reviewer
Image
http://www.shiftys-bunker.tk Under Construction
User avatar
wacko
Field Marshal
Posts: 2085
Joined: Fri Jul 05, 2002 8:42 pm
Location: Germany

Post by wacko »

:D demo of the things I described above is downloadable here:
http://www.fileplanet.com/dl.aspx?/plan ... argate.zip
You will find the .map and a .pk3 including the .bsp, the .shader and the textures.

Hope this will help!?
User avatar
mohaa_rox
Field Marshal
Posts: 2760
Joined: Mon Nov 11, 2002 7:05 am
Contact:

Post by mohaa_rox »

Ooh! How did you upload it there?
Live to map, not map to live.
-mohaa_rox, .map
moderator
Shifty
Map Reviewer
Posts: 717
Joined: Sun Dec 15, 2002 11:53 pm
Location: UK
Contact:

Cool

Post by Shifty »

Thanks alot Wacko I can carry on building the gate now :)
.MDT Webmaster, Mapper, Moddeler & Concept Artist
.Map Reviewer
Image
http://www.shiftys-bunker.tk Under Construction
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

mohaa_rox wrote:Ooh! How did you upload it there?
I helped him cheat :wink:
Image
Post Reply