Answered by:
Need sample code for water effect in surface applications

Question
-
Hello everyone,
I want to implement water effect like water attracting application in microsoft surface device.Please suggest me how to do it?
Wednesday, May 15, 2013 5:42 AM
Answers
-
Hi
You asked something that could be not simple. Honestly I never tried it but , about me, there a number of ways of reproducing the effect:
1. By using HLSL lanaguage to design a Pixel Shader. You could use shazzam to design the HLSL.
Shazzam has a sample about Water may help you: install the shazzam, select the "Sample Shaders" tab, and find the "WaveWarper.fx" sample in the list.
YOU can also find a FAQ here.2. By using XNA
3. By using WPF / 3D http://stuff.seans.com/2008/08/21/simple-water-animation-in-wpf/
other link of intrest:
http://blog.pixelingene.com/2006/09/an-improved-water-effect/
Gian Paolo Santopaolo - softwarelab.it - thedarksideof.net
Disclaimer: This post is provided "AS IS" with no warranties, and confer no rights.
- Marked as answer by vivek vaka Wednesday, May 15, 2013 9:12 AM
- Edited by Gian Paolo Santopaolo - Software LabMVP Wednesday, May 15, 2013 9:16 AM
Wednesday, May 15, 2013 8:26 AM
All replies
-
Hi
You asked something that could be not simple. Honestly I never tried it but , about me, there a number of ways of reproducing the effect:
1. By using HLSL lanaguage to design a Pixel Shader. You could use shazzam to design the HLSL.
Shazzam has a sample about Water may help you: install the shazzam, select the "Sample Shaders" tab, and find the "WaveWarper.fx" sample in the list.
YOU can also find a FAQ here.2. By using XNA
3. By using WPF / 3D http://stuff.seans.com/2008/08/21/simple-water-animation-in-wpf/
other link of intrest:
http://blog.pixelingene.com/2006/09/an-improved-water-effect/
Gian Paolo Santopaolo - softwarelab.it - thedarksideof.net
Disclaimer: This post is provided "AS IS" with no warranties, and confer no rights.
- Marked as answer by vivek vaka Wednesday, May 15, 2013 9:12 AM
- Edited by Gian Paolo Santopaolo - Software LabMVP Wednesday, May 15, 2013 9:16 AM
Wednesday, May 15, 2013 8:26 AM -
Thank you for your answer.I will try to implement.Wednesday, May 15, 2013 9:01 AM
-
I have already implemented by using above links. But Effects are not pretty good as i expected.
Wednesday, May 15, 2013 9:31 AM -
Wow
Did you implemented a PixelShader effect in half an hour???? would you like to come and work in my company???
Gian Paolo Santopaolo - softwarelab.it - thedarksideof.net
Disclaimer: This post is provided "AS IS" with no warranties, and confer no rights.Wednesday, May 15, 2013 9:37 AM