Web Sockets in HTML 5
HTML5 WebSockets, defines a full-duplex communication channel that operates through a single socket over the web. WebSocket is not just another incremental enhancement to conventional HTTP communications, it represents a large advance, especially for real-time, event driven web applications.
Normally when a browser visits a web page, an HTTP request is sent to the web server that hosts that page. The web server acknowledges this request and sends back the response.
Water Simulation
Its been a while since my last post, had been busy with office work…sigh!!!
Anyways, I was poking around web to come up with interesting water simulation techniques, as you could see in many games these days, so I did find a reference to an old C-based technique, after little refinement, what I have is a water simulation which uses a very old algorithm based on two heightmaps.
As always it’s a grid based animation which divides the screen into a mesh(more slices better this simulation looks), I use a jagged array in c# to do this (load it with a texture of 640 X 480 dimension ), to animate I use another array of same dimensions, now to make every thing move I kinda do something like this
Liquid Particles
After ages of constantly being one of the most used browser as well as a serious pain in Butt!!! IE is finally about to mature into something good and perhaps a useful software , with its support to most of the standards being used today , IE will join back the league of web 3.0 browsers, hopefully very soon
So I was going through various experiments done with Canvas and came across a great example on Liquid Particle physics simulation, which amazingly is written in JavaScript and Canvas element, I was so mesmerized by the application that I had to port it to SilverLight, using WritableBitmap.
Image Carousel
Here is another of many JavaScript based Image Carousel, I had seen many similar to these made in SilverLight and Flash, I came across a wonderful carousel made in SilverLight sometimes back which was very fluid in behavior and could easily be customized and configured to take various shape and form.
I have managed to port it to JavaScript, it works best on chrome or FF, hope this would be fun to play with.
I-Phone Scroll
One of the amazing features of i-phone user interface is smooth panning/scrolling animation.
I-phone “List Scrolling” perhaps gives a very funky and usable List –View to its users and allows them to scroll up and down the interface without any need of a scroll bar.
This interface is sensitive to the push speed and also shows traces of resilience.
I have been experimenting with various techniques to bring out similar effect using JavaScript and HTML, I am not quite sure if this would be useful in its present form but with some modifications may be this sample could prove its worthiness somewhere.