Infinite Array
  • experiments
  • tutorials
  • projects
  • resources
  • all posts

Recently in experiments Category

Smooth Image with Preloader, Drop Shadow, Smart Resizing in Flex

By ryan on February 11, 2008 9:42 PM | Permalink | Comments (0) | digg this | del.icio.us | reddit
By default, the Flex image component does not enable smoothing on scaled images, which makes them appear jagged.  Ben Longoria has written a great SmoothImage class that overrides the image component and sets smoothing to true.  I needed a bit more functionality out of it, so I have extended it a bit further.  I wanted:

  • Smart resizing which scales the image only if it won't fit in the application bounds
  • Drop shadow on the image
  • Centered preloader that displays while image is loading
I have written an updated class that expands upon the original SmoothImage, and includes these new features.
smoothimage.jpg

View the Example

View Source






Here is SmoothImageLoader.as


Papervision3D Phong Shader + Bumpmaping Experiment

By ryan on January 7, 2008 8:09 PM | Permalink | Comments (4) | digg this | del.icio.us | reddit
I've been experimenting with the Papervision3D 2.0 (Great White) lately, and I must say I am impressed with the new features.  Particularly cool is the ability to add shaders.  This makes it much easier to create realistic models with higher quality textures and lower polygon counts.  I created a quick golf ball demo to highlight the possibilities.  The scene includes a point light, and a phong shader combining the texture and bump map applied to the sphere.  If you look closely, you can see the light reflecting off the edges of the ball as it rotates. 

Controls:  Arrow keys zoom in / out, pan around.  Mouse wheel zooms.


Click to interact
golfpreview.jpg

Main Index | Archives | resources »

Search

Subscribe to feed Infinite Array RSS feed

About this Archive

This page is a archive of recent entries in the experiments category.

resources is the next category.

Find recent content on the main index or look in the archives to find all content.

Categories
  • experiments (2)

  • projects
  • resources (3)

  • reviews
  • tutorials (3)

experiments: Monthly Archives

  • February 2008 (1)
  • January 2008 (1)
Copyright © 2008 Ryan Robinson
portfolio  |   resume  |   contact