scaleDown command - it 's undoable 2004-03-06 - By Neto
Back Just correcting... there is a situation where scaleUp() will undo the scaleDown().
If you create a texture using lingo, and set it's .image property (might work with .member too), it seems SW3D will keep the original image even after you scaleDown() many times. ScaleUp the same amount of times and you'll get the original image back, pixel-perfect.
-- -- Original Message -- -- From: "Neto" <neto@(protected)> To: <dir3d-l@(protected)> Sent: Saturday, March 06, 2004 11:16 AM Subject: Re: [Dir3d-l] scaleDown command
> No way to undo it, unless you have your textures stored as cast members and > reload them into the 3D scene. > ScaleUp will simply resize the texture by 200% (with filtering). > > -- -- Original Message -- -- > From: "Peter Bochan" <peb965@(protected)> > To: <dir3d-l@(protected)> > Sent: Saturday, March 06, 2004 10:54 AM > Subject: RE: [Dir3d-l] scaleDown command > > > > From: Christophe Leske > > > Sent: Saturday, March 06, 2004 3:13 PM > > > To: dir3d-l@(protected) > > > Subject: RE: [Dir3d-l] scaleDown command > > > > > > Just use it, as-is: > > > > > > > > > boxModel.shader.texture.scaleDown() > > > > > > This will scale down the texture size. E.g. If your texture used to be > > > 512 by 512 pixels, it will now be 256 by 256. > > > > > > Reapplying the command will bring it down further, to 128 by 128 pixels. > > > Then to 64 by 64, 32 to 32, 16 by 16, 8 by 8, 4x4,2x2,1x1 > > > > > > > > > > > > Christophe Leske > > > > > > http://www.multimedial.de > > > mail: info@(protected) > > > tel. +49-(0)211 230 99 70 > > > .:. f?rstenwall 157 .:. > > > ::: 40215 d?sseldorf ::: > > > > Hi Christophe, > > > > It works! But is there a command to undo the process? I've tried scaleUp() > > but it doesn't do exactly what I want. > > > > Cheers > > peb965 > > > > > > > > > > > > __ ____ ____ ____ ____ ____ ____ ____ ____ ____ > > Dir3d-l mailing list > > Dir3d-l@(protected) > > http://nuttybar.drama.uga.edu/mailman/listinfo/dir3d-l > > > > __ ____ ____ ____ ____ ____ ____ ____ ____ ____ > Dir3d-l mailing list > Dir3d-l@(protected) > http://nuttybar.drama.uga.edu/mailman/listinfo/dir3d-l >
__ ____ ____ ____ ____ ____ ____ ____ ____ ____ Dir3d-l mailing list Dir3d-l@(protected) http://nuttybar.drama.uga.edu/mailman/listinfo/dir3d-l
|
|