[Papervision3D] Hi plus MIPMAP bug

o renken renkster at gmail.com
Fri Jul 6 05:09:07 EDT 2007


hi alex..
3 links, all show me that in white letters on black background:

Kilometer0.com - Kilometer Zero - Km0
Alternate HTML content should be placed here.This content requires the
Adobe Flash Player.Get Flash

Directions: Click and drag to view the night sky above Death Valley
California. (Please be patient, loading 1.0MB image)

Image Credit: http://antwrp.gsfc.nasa.gov/apod/image/0705/deathvalleysky_nps_big.jpg

Code Credit: Alex Petrescu [ Contact ]


nothing else

2007/7/6, Peter Kapelyan <flashnine at gmail.com>:
> WOW!!!
> That looks amazing!
> very nice indeed.
> I also like the mouse movement - works very nice.
> With best regards
> -Pete
>
>
> On 7/6/07, Alex Petrescu <alex.petrescu at gmail.com> wrote:
> >
> > Hi All,
> > Just wanted to introduce myself and post a bug I just found related to the
> latest commits to the SVN repository regarding MIPMAPping.
> >
> > The bug is related to Bitmap textures bigger than 2880 pixels in width.
> On line 136 of org.papervision3d.materials.BitmapMaterial
> the following code tries to create a new BitmapData object: okBitmap = new
> BitmapData( width, height, bitmap.transparent, 0x00000000 );
> >
> > That code fails when width or height is greater than ( > ) 2880 pixels
> (Well known Flash limitation).  My texture is exactly 2880 (since I knew
> about the limitation, but the code on lines 130-131 manipulates the
> width/height in order get a factor of 256.
> >
> > One solution to this problem could be checking to see if the width/height
> is greater than 2880 and do the width/height calculation with a factor of
> "levels" under 2880 (2816 in the case of 256).
> > So something like width = (width > 2880) ? Math.floor(bitmap.width /
> levels) * levels : width;
> >
> > Current Workarounds include turning AUTO_MIP_MAP off by doing
> BitmapMaterial.AUTO_MIP_MAPPING = false; and using a texture no more than
> 2816 width or height.
> >
> > A little about me.
> > My name is Alex Petrescu, and I'm currently a senior developer on the
> Branded Entertainment team at the Buddy Group (
> http://www.thebuddygroup.com).  I've only been a flash developer for about 8
> months, but I'm a seasoned developer in PHP, ASP.NET, C#, Java, and been a
> DBA for Oracle, MSSQL, and MySQL databases.  I've been using Papervision3D
> for about 2 months, and am implementing it in a few projects at work and at
> home.  I also attended the last PV3D workshop in Venice, CA.
> >
> > I ran into this problem while trying to map a photo of Death Valley onto a
> sphere in order to create a FlashVR type environment.  You can see the
> preliminary results at http://www.kilometer0.com or
> http://www.tbacentral.com if Kilometer0.com doesn't work ( just moved hosts,
> dns might not be updated).
> >
> > Regards,
> > Alex Petrescu
> > alex.petrescu at gmail.com
> >
> >
> >
> > _______________________________________________
> > Papervision3D mailing list
> > Papervision3D at osflash.org
> >
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
> >
> >
>
>
> _______________________________________________
> Papervision3D mailing list
> Papervision3D at osflash.org
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>
>


-- 
http://www.renkster.de/#/about/



More information about the Papervision3D mailing list