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 / Shaderless water surface with wake effects

Author
Message
CuCuMBeR
23
Years of Service
User Offline
Joined: 11th Jan 2003
Location: Turkey
Posted: 7th Aug 2006 13:18
CuCuMBeR
23
Years of Service
User Offline
Joined: 11th Jan 2003
Location: Turkey
Posted: 7th Aug 2006 15:57
Here is a photo for lazy ones
Sixty Squares
20
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the world
Posted: 7th Aug 2006 17:14
The picture looks nice, but I have no "plain.x"

CuCuMBeR
23
Years of Service
User Offline
Joined: 11th Jan 2003
Location: Turkey
Posted: 7th Aug 2006 17:40
uhmm sorry, here it is in the attachment, add this one to the media above..
CuCuMBeR
23
Years of Service
User Offline
Joined: 11th Jan 2003
Location: Turkey
Posted: 7th Aug 2006 21:15
uhmm..75 views and not one comment..i do start to believe i should stop giving out to this community.
Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 8th Aug 2006 00:19
Quote: "The picture looks nice, but I have no "plain.x"
"


That looks like a comment to me - and perhaps everyone else had the same comment and thought they would save everyone's time.

Keep your posts coming ...
Jack
21
Years of Service
User Offline
Joined: 4th Oct 2004
Location: [Germany]
Posted: 8th Aug 2006 00:47 Edited at: 8th Aug 2006 00:48
Try the Snippet board

EDIT: Dont worry, be happy.

Alquerian
20
Years of Service
User Offline
Joined: 29th Mar 2006
Location: Reno Nevada
Posted: 8th Aug 2006 02:18
I think it looks quite nice Cucumber . At very least I learned a little about the dds format from looking it up on the nvidia site thanks to you

"We are what we repeatedly do. Excellence, therefore, is not an act, but a habit." - Aristotle
Zedane
21
Years of Service
User Offline
Joined: 3rd Nov 2004
Location: Milky Way, Earth
Posted: 8th Aug 2006 02:58 Edited at: 8th Aug 2006 03:08
odd..my crappy thinkpad can't handle this...the water doesn't animate and just looks like a transparent plain. must be the dds format.


around here.. normal's just a setting on a hair dryer
David iz cool
20
Years of Service
User Offline
Joined: 21st Sep 2005
Location: somewhere lol :P
Posted: 8th Aug 2006 07:07
yea,i tested it too.didnt see anything animating.
trogdor
23
Years of Service
User Offline
Joined: 15th Apr 2003
Location: Portsmouth, VA, USA
Posted: 8th Aug 2006 07:36
it animated on my laptop but it did not look as nice as CuCuMBeR's screen shot. It got me curious about the dds format though. Thanks.

I'll try it on my gaming machine, and I need a new laptop...
Uncle Sam
20
Years of Service
User Offline
Joined: 23rd Jul 2005
Location: West Coast, USA
Posted: 8th Aug 2006 07:42
Yuk.

Uncle Sam
Nvidia Geforce 7600 GS 256MB PCIEx, 2.66 GHZ Pentium 4 proccessor, 768MB RAM
Need particles? Click here!
CuCuMBeR
23
Years of Service
User Offline
Joined: 11th Jan 2003
Location: Turkey
Posted: 8th Aug 2006 09:40
So it doesnt work for most of you guys?
My computers specifics are:
p4 2.4Ghz
766mb ram
nvidia geforce fx 5200le (128mb ram)
dx version june 2006
latest drivers for everything.

tried it on co-workers computer:
p4 3.0Ghz (the only difference)
766mb ram
nvidia geforce fx 5200le (128mb ram)
dx version june 2006
latest drivers for everything.

and it works same...
CuCuMBeR
23
Years of Service
User Offline
Joined: 11th Jan 2003
Location: Turkey
Posted: 8th Aug 2006 09:43
i dont think its about dds file, its an a8r8g8b8 with 9 mip map levels.
probably your graphics cards cant handle the blend mapping operations, so the purpose of making a shaderless water is useless as it seems.
thanks anyways.
trogdor
23
Years of Service
User Offline
Joined: 15th Apr 2003
Location: Portsmouth, VA, USA
Posted: 8th Aug 2006 19:13
Quote: "probably your graphics cards cant handle the blend mapping operations"


Yep, its those cards.

I tried it on my gaming machines FX/Quadro it worked fine. I dont know if there is a card that does not support shaders but support the blend mapping operations.


Quote: "so the purpose of making a shaderless water is useless as it seems.
"


Nothing is useless (except for those sticky tape strips they seal DVD cases with... I hate those).

I learned something new
Fallout
23
Years of Service
User Offline
Joined: 1st Sep 2002
Location: Basingstoke, England
Posted: 8th Aug 2006 19:21
I was one of the lazy ones. I would definitely recommend posting a short video of it in action to encourage lazy ones to look. Still pictures don't show any of the animation.

CuCuMBeR
23
Years of Service
User Offline
Joined: 11th Jan 2003
Location: Turkey
Posted: 8th Aug 2006 19:49
Fallout:
Video would be larger than the media file you should download and test yourself.
And i need people who will try the code and see if it works for them anyways, not lazy ones.
DrReaper
23
Years of Service
User Offline
Joined: 5th Feb 2003
Location: United States
Posted: 9th Aug 2006 04:29 Edited at: 9th Aug 2006 04:29
Good work. I see you followed the same skybox tutorial I did. Its so close to the one I made I thought you hacked my computer. lol

Not as nice a quality as say Silent Hunter 3 but you are making progress. I think silent hunter 3 sets the bar for water so don't be discouraged by the comparison.
Freddix
AGK Developer
23
Years of Service
User Offline
Joined: 19th Sep 2002
Location: France
Posted: 9th Aug 2006 11:16
it work nice and well animated on my computer :p
good work, your water is nice

All we have to decide is what to do with the time that is given to us.
Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 9th Aug 2006 12:20 Edited at: 9th Aug 2006 12:29
Just stopped being lazy - it worked fine (gfx card: nvidia geforce fx 5200, 128mb ram). FPS of 95 on my machine.

One comment: the textures may need tweaking a bit so you don't see the joins. I could see lines in places where the textures repeat.

Like some others, I've learnt a bit from this - such as there seems to be something called DirectX Texture Tool on my machine. Havn't worked out what to do with it yet ...

Edit: (A second comment) Something goes wrong with the images when you look straight down at the water - see the attached screenshot. The following correction to your code solves the problem:



2nd edit: I got an fps of about 110 by adding sync rate 0 to your code.
Fallout
23
Years of Service
User Offline
Joined: 1st Sep 2002
Location: Basingstoke, England
Posted: 9th Aug 2006 13:57
Works fine here. I think it looks best from a reasonable distance above. It'd be good as a shore line water effect, perhaps in a flight sim. I thought the sin motion of the UV layer looked a bit odd though, so I changed it to a linear movement perpendicular to what appeared to be the wake crashing and it looked much better. Looked like waves rolling into towards the shore.

CuCuMBeR
23
Years of Service
User Offline
Joined: 11th Jan 2003
Location: Turkey
Posted: 9th Aug 2006 15:23 Edited at: 9th Aug 2006 15:29
Gandalf:
use your mouse to move around, that image happens because the camera near clipping is set to default which is 1 i think and if you dont move, as ur floating at the 0,1,0 those clippings will occur.
whether move around or just add this command at the beginning SET CAMERA RANGE 0.1, 5000 (or whatever suits you)
EDIT: about the lines on the texture, its because waves.bmp is not seamless, i just picked it up from somewhere on the net. make your own seamless texture and it will look better.
EDIT2: directx texture tool helps you create new textures for your directx applications easily. you can make cube maps, normal textures with as much mipmaps as you need, and volume maps..etc.
right now im trying to find a way to make volume fog with the volume maps, but without any help i cant progress.
Marvey
23
Years of Service
User Offline
Joined: 15th Oct 2002
Location:
Posted: 9th Aug 2006 15:42
good work cucumber work well here!
David iz cool
20
Years of Service
User Offline
Joined: 21st Sep 2005
Location: somewhere lol :P
Posted: 9th Aug 2006 16:14
finally worked for me,guess i needed your plain.pretty cool!
Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 9th Aug 2006 18:40
Quote: "Gandalf:
use your mouse to move around, that image happens because the camera near clipping is set to default which is 1 i think and if you dont move, as ur floating at the 0,1,0 those clippings will occur.
"


Er, thanks. Perhaps I should have read the instructions given in the code ...

It works nicely without my amendment as you say.
Virtual Nomad
Moderator
20
Years of Service
User Offline
Joined: 14th Dec 2005
Location: SF Bay Area, USA
Posted: 9th Aug 2006 23:27 Edited at: 10th Aug 2006 00:10
after changing "Sky.x" to "sky.x" everything ran fine. very nice water. please note my older system and that i still managed 200-300 FPS (w/ simple movement code implemented). good stuff, cucumber!

edit: noticed you already have movement code btw, for statistical purposes, viewing entire object from above offered ~50 FPS. again, i've got an older system so this is more than adequate/efficient to me. thanks for sharing

edit2: added short video (< 1 meg) for anyone who wants to view it. (use DL button)

added 2.5Mb 640x480 .WMV here > http://home.comcast.net/~virtualnomad/ocean2.wmv

Virtual Nomad
Athlon XP1800+, Windows XP+SP2, Soyo K7V Dragon+ MB, 1.5Gb 333 RAM, ATI Radeon 8700LT (128Mb)
JABBER
21
Years of Service
User Offline
Joined: 22nd Dec 2004
Location: Indiana, USA
Posted: 10th Sep 2006 01:07
I love it CuCuMBeR, I've been trying to get water to look like this, but I'm at the begining of the learning curve.
BTW is this avilable for use? I'm working on a naval combat sim and this water would be perfect. If not thanks for the lesson in scrolling textures! JABBER

Retired DEV team member Targetware.net
Retired DEV team memeber BF 1918 MOD
http://hosted.filefront.com/JABBER1975
White knight
21
Years of Service
User Offline
Joined: 31st Dec 2004
Location:
Posted: 5th Jan 2007 10:10
this is a nice shaderless demo keep up the good work make some more different ones for us.

abcd
Gnomes Games
20
Years of Service
User Offline
Joined: 25th Dec 2005
Location: FRANCE
Posted: 24th Apr 2007 12:16
Thanks a lot CuCuMBeR !!!
I was looking for something like that for a long time !

AMD Athlon 64 3400+/1 Go DDR/Ati X600 512 Mo/260 Go HD/Windows XP SP2/DirectX 9.0c (October 2006)/Dark Basic Pro 6.0 RC10
Sorry for my so bad english...

Login to post a reply

Server time is: 2026-06-11 11:35:57
Your offset time is: 2026-06-11 11:35:57