Printer Friendly Version      Send     
Click to Rate and Give Feedback
Related Articles
The goal of the ADO.NET Data Services Framework is to create a simple REST-based framework for exposing and consuming data-centric services easily.

By Elisa Flasko and Mike Flasko (August 2008)
We introduce you to the EDI functionality within BizTalk Server 2006 R2, illustrating schema creation, document mapping, EDI delivery and transmission, and exception handling.

By Mark Beckner (August 2008)
In this excerpt from his upcoming book, Laurence Moroney explains the basics of Silverlight animation and the animation tools available in Expression Blend.

By Lawrence Moroney (August 2008)
We build a Silverlight 2.0 application using the InkPresenter to let users annotate a pre-defined collection of images, perform handwriting recognition, and save the annotations and recognized text into a server-side database.

By Julia Lerman (August 2008)
More ...
Popular Articles
Microsoft Robotics Studio is not just for playing with robots. It also allows you to build service-based applications for a wide range of hardware devices.

By Sara Morgan (June 2008)
In this excerpt from his upcoming book, Laurence Moroney explains the basics of Silverlight animation and the animation tools available in Expression Blend.

By Lawrence Moroney (August 2008)
Here the author introduces SQL Server Data Services, which exposes its functionality over standard Web service interfaces.

By David Robinson (July 2008)
If you're unfamiliar with Windows Presentation Foundation (WPF), building that first Silverlight custom control can be a daunting experience. This article walks through the process.

By Jeff Prosise (August 2008)
More ...
Read the Blog
One of the neat things about XAML is that you can not only declare your objects using an XML syntax, but that you can define transformations to rotate, move, and skew your objects. In the August 2008 issue of MSDN Magazine, in an article adapted from his upcoming book Introducing Microsoft Silverlight ...
Read more!
Microsoft has a long history of introducing new features to shipped products, often under the banner of Power Toys or Power Tools. In the August 2008 issue of MSDN Magazine, Brian Randell takes you on a tour of some useful tools for ...
Read more!
Designing software is often an exercise in managing complexity. You can take steps to limit the complexity of any given class by only assigning it a discrete set of responsibilities, applying a concept known as object role stereotypes. In the August 2008 issue of MSDN Magazine, Jeremy Miller explains ...
Read more!
When you evaluate any new technology, pattern, or strategy, you have to consider how that new piece of the puzzle is going to mesh with your existing application architecture. With the Entity Framework, integration is not a problem. In the July 2008 issue of MSDN Magazine, John Papa demonstrated ...
Read more!
Electronic Document Interchange (EDI) encompasses the largest share of real-world business-to-business commerce—nearly 90 percent of the current market—and is growing rapidly year over year. In the August 2008 issue of MSDN Magazine, Mark Beckner introduces ...
Read more!
Separation of presentation and data is not a new idea, but with the growing popularity of technologies such as AJAX and Silver­light, it has become much more prevalent. ADO.NET Data Services Framework began as a way to help developers looking to expose and consume data via services from their applications.. In the August 2008 issue of MSDN ...
Read more!
More ...
{ End Bracket }
Turning the Pages with WPF
Tim Sneath


The Great Library of Alexandria was founded in 300 B.C.E. with the grand objective of collecting the world's knowledge in one place; at its height, the library contained nearly 750,000 scrolls. In the modern world, the British Library contains one of the foremost collections; among its twenty million books and manuscripts are some of the rarest works in existence. It holds the Diamond Sutra, the oldest printed book; Mercator's first atlas of Europe; the Lindisfarne Gospels; Leonardo da Vinci's personal notebook; the Magna Carta; and the Codex Sinaiticus, one of the two earliest Christian Bibles. Such unique items must, of course, be treated with the utmost care. If they are on public display at all, they are well protected behind glass, and direct interaction is limited to a handful of individuals.
Happily, these works are now being digitized for the first time in order to reach a broad audience. Even better, the digitized versions are being turned into a rich interactive experience that adds curatorial content and brings the books to life. In collaboration with a UK-based software developer, the British Library developed a Windows®-based application called Turning the Pages that offers a virtual facsimile in three-dimensional space of a growing number of the library's most precious items (see www.bl.uk/onlinegallery/ttp/ttpbooks.html). Using this application, available to any Microsoft® .NET Framework 3.0-equipped computer at ttpdownload.bl.uk/browserapp.xbap, you can open a book on your desktop and turn each page almost as if you held the book in your hands.
Digitizing these works presented some interesting challenges. Due to the books' fragility and value, each page needed to be scanned using a specialized offset camera that could capture an image without any risk of damage to the item. A curator was then filmed physically turning the pages of each document to create a reference for the virtual model; as you might expect, a heavy vellum page from an eighteenth-century book does not move in the same way as a paper page from the seventeenth century. Such attention to detail is central to creating an experience that feels authentic.
  (Click the image for a larger view)
One feature in Turning the Pages that always generates a reaction is the specular materials used to bring out the gold leaf on the many illuminations that decorate the pages of works like the Sherborne Missal, a fifteenth-century prayer book. As the page is turned, suddenly the light will catch part of the illustration such that it takes on a brilliant radiance.
Turning the Pages is implemented using the 3D class libraries in Windows Presentation Foundation, which in turn are an abstraction of DirectX®. Each page is represented as a geometry mesh, onto which one or more image materials are applied. Images are stored using the HD Photo format for high quality at a given compression rate; for those books that require specularity, a second image is also used for each page that contains a monochrome mask so that only the areas of the page illuminated in gold leaf are reflective. Lastly, frame-based callbacks manually deform the geometry model to create the page-turning effect on a mouse click.
As an evangelist for client platform technologies, I love to see people building great user experiences. The Web has proved a powerful influence in software development: it democratizes the content creation process, it provides new ways for companies to monetize their software, and it provides a friction-free distribution model that allows for minor updates to be made without redistributing an entire application.
But to achieve those advantages, we have been prepared to sacrifice the ability to take full advantage of the tremendous latent power that is available in every personal computer. We need a set of tools more powerful than HTML and CSS so that we can build applications that aren't constrained by lowest common denominator limitations and so that developers and designers can collaborate to deliver user interfaces that are better representations of the environments they model. Applications like Turning the Pages, delivered over the Web but taking advantage of WPF for display rendering, are interesting as an example of how these two worlds are colliding. Over the next few years, I believe we will see huge transformations in the software we use as developers figure out how to offer richer Internet-based interactive applications.

Tim Sneath is the Group Manager for the Silverlight and WPF Technical Evangelism team at Microsoft. His mission is to see developers create stunning applications built on the Microsoft platform and to persuade his mother that computers aren't out to get her.

© 2008 Microsoft Corporation and CMP Media, LLC. All rights reserved; reproduction in part or in whole without permission is prohibited.
Page view tracker