Papaervision 3D Programming Tutorial - Web Photos
See how to easily load Papervision textures from the web using the asynchronous Loader class. Demo and source code included.
VIEW THE DEMO
DOWNLOAD THE CODE
In the photo cloud example I showed you how you could present images in a 3D format. The application made use of a number of embedded images, which is great for convenience, but not so good for displaying dynamic images.
In this example I have taken the original photo cloud source and modified it so it loads images from the web instead of referencing embedded resources. The way the Papervision MovieMaterial class operates makes this quite easy. By default the MovieMaterial classes created as a texture source for the photos is given a default embedded image, in this case a generic "loading" image. We then create a function in the ResourceManager called loadResources which starts downloading images from the web using the Loader class. We attach an anonymous function to the complete event, which then takes the downloaded image and updates the internal texture of the MovieMaterial.
The beauty of this system is that the application will load and run quickly, and once the images have finished downloading the new textures simply replace the default loading image. We don't really have to worry about the asynchronous loading of the web images.
This example references 4 image via a static URL, but the same concept could be used to download Flickr images, website thumbnails, the latest weather satellite images or any image that is downloadable over the internet. In fact my first attempt at this application was to get web site thumbnail images from the websnapr service - it worked well except for the fact that I got a whole lot of "request in the queue" thumbnails.

-
Papervision 3D Programming Tutorial - Tweener
| By mcasperson | in Programming
See how the Tweener library can be used to effortlessly animate 3D Papervision objects. Demo and source code includ...
-
Papervision 3D Programming Tutorial - 3D Image Transitions
| By mcasperson | in Programming
Implement 3D image transitions with this Papervision demo . Source code and online example included....
-
Papervision 3D Programming Tutorial - Trails
| By mcasperson | in Programming
Add trails to moving objects in a Papervision 3D scene. Demo and source code included....
-
Papaervision 3D Programming Tutorial - Explodo-logo
| By mcasperson | in Programming
See how to create a disintegrating image in 3D with Papervision. Demo and source code included....
-
XA Transaction - Solution for Transaction More Than One Database | By H4d1 | in Programming
Have you ever think that it's too difficult for making database transaction in two different places (or databases) ...
-
Javascript functions for : trim, right trim, left trim, no Apostrophe, is Empty , is Digit , VarChar To Number , is integer , check Is Zero , Get Que | By xxris | in Programming
Javascript functions for : trim, right trim, left trim, no Apostrophe, is Empty , is Digit , VarChar To Number , i...
-
How to access and use a Window's command line | By MaxwellPayne | in Programming
Learn about the Window's command line in DOS and how to use it....
-
How to Learn to Program Your Computer | By dsj8760 | in Programming
This article is about learning to program a computer. It is a general article giving tips on how to learn about pro...
-
Jailbroken iPhones get RickRolled | By explorer | in Programming
First iPhone worm, attacks via SSH and does the classic rick roll gag on the user....
-
Away3D Programming Tutorial - Environment Material | By mcasperson | in Programming
See how to use the EnviroBitmapMaterial to create a real time reflective look in Away3D. Demo and source code inclu...
-
Away3D Programming Tutorial - Primitives | By mcasperson | in Programming
See how easy it is to use the build in primitive shapes supplied with Away3D. Demo and source code included....
-
Away3D Programming Tutorial - Mouse Interaction | By mcasperson | in Programming
Learn how to respond to mouse events in Away3D. Demo and source code included....
-
Away3D Programming Tutorial - Effects | By mcasperson | in Programming
See how you can add the standard Flash filters to any Away3D object to easily create advanced effects. Demo and sou...
-
Away3D Programming Tutorials - Getting Started | By mcasperson | in Programming
Learn how to get started with the Away3D Flash 3D engine with this detailed, step by step tutorial. Demo and source...








No comments yet.