[Papervision3D] [NEW REVISION] Papervision3D AS3 RC1 (Revision 77)

Carlos Ulloa c4rl054321 at gmail.com
Mon Jun 18 13:22:14 EDT 2007


Hello,

I've just committed a new AS3 RC1 revision that implements automatic mip
mapping for all textured materials.

As you probably have read, mip mapping is already automatic in the new beta
release of the Flash Player, but it requires textures to be of a certain
size for mip maps to be generated.

Auto mip mapping in Papervision3D supports textures of any size, just
recompile your existing code and it should work.

This feature has been implemented in all the textured materials, to adjust
it you will find a couple of static variables in BitmapMaterial:

AUTO_MIP_MAPPING :Boolean // Enables auto mip mapping. Defaults to true.

MIP_MAP_DEPTH :Number // Minimum depth of mip mapping. The number of levels
produced is 2^n. Defaults to a depth of 4, creating at least 16 mip maps.

It works by creating a bigger bitmap than requested, and then adjusting the
UV matrix accordingly. I haven't played much with this, just recompiled the
shark and carlosulloa.com, so if anything breaks, please let me know asap.

Cheers,

C4RL05
// papervision3d.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20070618/c2aa6b35/attachment.htm


More information about the Papervision3D mailing list