@ZER0H8CK It's normal mapping and fersnel lighting calculation to get the water's color and reflection amount. The normal map is only used to provide the surface normal the rest is used to calculate the fresnel term.
Beautiful use of the water shaders. Have you actually made and completed any games?? I see alot of great people on Youtube with XNA but no great games being made! Lets see these demos/test runs put to use!
@sedativechunk I have two games out on XBLIG ("Plows in Hell" and "Hive"). Both of them were made for the DreamBuildPlay competitions. I put all my projects on hold and I am working on another game for DBP 2011 right now, I started that project only 2 months ago. As for using the water shader, it is currently being used in two unfinished projects that I hope to go back to working on later this year.
@Infinity9263 you must be joking right this was made by a person a.k.a normal user and crysis water and other stuff was made by a team and a big team with game designers,programmers etc etc , you can´t compare the two things!!!!
@rcorreia23 You are totally right. And Crysis in partcular, last I read that game is sporting over 2,000,000 lines of programming. It took me a year to write about 12,000 lines of code for a game I am working on. It's not really about the lines of code but to make a quality product, it takes a team to write something the size of Crysis. The demo here youtube is great work for one man, if this guy worked with a team he could probably accomplish great things just like Crysis.
xna is a great tool. Unfortunatley I'm only doing visual basic in my computing class and C# is quite different. It took me an hour to get a sprite to bounce around a screen. Next up is getting some sort of input lol. It's hard, but seeing your stick man bounce around a screen is as satisfying as any high score you get in any other game.
What do you mean you can't "open" XNA? It's not a program, lol. It's a bunch of libraries of code (for C#/.NET), aka a graphics API (application programming interface). Do you have Visual Studio or at least Visual C# Express? If not, get it, and pick up some C# programming books or read tutorials. You have to write your own code. This isn't some Warcraft level designer. ;)
When I was 16 I was one of those kids but XNA was not around. It was before 3D hardware started showing up on the market, I was writting my own 3D wireframe engine though.
This water code was just a port of my water code from DirectX. It only took a weekend to implement the original code and porting was negligible.
Hi. I'm thinking of making XNA games, hopefully making a little money, but I know absolutely NOTHING about C, C++, or C# coding. Can someone tell me what programs and applications I'll need to get a basic game running? I would like to know some things that let me do the building of characters and other content. If someone knows tutorials, please let me know.
There are many online tutorials that you can use to learn all those languages. If you want i can mail you the links seeing as I cant post links on here.
I'm sorry not hating but...this looks like Far Cry Instincts Predator's Map maker. Far Cry Instincts Predator is an xbox 360 game. Not only that but they give you an island and a body of water that surrounds it. I don't know how you did it but I suspect the coding may have been lifted from that...
Nope no relation at all with farcry, never even seen the code. This is just a water shader I did a while ago in directX and recoded it for XNA. I'm still missing: polygonal waves, object reflection and refractions.
My pixel shader for this water only has 20 lines of code, it's very simple. It is implemented by interpolating between the sky's reflection (on a surface normalmap) and the deep water color. Look up fresnel to get the value of how much to interpolate by the camera/watersurface angle.
I'm looking for a water shader for my own xna game, any chance I could take a look at those lines of code? I won't rip them directly, just take some 'inspiration' lol.
Calculate a fake fresnel term, this is an approximation but looks good enough, the best would be a lookup table. This shader was just a proof of concept and can be improved heavily.
Great shader. Just work on your shorelines. Have the engine draw a shoreline-wave decal where the water intersects a certain type of object, such as ground, and make your ground well... Ground. lol.
That's better than most games on the market at the mo, to be honest. Absolutely brilliant water effect. If it weren't for the island, I'd say it was real
¨THIS IS FROM FAR CRY INSTINKS TAK BACHA
Werewolf3415 3 weeks ago
minecraft
totte654 1 month ago
wtf not even minecraft...weird.
Dennis060796 1 month ago
This has been flagged as spam show
I only wait on crazy people whose building a parc like disneyland out of MINECRFT :D!!!!!!!!!!!!!!!!
SuperFelyx 1 month ago
THIS IS MINECRAFT!
BloxinPwners 2 months ago
make minecraft look like this.
olivebates 2 months ago
This has been flagged as spam show
Hey, this is not Minecraft!
Kritoci 2 months ago
Comment removed
Kritoci 2 months ago
Looks like ice.
4SKILLERSde 2 months ago
I think this is just normal mapping ;) not very difficult
ZER0H8CK 5 months ago
@ZER0H8CK It's normal mapping and fersnel lighting calculation to get the water's color and reflection amount. The normal map is only used to provide the surface normal the rest is used to calculate the fresnel term.
handkor 5 months ago
@handkor Can you please show the code of your shader program?
Pavel1915 2 months ago
@Pavel1915 From a post 3 years ago, this is all you needs:
float fresnel =clamp(1.0-pow(dot(R,WSBumpNormal),0.375),0,1);
float4 final_color = lerp(deepWaterColor, 0.45*cubeMap+surfaceWaterColor*0.6,fresnel);
Where R is the reflected view vector and WSBumpNormal is your world space surface normal.
HDR Cubemap works best for creating the nice glowing spots. There is also a bloom pass in post process.
handkor 1 month ago
Very nice.
Are you going to share the source for this?
TyrannusBestia 6 months ago
Great looking water now if we could just have a volcano on that island :)
XnaZenfar 7 months ago
do i have to know how to do windows based aplications to start with xna ?i just know how to make console based aplications not windows..anyone ?
yandykun 8 months ago
@yandykun No, the templates to start an XNA project a pretty much self contained. Starting an empty game project does not have much overhead.
handkor 8 months ago
Beautiful use of the water shaders. Have you actually made and completed any games?? I see alot of great people on Youtube with XNA but no great games being made! Lets see these demos/test runs put to use!
sedativechunk 8 months ago
@sedativechunk I have two games out on XBLIG ("Plows in Hell" and "Hive"). Both of them were made for the DreamBuildPlay competitions. I put all my projects on hold and I am working on another game for DBP 2011 right now, I started that project only 2 months ago. As for using the water shader, it is currently being used in two unfinished projects that I hope to go back to working on later this year.
handkor 8 months ago
LOL! You're Jesus!
chatoxl 10 months ago
Looks better than Spore. :D Nice job, man! 55555/5
22WestProductions 1 year ago
it looks like plastic
oldfart74 1 year ago
Good start, but the scaling of the water doesn't suit the island - needs waves
beugnen 1 year ago
better than cryengine for sure..
nokillings 1 year ago
@nokillings It's really worstly then water in crysis. Waves in real world are more sharp. See anything video of sea. Sorry for my bad english -_^
Infinity9263 1 year ago
@Infinity9263 you must be joking right this was made by a person a.k.a normal user and crysis water and other stuff was made by a team and a big team with game designers,programmers etc etc , you can´t compare the two things!!!!
rcorreia23 11 months ago
@rcorreia23 You are totally right. And Crysis in partcular, last I read that game is sporting over 2,000,000 lines of programming. It took me a year to write about 12,000 lines of code for a game I am working on. It's not really about the lines of code but to make a quality product, it takes a team to write something the size of Crysis. The demo here youtube is great work for one man, if this guy worked with a team he could probably accomplish great things just like Crysis.
sedativechunk 8 months ago
That's what I call water! Nice!
DeadCatStudios 1 year ago
Looks nice :D
MeLL1eJ 1 year ago
This is very nice my friend
computertrick 1 year ago
Nice looking water but you need some edge smoothing to stop the harsh lines appearing at the edges of the water
Mirosta1504 1 year ago
looks more like frozen water
wayofthemetal 1 year ago 3
Hey just wondering: do XNA games for the 360 force it to restart like on my Zune? It seems impractical for a console, but I am curious.
tchaf14 1 year ago
No they run like XBLA games and when you exit you are back on the dashboard.
handkor 1 year ago 4
What's XNA?
qaz474 1 year ago
free API released by microsoft to make games for Xbox Live Indie Games.
handkor 1 year ago
Oh I wouldn't ussauly know this stuff. I'm more of a Sony person.
qaz474 1 year ago
a framework for programming... (managed directX)
lRever 1 year ago
Thx for telling me. :)
qaz474 1 year ago
its the Microsoft Game Developer Kit for Pc, zune, and Xbox 360
ReddHarlemX1 1 year ago
not bad...but kinda looks like jelly
alin116 2 years ago
xna is a great tool. Unfortunatley I'm only doing visual basic in my computing class and C# is quite different. It took me an hour to get a sprite to bounce around a screen. Next up is getting some sort of input lol. It's hard, but seeing your stick man bounce around a screen is as satisfying as any high score you get in any other game.
goldendisc 2 years ago
Wow it made me thirsty. Thats some damn fine water you got there
goldendisc 2 years ago 27
Mhhh salt water :P
DakaSha 2 years ago
This comment has received too many negative votes show
very nice lol i just downloaded xna but i cant open it up!!!! help plz
ripperrhino 2 years ago
What do you mean you can't "open" XNA? It's not a program, lol. It's a bunch of libraries of code (for C#/.NET), aka a graphics API (application programming interface). Do you have Visual Studio or at least Visual C# Express? If not, get it, and pick up some C# programming books or read tutorials. You have to write your own code. This isn't some Warcraft level designer. ;)
defacto109 2 years ago 21
dw i can do it now
ripperrhino 2 years ago
When I was 16 I was one of those kids but XNA was not around. It was before 3D hardware started showing up on the market, I was writting my own 3D wireframe engine though.
This water code was just a port of my water code from DirectX. It only took a weekend to implement the original code and porting was negligible.
handkor 2 years ago
could you link us up to a tutorial or something? i can't really find any good tutorials :/.
iamjoseph951 2 years ago
Look up fresnel and water inyour search. I think ATI's developper section had a good paper on it.
handkor 2 years ago
Nice kid i belive you good job great though with the graphics
subpower1 2 years ago
Wow man nice water you got there :P
BFHstunts 2 years ago
Holy crap! That looks awesome.
YesYou123333 2 years ago
Thats sick man
cjoII2 2 years ago
COLD AS IDE
252LifePL 2 years ago 2
Nice job! Great shader!
RatmanXX 2 years ago
can i have the shader?
SammyIsOnline 2 years ago
how would you do waves against the shore? make a new animated mesh, or try to do more shader stuff?
vahanpwns 2 years ago
Probably in the shader based on the current depth.
handkor 2 years ago
good job! man
diamondCM 2 years ago
WANTIE SOURCIE -- Or make a tut =D
ZdenekProductions 2 years ago 2
Wow, that's awesome! Good job :D
super6plx 2 years ago
OMG!!
Exotic47 3 years ago 2
is that with vertex displacement? or just pixel shader?
matieman77 3 years ago
Just pixel shader, no displacement.
handkor 3 years ago
but it looks so 3D!
lol
and did u do cubemap reflection, mirror reflection or is there no reflection at all?
crapmaker6 3 years ago
Cubemap reflection with HDR. The bumpiness is normalmapping and parallax mapping.
handkor 3 years ago
new crysis ? hahahah :P
brunomuitcholoko 3 years ago 2
WaKaKaKa
TheVintageGamer 3 years ago
Good ! Well Done
dotnetprogrammer90 3 years ago 2
that looks so good
Pineapple177 3 years ago 2
wow that is beautiful
hackmantuts 3 years ago
I am jealous...
Im happy that im starting with C# so I can do games like this :)!
herospy0 3 years ago
sexi water =D
Xaeias 3 years ago
Hi. I'm thinking of making XNA games, hopefully making a little money, but I know absolutely NOTHING about C, C++, or C# coding. Can someone tell me what programs and applications I'll need to get a basic game running? I would like to know some things that let me do the building of characters and other content. If someone knows tutorials, please let me know.
Jaketheleopard 3 years ago
Umm I know someone that knows about a lot of resources ...
Its name is .. Google.. Have you heard about him?..
deuteriosband 3 years ago
There are many online tutorials that you can use to learn all those languages. If you want i can mail you the links seeing as I cant post links on here.
pongallday 3 years ago
please mail me some : extremuscc @ hotmail . com
NoSpiritInMe 3 years ago
what do you use to make such terrains?
wisam91 3 years ago
holy crap, looks really good
Genwhite384 3 years ago
im struggling to put a 2D background on my game I just started lol
but where do you guys get your game content like textures, models, and other graphical assets.
oasiac 3 years ago 2
Ohhhhhhhh...
Argon165 3 years ago
Looks wonderful
bender970 3 years ago
The water needs some animations. Something that will cure that ice look to it.
Sig606 3 years ago
SM2.0
handkor 3 years ago
I'm sorry not hating but...this looks like Far Cry Instincts Predator's Map maker. Far Cry Instincts Predator is an xbox 360 game. Not only that but they give you an island and a body of water that surrounds it. I don't know how you did it but I suspect the coding may have been lifted from that...
G31G3R 4 years ago
Nope no relation at all with farcry, never even seen the code. This is just a water shader I did a while ago in directX and recoded it for XNA. I'm still missing: polygonal waves, object reflection and refractions.
My pixel shader for this water only has 20 lines of code, it's very simple. It is implemented by interpolating between the sky's reflection (on a surface normalmap) and the deep water color. Look up fresnel to get the value of how much to interpolate by the camera/watersurface angle.
handkor 4 years ago
I'm looking for a water shader for my own xna game, any chance I could take a look at those lines of code? I won't rip them directly, just take some 'inspiration' lol.
molewizard 3 years ago
Calculate a fake fresnel term, this is an approximation but looks good enough, the best would be a lookup table. This shader was just a proof of concept and can be improved heavily.
float fresnel =clamp(1.0-pow(dot(R,WSBumpNormal),0.375),0,1);
float4 final_color = lerp(deepWaterColor, 0.45*cubeMap+surfaceWaterColor*0.6,fresnel);
HDR Cubemap works best for creating the nice glowing spots. There is also a bloom pass in post process.
handkor 3 years ago
Aaah, thanks for that. I'll let you know when I implement it. ;)
molewizard 3 years ago
The Far Cry IP water shader is much different, it's more transparent too.
mobius1aic 3 years ago
ps for all the people who don't do code out there, bump maping isn't polygons. It's much better :P
codekramer 4 years ago
AWESOME
noname180795 4 years ago
awsome, can you show me how do that?
matieman77 4 years ago
Great shader. Just work on your shorelines. Have the engine draw a shoreline-wave decal where the water intersects a certain type of object, such as ground, and make your ground well... Ground. lol.
neills 4 years ago
Wow, very cool how to you get the light to reflect off the bumps in the water like that?
halogenetor 4 years ago
Its a pixel shader that passes a bump bapping shader before calculating the specular (ie that white light shining off the water)
PS: Really nice water shader, and good Pixel Sun Reflection, looks really nice ;)
devosbi 4 years ago
Greate water effect, the horizon looks pretty nice too!
maortega 4 years ago
But how did you do this?
Denommus 4 years ago
Amazing!
Denommus 4 years ago
looks pretty good!
any chance you'd be able to share how it was done?(this was 5 months ago so who knows if you still have)
hughmanwho 4 years ago
Looks cool but looks a little like ice though
jrlcgmx 4 years ago
That's better than most games on the market at the mo, to be honest. Absolutely brilliant water effect. If it weren't for the island, I'd say it was real
H2OStudios 5 years ago
That is pretty close up at the beginning, the camera is at about the height of a person's head if he was standing on the water.
handkor 5 years ago
Awesome. Love the water shader. Certainly looks good from a distance. What is it like close up?
duckocide 5 years ago