sidebar features
sidebar content

Go Back   Blender Artists Forums > Game Engine > Game Engine Resources

Reply
 
Thread Tools
martinsh's Avatar
martinsh martinsh is offline
Member
 
Join Date: Oct 2006
Location: riga, latvia
Posts: 482
I was tinkering with Cube Maps and found a displacement vertex shader in my old Blender demo archives.. and i had an idea to use it to make ocean waves. Im impressed by the speed of the vertex shader, with all the textures and stuff it runs ~400 fps.

There could be problems running this on ATI cards due fresnel thing.. so ill try to figure out how to fake the effect.

screenshots:
forums1.jpg

forums2.jpg

and a blend.

http://pasteall.org/blend/37

or

http://www.savefile.com/files/2080784

--------------------------------------------------------------------
Version 2

water_calm.jpg
water_wavy.jpg
water_stormy.jpg

Controls:
Mouse - look
WASD - move
up/down arrowkeys - change big wave height
mousewheel up/down - change small wave height
left/right arrowkeys - change foam amount
1- ssao only
2- +ssao
3- cromatic aberration
4- bloom

Download blend

http://www.pasteall.org/blend/40

Optimized demo:

Attachment 69645
............................................
www.martinsh.co.nr - gallery is broken..

Blender artworks:
Shotgun
Assault Rifle
Realtime Bathroom Demo
Advanced GLSL 2D Filters

Last edited by martinsh; 19-Apr-09 at 11:09.
#1   Old 18-Apr-09, 01:02   
Reply With Quote


yournamehere's Avatar
yournamehere yournamehere is offline
Member
 
Join Date: Nov 2007
Location: Location: Location
Posts: 1,249
!!

peace,
-nick
............................................
*New* Blender Texture Pack | 128x128 Texture Pack

"You could call Bill Gates a compassionate Pimp"
-Al Capone
#2   Old 18-Apr-09, 01:07   
Reply With Quote
Excalaberr's Avatar
Excalaberr Excalaberr is offline
Member
 
Join Date: Apr 2008
Location: If I only knew...
Posts: 515
!!

Woah!
............................................
Yes, I know how to spell Excalibur.

Check out my games site
and
Existence - My new game. Check it out Here
#3   Old 18-Apr-09, 01:20   
Reply With Quote
bull-frog's Avatar
bull-frog bull-frog is offline
Member
 
Join Date: Nov 2006
Location: Auckland, New Zealand
Posts: 103
Dam I can't see it, got a ATI card :\

Looks awesome!
#4   Old 18-Apr-09, 01:47   
Reply With Quote
torakunsama's Avatar
torakunsama torakunsama is offline
Member
 
Join Date: Dec 2007
Location: Luanda, Angola, Southern Africa
Posts: 293
I still don't get it!!! Why does it run so fast? Martinsh! You ARE AWOESOME!!! You are an inspiration for me !!
I'll use this, defenetly, does it work on spheres?
............................................
Minds to Infinity^3
Working on:
COS
FOTA
Join CinemaBLender
Site: Infinitycreations (WIP)
Artist @ Geist3D
#5   Old 18-Apr-09, 08:05   
Reply With Quote
torakunsama's Avatar
torakunsama torakunsama is offline
Member
 
Join Date: Dec 2007
Location: Luanda, Angola, Southern Africa
Posts: 293
Yes! It Works on spheres!!! I'll finally be able to add more realistic oceans!!!
............................................
Minds to Infinity^3
Working on:
COS
FOTA
Join CinemaBLender
Site: Infinitycreations (WIP)
Artist @ Geist3D
#6   Old 18-Apr-09, 08:35   
Reply With Quote
Moguri's Avatar
Moguri Moguri is offline
Member
 
Join Date: Jun 2008
Location: Spokane, Washington, USA
Posts: 795
Wow! Looks awesome!

I can't get the max fps, due to my graphics card not playing nice or something, but I still cap at 100fps!

OS: Windows 7 Beta
GFX: NVIDIA 8600m GT

Also, file uploading sites can be annoying, especially for a quick blend post. That's why pasteall.org now has a .blend uploader: http://pasteall.org/blend
............................................
* Concept RPG News
* BlenderKart Site
#7   Old 18-Apr-09, 08:41   
Reply With Quote
torakunsama's Avatar
torakunsama torakunsama is offline
Member
 
Join Date: Dec 2007
Location: Luanda, Angola, Southern Africa
Posts: 293
How do you get such fps? I'm stuck at 60 fps, I'm using the standard version obviously.
............................................
Minds to Infinity^3
Working on:
COS
FOTA
Join CinemaBLender
Site: Infinitycreations (WIP)
Artist @ Geist3D
#8   Old 18-Apr-09, 08:57   
Reply With Quote
francoistarlier francoistarlier is offline
Member
 
Join Date: Oct 2008
Posts: 148
and he did it again !
#9   Old 18-Apr-09, 09:33   
Reply With Quote
Jorgie's Avatar
Jorgie Jorgie is offline
Member
 
Join Date: Jan 2006
Location: Stockholm, Sweden
Posts: 191
Absolutely amazing!

It seems to work for me but for some reason I only get 1.217 fps

OS: Windows XP Home edition 2002 SP2
GPU: Geforce 7900 GS
............................................
Portfolio: http://student.nackademin.com/dg08136/

Gameprojects:
Slide Ball
#10   Old 18-Apr-09, 10:05   
Reply With Quote
Larryboy's Avatar
Larryboy Larryboy is offline
Member
 
Join Date: Dec 2006
Location: the garden of England
Posts: 501
75fps for me and thats only because its locked to the monitor frequency..

Absolutley awsome!

XP pro Intel E8400 3GHz, 4GB ram, Nvidia 8600 GT
............................................
'I had a dream, which was not all a dream.' - Lord Byron
#11   Old 18-Apr-09, 10:26   
Reply With Quote
locadax locadax is offline
Member
 
Join Date: Mar 2009
Posts: 52
looks very cool but on my 7600 gt (linux) is extremly slow only 1.5 fps

and some info form terminal

---- Vertex Shader Error ----
0(38) : warning C7011: implicit cast from "int" to "float"
0(38) : warning C7011: implicit cast from "int" to "float"
0(38) : warning C7011: implicit cast from "int" to "float"
0(38) : warning C7011: implicit cast from "int" to "float"
0(38) : warning C7011: implicit cast from "int" to "float"

---- Fragment Shader Error ----
0(17) : warning C7011: implicit cast from "int" to "float"

Last edited by locadax; 18-Apr-09 at 11:39.
#12   Old 18-Apr-09, 11:37   
Reply With Quote
martinsh's Avatar
martinsh martinsh is offline
Member
 
Join Date: Oct 2006
Location: riga, latvia
Posts: 482
Hey thanks Moguri! ill keep the site bookmarked
I wish the Blenderartists forums allowed blend attachments little bigger than 976.6 KB.
3MB would be fine.
here you go:
http://pasteall.org/blend/37
............................................
www.martinsh.co.nr - gallery is broken..

Blender artworks:
Shotgun
Assault Rifle
Realtime Bathroom Demo
Advanced GLSL 2D Filters
#13   Old 18-Apr-09, 11:40   
Reply With Quote
martinsh's Avatar
martinsh martinsh is offline
Member
 
Join Date: Oct 2006
Location: riga, latvia
Posts: 482
Quote:
Originally Posted by locadax View Post
...

and some info form terminal

---- Vertex Shader Error ----
0(38) : warning C7011: implicit cast from "int" to "float"
0(38) : warning C7011: implicit cast from "int" to "float"
0(38) : warning C7011: implicit cast from "int" to "float"
0(38) : warning C7011: implicit cast from "int" to "float"
0(38) : warning C7011: implicit cast from "int" to "float"

---- Fragment Shader Error ----
0(17) : warning C7011: implicit cast from "int" to "float"
Yea i got same errors.. it still works though.

Edir: To see actual framerate, you have to disable V-Sync for Blender in NVIDIA Control Panel (dont know how to do it for ATI cards) and enable "Enable All Frames" in Blender.
............................................
www.martinsh.co.nr - gallery is broken..

Blender artworks:
Shotgun
Assault Rifle
Realtime Bathroom Demo
Advanced GLSL 2D Filters

Last edited by martinsh; 18-Apr-09 at 12:03.
#14   Old 18-Apr-09, 11:46   
Reply With Quote
fobsta fobsta is offline
Member
 
Join Date: May 2004
Location: lOdOn
Posts: 741
Sadly only 2 fps for me

Win XP 32 bit sp 3
Xeon 3ghz and 3.25 gb of ram
Nvidia Quadro FX 550
#15   Old 18-Apr-09, 11:48   
Reply With Quote
mziskandar mziskandar is offline
Member
 
Join Date: Nov 2008
Posts: 117
Not working on Ati9600xt - Solid white ocean..
............................................
Visit my Realtime 3D Projects http://digitalspine.blogspot.com
#16   Old 18-Apr-09, 12:19   
Reply With Quote
JESUSFRK14's Avatar
JESUSFRK14 JESUSFRK14 is offline
Member
 
Join Date: Jul 2007
Location: New York
Posts: 3,146
That's incredible. It looks real.
............................................
BlenderGames - Blender Games, User Uploads, Free Resources, Downloads, & More!
#17   Old 18-Apr-09, 12:24   
Reply With Quote
John_tgh John_tgh is offline
Member
 
Join Date: Dec 2008
Location: New Atlantis
Posts: 203
Wicked sick Now I can finally see my true fps Runs steady at 90 frames over here, but I get these weird artifacts .( Little white lines and dots. Are these the vertex shader errors?
#18   Old 18-Apr-09, 14:38   
Reply With Quote
FunkyWyrm FunkyWyrm is offline
Member
 
Join Date: Dec 2007
Location: Derbyshire, UK
Posts: 797
Looks very nice, but I guess I just found the limits of my GPU.

NVIDIA GeForce Go 7600, 1.2 fps
............................................
Anything is possible ...
#19   Old 18-Apr-09, 15:00   
Reply With Quote
John_tgh John_tgh is offline
Member
 
Join Date: Dec 2008
Location: New Atlantis
Posts: 203
Wait what?! Then there is something wrong with your system.... You should get atleast 20+ frames I'll check around see what I can dig up for you

Edit: I think you should get about 10 frames...hmm... I'll check some more

Last edited by John_tgh; 18-Apr-09 at 15:09.
#20   Old 18-Apr-09, 15:05   
Reply With Quote
Reply

Bookmarks

Thread Tools

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 On
HTML code is Off
Forum Jump


All times are GMT. The time now is 18:09.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Logo and website design copyright © 2006 by froodee design bureau. All rights reserved.
Other Blender Sites
new icon Blender Homepage »
The official Blender homepage
new icon BlenderNation »
Fresh Blender News, Every Day
new icon Blenderart Magazine »
Blender articles, tutorials and images.
Blender Headlines
Featured Artwork
Short animation: Barrel by Phlopper
Woolly mammoth by sebastian_k
Photorealistic classic furniture by eMirage
Social BlenderArtists