Papervision 3D Programming Tutorial - Texture Smoothing

Posted Feb 15, 2009 by mcasperson / comments 0 comments / Print / Font Size Decrease font size Increase font size

See the difference texture smoothing can make to your Papervision 3D applications. Demo and source code included.

VIEW THE DEMO
DOWNLOAD THE CODE

Texture smoothing is something that PC gamers have come to expect ever since the very first Voodoo 3D cards came out on the market way back when. Even today the most basic of integrated graphics chipsets will display smoothed textures. Unfortunately before Flash Player 10 there was no hardware rendering available to Flash programs, and as a result 3D engines lie Papervision typically default back to rendering textures in the same old school blocky format that now days is associated with software renderers.

While a version of Papervision is being made to take advantage of the new hardware rendering available in Flash Player 10, for now the only way to achieve the smooth look that hardware rendering gives us natively is to modify the smooth property of a MaterialObject3D. Thankfully this is pretty trivial, as all you need to do is set smooth to true and Papervision takes care of the rest.

As always the trade off for better visuals is lower performance. The sample application demonstrates 2 different models, one with smoothing enabled and one without, so you can compare the effect side by side.

Go back to Papervision Tutorials

Check out these other Papervision examples:

Loading and Displaying a 3D Model

Particle Systems with Flint

Modify Textures At Runtime

WOW Physics

Shading

Effects

Animated Textures

Mouse Selection

Texture Smoothing

Transparency

Animations

SkyBox

Environment Mapping

3D Text

BitmapViewport

3D Spectrum Analyser

Depth of Field

Casting Shadows

Photo Cloud

Photo Slide

Rate this Article:

Be the first to rate me.


* You must be logged in order to leave comments, please login or join us.

Comments

No comments yet.



Bookmark and Share
Sign up for our email newsletter
Name:
Email: