Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / problem with water?

Author
Message
Mugen Wizardry
User Banned
Posted: 18th Aug 2010 15:35
what is wrong with this water?

i can't figure out why its doing this..

see attached pic for info.

CHECK OUT SOME MUSIC FROM MY NEW TECHNO CD! TECHNOKINESIS
http://www.youtube.com/watch?v=4a8KedfgVv0
ALSO, CHECK OUT MY NEW TECHNO CD! http://www.imageposeidon.com/
jeffhuys
20
Years of Service
User Offline
Joined: 24th May 2006
Location: No cheesy line here.
Posted: 18th Aug 2010 16:34
What's wrong with it? I don't see anything wrong. Explain?

James H
19
Years of Service
User Offline
Joined: 21st Apr 2007
Location: St Helens
Posted: 18th Aug 2010 16:36
Is that the blitz version of evolveds water terrain demo? If so I noticed that the BT version doesnt work exactly the same as evolveds; in evolveds demo I can press a key to see reflection/refraction camera image but the water still looks the same, but in the BT version when you press a key to see those textures, the water changes to to the same as your screenshot;where you see the bottom of the skybox instead of the refraction image.
Mugen Wizardry
User Banned
Posted: 18th Aug 2010 18:17
well, look at the attached pic for more info, jeff.

also, yes. its the bt 1

CHECK OUT SOME MUSIC FROM MY NEW TECHNO CD! TECHNOKINESIS
http://www.youtube.com/watch?v=4a8KedfgVv0
ALSO, CHECK OUT MY NEW TECHNO CD! http://www.imageposeidon.com/
Hawkblood
16
Years of Service
User Offline
Joined: 5th Dec 2009
Location:
Posted: 18th Aug 2010 18:37
The clip planes need to be adjusted.

The fastest code is the code never written.
Mugen Wizardry
User Banned
Posted: 18th Aug 2010 19:09
yea that fixed it. but there's 1 more small glitch. do u see how huge the reflection is and how far away? is there any way i can make it reflect close to my player's feet and at the right size?

i attached a pic.

CHECK OUT SOME MUSIC FROM MY NEW TECHNO CD! TECHNOKINESIS
http://www.youtube.com/watch?v=4a8KedfgVv0
ALSO, CHECK OUT MY NEW TECHNO CD! http://www.imageposeidon.com/
luskos
19
Years of Service
User Offline
Joined: 28th Jun 2007
Location:
Posted: 18th Aug 2010 19:18 Edited at: 18th Aug 2010 19:23
@jeffhuys it looks like coffee, that's wrong with it.Just the screenshot isn't that good.Sometimes there could be artefacts reflections from other applications/games that used directx
Normaly i would give you whole code but the problem is that i messed up controls and they don't work as original anymore.In fact they don't work at all.

Try to replace with this code where is necessary :



If you are lazy you can read this thread http://forum.thegamecreators.com/?m=forum_view&t=166720&b=1
then just follow the given link there to solution of this problem.Also jeffhuys can see better what's the real problem in my thread, just look the images.

EDIT: I'm not sure what was original WaterMask.bmp but i think you need to make it all white so the water is clear everywhere.Any color between white and black is gonna make transition between clear and black water more smoother.Basicly all grey nuances.

Coding is My Kung Fu!
And My Kung Fu is better than Yours!
luskos
19
Years of Service
User Offline
Joined: 28th Jun 2007
Location:
Posted: 18th Aug 2010 19:19
It must be something like this with my snippet.I attach 2 images to see above and under water.

Coding is My Kung Fu!
And My Kung Fu is better than Yours!
luskos
19
Years of Service
User Offline
Joined: 28th Jun 2007
Location:
Posted: 18th Aug 2010 19:20
Under!

Coding is My Kung Fu!
And My Kung Fu is better than Yours!
Kira Vakaan
17
Years of Service
User Offline
Joined: 1st Dec 2008
Location: MI, United States
Posted: 18th Aug 2010 22:18
@Mugen: That's not actually a reflection at all. I believe that's what happens when your player is not hidden during the time that the transparency camera is rendered. Basically, during that pass, everything but what's under the water should be hidden, so that none of it appears as if it's "under" the water.

Login to post a reply

Server time is: 2026-07-25 12:04:16
Your offset time is: 2026-07-25 12:04:16