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.

-
Papaervision 3D Programming Tutorial - Web Photos
| By mcasperson | in Programming
See how to easily load Papervision textures from the web using the asynchronous Loader class. Demo and source code ...
-
Papervision 3D Programming Tutorial - Mouse Selection
| By mcasperson | in Programming
Learn how to highlight the Papervision object under the mouse pointer with this sample application. Demo and source...
-
Papervision 3D Programming Tutorial - Environment Mapping
| By mcasperson | in Programming
Learn how to implement environment mapping with Papervision....
-
Papervision 3D Programming Tutorial - Texture Smoothing
| By mcasperson | in Programming
See the difference texture smoothing can make to your Papervision 3D applications. Demo and source code included....
-
Papervision Programming Tutorial - SkyBox
| By mcasperson | in Programming
Learn how to implement a sky box in Papervision 3D....
-
iPhone Resizing a UIImage | By eh9212 | in Programming
How to resize a UIImage in a UIImageView and a UIButton...
-
Threading in dot net 2.0 - separate copy of static variable among different threads using ThreadStatic attribute | By xxris | in Programming
How each thread keeps a separate copy of same static variable using ThreadStatic attribute ....
-
ADAPATIVE ALGORITHM TO FINDOUT DUPLICATE RECORDS | By pinakbhusanmishra | in Programming
Records are list of row that are stored inside database . this is an efficient technique to find out the duplicatin...
-
ALGORITHM TO FIND OUT HIDDENLINKS IN WEBSITES | By pinakbhusanmishra | in Programming
Here we can find out the hidden links in the websites that basically people uses for the browsing ads....
-
PHP and MySQL | By ChaimChaikin | in Programming
PHP is a server side programming language that is used mainly for dynamically creating and mantaining websites. PHP...
-
AS3IsoLib Tutorial Series - Interaction | By mcasperson | in Programming
In this tutorial we add mouse interactivity to the scene....
-
AS3IsoLib Tutorial Series - Camera | By mcasperson | in Programming
In this tutorial we allow the view of the isometric scene to be moved with the mouse....
-
AS3IsoLib Tutorial Series - Height | By mcasperson | in Programming
In this tutorial we show the height of an isometric object by adding a shadow....
-
AS3IsoLib Tutorial Series - Materials | By mcasperson | in Programming
In this tutorial we modify the appearance of the isometric cube at runtime....
-
AS3IsoLib Tutorial Series - Moving Boxes | By mcasperson | in Programming
In this tutorial we add some animated isometric boxes to the scene....








No comments yet.