Hi Peter, Thanks for your reply.
The texture that we are handling is acutally not being re-scaled at all on Away3d. It is 1:1. However, I guess when away3d sets the camera and render, it uses certain flash functions such as beginBitmapFill that adopts nearest neighbour for down sampling. The problem seem to be, if a 3d object is further apart from the camera, Away3d is effectively rescalling the texture as it draws output on screen. Understand that Away3d can also use bitmapData.draw() for rendering, I wonder if there is a away to replace the core "re-scaling for render" function in Away3d to some codes that adops bilinear down sampling similar to the site below. http://www.brooksandrus.com/blog/2009/03/11/bilinear-resampling-with-flash-player-and-pixel-bender/ It seems to me like it is about relplacing bitmapData.draw() with the below codes? ---------------------------------------------------------------------------------------------------------------------------- var temp:BitmapData = new BitmapData( sourceWidth, sourceHeight ); temp.draw( source ); var output:BitmapData = new BitmapData( outputWidth, outputHeight ) var matrix:Matrix = new Matrix(); matrix.scale( outputWidth / sourceWidth, outputHeight / sourceHeight ); output.draw( temp, matrix, null, null, null, true ); temp.dispose(); ---------------------------------------------------------------------------------------------------------------------------- Any guidance is appreciated. Cheers Kelvin p.s. my fellow developer helped me post the original questions. On Oct 10, 11:28 pm, Peter Kapelyan <[email protected]> wrote: > Hi Kelvin, > > Sorry about your problems, however this is not Away3D's fault at all. > > If you try your experiment with just Flash (not Away3D) you will notice the > same thing. This is a flaw of the Flash software. > > You have a couple of options in Flash, and the same applies to Away3D. > > A few ideas are: > > 1. You can use a much smaller texture, up scaling works much better than > down scaling. > > 2. You can blur your texture a bit > > 3. Your best option is to use the same texture dimensions you would expect > to see at 100%. > > Hope it helps you > > -Peter > > > > > > On Sat, Oct 10, 2009 at 5:57 AM, vkt <[email protected]> wrote: > > > Hello, > > > We are experiencing problem applying texture in small fine strips and > > checks. > > > Those images has been prepared to proper scale for direct application, > > but the Away3d outputs often carries significant down-sampling > > artifacts. > > > Smooth has been set to true. We have also not done anything with > > scale. But it still looks like as if Away3d is down-sampling with > > Nearest Neighbor. > > > Appreciate any thoughts. > > > here some link about my quesion. > >http://www.xs4all.nl/~bvdwolf/main/foto/down_sample/down_sample.htm<http://www.xs4all.nl/%7Ebvdwolf/main/foto/down_sample/down_sample.htm> > > > Thanks > > Kelvin > > -- > ___________________ > > Actionscript 3.0 Flash 3D Graphics Engine > > HTTP://AWAY3D.COM
