lfnetwork.com mark read register faq members calendar
Thread: Creating some waving water where you can actually swim... impossible?
Thread Tools Display Modes
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum.
Old 04-25-2004, 11:26 AM   #1
zeimi
 
zeimi's Avatar
 
Join Date: Jul 2003
Location: Finland
Posts: 68
Creating some waving water where you can actually swim... impossible?

I tried to create water with deformvertexes wave. The waves look pretty nice but the water doesn't feel water meaning it's impossible to swim in it (player trying to swim falls to the bottom of the pool).
I used the following shader code, which works wonders if the red line is removed:

textures/jedi/water
{
qer_editorimage textures/yavin/water1
surfaceparm nonsolid
surfaceparm nonopaque
surfaceparm water
surfaceparm fog
surfaceparm trans
q3map_material Water
q3map_nolightmap
q3map_onlyvertexlighting
fogparms ( 0.145098 0.192157 0.0431373 ) 512.0
deformvertexes wave 50 sin 0 2.5 0 0.35
{
map textures/yavin/water1
blendFunc GL_ONE GL_ONE_MINUS_SRC_ALPHA
rgbGen exactVertex
alphaGen const 0.9
tcMod turb 0 0.08 0.04 0.08
tcMod scroll -0.05 -0.001
tcMod scale 3 3
}
{
map textures/yavin/water1
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
alphaGen const 0.33
tcMod turb 0 0.08 0.04 0.08
tcMod scale 3 3
}
{
map textures/yavin/water_test
blendFunc GL_DST_COLOR GL_ONE
tcMod scale 3 3
tcMod scroll 0.05 0.1
}
{
map textures/common/stars
blendFunc GL_ONE GL_ONE
rgbGen wave sin 0 1 0 0.5
}
}

Is there something I should fix or does anyone have a working waving water shader?

Last edited by zeimi; 04-25-2004 at 12:04 PM.
zeimi is offline   you may: quote & reply,
Old 04-25-2004, 11:42 AM   #2
jon_hill987
Need BF Points!
 
jon_hill987's Avatar
 
Join Date: Feb 2004
Posts: 1,914
Current Game: BattleForge
I cant really help you but In parts of ST: Voyager Elite Force, there was water with waves that you could swim in and that was done with Q3 so it should be possable in JA.




jon_hill987 is offline   you may: quote & reply,
Old 04-25-2004, 01:45 PM   #3
WadeV1589
Veteran
 
WadeV1589's Avatar
 
Join Date: Sep 2003
Location: Leeds, UK
Posts: 952
Make a brush covered in system/caulk_water then texture the top face only with this shader...remember to add the name of the shader file to shaderlist.txt in order for Q3Map2 to actually recognise it's a shader and compile it as water as well!


StargateMods.com - collaborating all the Stargate mods out there.

SG4RealJA - get a bit of SG realism!
SGEgyptJA - flying and dialing a gate only to be killed by it!
WadeV1589 is offline   you may: quote & reply,
Old 04-25-2004, 03:01 PM   #4
ros_Exo
Rookie
 
ros_Exo's Avatar
 
Join Date: Apr 2004
Posts: 42
well I saw this mod that you use hydroball

look at Dragon ( its a map) it uses it in the water
ros_Exo is offline   you may: quote & reply,
Old 04-25-2004, 03:08 PM   #5
zeimi
 
zeimi's Avatar
 
Join Date: Jul 2003
Location: Finland
Posts: 68
Thank you Wade, that did the trick!
zeimi is offline   you may: quote & reply,
Old 05-03-2004, 01:04 AM   #6
Chewie Bakker
 
Chewie Bakker's Avatar
 
Join Date: Apr 2002
Location: Melbourne, Australia
Posts: 373
Smile Excellent

Wavey water'd be cool.

[COLOR=Royal blue]The Force will be with you, always.[/color]


"Chewie" Bakker
Chewie Bakker is offline   you may: quote & reply,
Old 05-04-2004, 11:25 PM   #7
shukrallah
White Dragon
 
shukrallah's Avatar
 
Join Date: Nov 2002
Posts: 3,244
So, what does caulk_water do? I didnt think it mattered, untill someone made a comment on my Dark Crypt map, saying "I noticed you didnt use Caulk_water" or something like that... how could he know? Does the water 'act' better, look better, what?

shukrallah is offline   you may: quote & reply,
Old 05-05-2004, 02:28 PM   #8
zag
Rookie
 
zag's Avatar
 
Join Date: Sep 2003
Location: england
Posts: 80
i think its cos on the sides of the water brush you can see the water shader
zag is offline   you may: quote & reply,
Old 05-05-2004, 09:33 PM   #9
EvilJedi
Rookie
 
EvilJedi's Avatar
 
Join Date: Apr 2004
Posts: 154
I'm pretty sure it's for the splashing part or the drowning that you use system/caulk_water, just like you need to use system/caulk_lava the same way. Zeimi used system/caulk_nonsolid im pretty sure, which is what people believe you should do because Richdiesal says you should do this. Trust me it just makes the thing... well... nonsolid... I think this worked in JK2 but I'm not sure since I never mapped for JK2
EvilJedi is offline   you may: quote & reply,
Old 05-06-2004, 07:15 AM   #10
WadeV1589
Veteran
 
WadeV1589's Avatar
 
Join Date: Sep 2003
Location: Leeds, UK
Posts: 952
caulk_water ensures the brush will act as water, caulk_lava will ensure the brush will act as lava. If you use caulk_nonsolid or nodraw then there is a chance that the brush will come out just being nonsolid with one surface looking like water but the entire brush not acting like water.


StargateMods.com - collaborating all the Stargate mods out there.

SG4RealJA - get a bit of SG realism!
SGEgyptJA - flying and dialing a gate only to be killed by it!
WadeV1589 is offline   you may: quote & reply,
Old 05-06-2004, 10:50 PM   #11
EvilJedi
Rookie
 
EvilJedi's Avatar
 
Join Date: Apr 2004
Posts: 154
I think the "acting like water" in some cases comes from the water shader
EvilJedi is offline   you may: quote & reply,
Old 05-07-2004, 10:29 AM   #12
WadeV1589
Veteran
 
WadeV1589's Avatar
 
Join Date: Sep 2003
Location: Leeds, UK
Posts: 952
Where else would it come from....?


StargateMods.com - collaborating all the Stargate mods out there.

SG4RealJA - get a bit of SG realism!
SGEgyptJA - flying and dialing a gate only to be killed by it!
WadeV1589 is offline   you may: quote & reply,
Old 05-07-2004, 04:33 PM   #13
GothiX
Ocean Soul
 
GothiX's Avatar
 
Join Date: Aug 2003
Location: Just a journey away
Posts: 1,906
From pie. Mmmmm, pie!

..what?


GothiX is offline   you may: quote & reply,
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum.
Go Back   LucasForums > Network > JediKnight Series > Editing Central > JA Mapping > Creating some waving water where you can actually swim... impossible?

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:05 PM.


LFNetwork, LLC ©2002-2010 - All rights reserved.
Powered by vBulletin®
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.