Yes Nick, that's the primary interest for me doing this, and it works on the 
iPad. The RCSB PDB is about to release PDBMobile for the iPhone (later iPad, 
Android etc) and I need a way to reliably provide interactive molecular 
rendering in a future version. I don't believe that WebGL (when it eventually 
comes to mobile webkit in Android and iOS) will cut it for larger sized protein 
structure rendering. Scaling this up to multiple concurrent Jmol sessions will 
require creative serverside programming. The only question at this time is 
whether websockets will make it into iOS 4.2.
Cheers
Greg

------------------------------------------
Greg Quinn,  Ph.D.
Senior Scientist & Mobile Development Lead
RCSB Protein Data Bank
San Diego Supercomputer Center
(858) 534 8399
-------------------------------------------

________________________________________
From: Greeves, Nick <ngree...@li...> - 2010-10-04 18:30
Attachments: Message as HTML     
Does that mean Jmol has a chance on an iPad? That would be great.
All the best
Nick
Sent from my iPad


________________________________________
From: Greg Quinn
Sent: Sunday, October 03, 2010 7:24 PM
To: jmol-users@lists.sourceforge.net
Subject: Proof of concept of Jmol running in a web browser through websockets

I've been playing around this weekend to see what whether HTML5 websockets 
could be mated with molecular rendering running serverside. This has been 
fairly easy to prototype with Jmol because of the nature of Jmol graphics (2D).

Turned out to be fairly straightforward to implement using the JWebSockets 
server running in TomCat. Instead of passing a window/container's graphic 
context to the viewer instance, I'm passing the context of an offscreen image 
buffer, which is then converted to base64 and shunted down through the 
websockets connection. This would be much more efficient without the base64 
conversion but unfortunately the websockets implementations don't yet support 
binary frames although spec does. Lots of further optimization to be done; my 
interest is in its use for mobile browsers/platforms that don't support Java.

http://www.youtube.com/watch?v=1wu5gOxQxcs

------------------------------------------------------------------------------
Virtualization is moving to the mainstream and overtaking non-virtualized
environment for deploying applications. Does it make network security 
easier or more difficult to achieve? Read this whitepaper to separate the 
two and get a better understanding.
http://p.sf.net/sfu/hp-phase2-d2d
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to