Langerd Posted December 18, 2014 Posted December 18, 2014 I have a question about one thing. When i am in the water the screen is full blue to fade the sight underwater. But i wanted to make screenshots so i typed in the console cg_draw2d 0 to make hud disapear. But the underwater effect disapearesd too.So from observation i think this is a shader or texture. Where it is? Because this blue effect look unrealistic - want to change it a bit
ent Posted December 19, 2014 Posted December 19, 2014 Hardcoded, it does not use .shader files. As an alternative, you can type in the console cg_draw, click [TAB] key and see all the cvars that you can toggle with 0 value to hide most on-screen elements. P.S.: jaMME and OpenJK fix very opaque underwater video effect, btw. Langerd likes this
Langerd Posted December 20, 2014 Author Posted December 20, 2014 Srsly??? So why it disapears after this cheat? It should only effect on the gfx shaders
Solution Didz Posted December 20, 2014 Solution Posted December 20, 2014 The blue overlay gets drawn in the code while its drawing all the other 2D stuff. All it is is a rectangle stretched to cover the screen, tinted with a blue colour and some transparency. The colour/transparency is hard-coded in the client code. Langerd likes this
Langerd Posted December 20, 2014 Author Posted December 20, 2014 Ok many thanks guys for answers!Damn... this effect looks cheap :S Ramikad likes this
Ramikad Posted December 20, 2014 Posted December 20, 2014 Yeah... it almost feels to me that it's ported directly from Mysteries of the Sith. The slight FOV changes that simulate the underwater effect, the color... Would have been awesome if any type of water could have its own underwater effect code in the shader file.
Oobah Posted December 20, 2014 Posted December 20, 2014 JO actually had some different underwater effects, yavin based SP maps had green underwater for some areas for example. Might of just been some code they took out or probably something they had setup that could be read in the shader information for what texture to utilize for underwater effects. JA they might of felt it was a waste of effort less perhaps it's still left in game just not used at all.
Langerd Posted December 20, 2014 Author Posted December 20, 2014 If you are in the slime in vjun map this effect is green. When you are in lava it is orange.The only idea i have is to use the fog to make it possible but still the blue shitty effect stay
ensiform Posted December 21, 2014 Posted December 21, 2014 JO actually had some different underwater effects, yavin based SP maps had green underwater for some areas for example. Might of just been some code they took out or probably something they had setup that could be read in the shader information for what texture to utilize for underwater effects. JA they might of felt it was a waste of effort less perhaps it's still left in game just not used at all.JO has no underwater effects at all. The screen effects were added explicitly to JA, and poorly. What you are asking is simply not possible. The only information you get is the contents flag.
Asgarath83 Posted December 21, 2014 Posted December 21, 2014 For a swamp map i maked years ago i changed the muddy water shader and the water got a brown fog when player swim inside. Langerd likes this
ensiform Posted December 22, 2014 Posted December 22, 2014 For a swamp map i maked years ago i changed the muddy water shader and the water got a brown fog when player swim inside. This has absolutely nothing to do with the 2d screen effect. This is simply you putting fog in the water shader, or separate fog brush in the water.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now