Re: [Plib-users] ssgMakeMipMaps
Brought to you by:
sjbaker
From: jnilson_99 <jni...@ya...> - 2004-04-22 22:51:32
|
i think you're missing the point. an image doesn't need to be sized based on a power of two. only MIPMAPS need to be sized to a power of 2. i got around my problem by creating my own class that extends ssgTexture and loads the image on its own. it looks like ssgTexture was once set up to create mipmaps, hence the boolean mipmap parameter in the following method: ssgTexture::ssgTexture ( const char *fname, int _wrapu, int _wrapv, int _mipmap ) i assume the parameter is there to flag ssgLoadTexture whether to create a mipmap after loading the texture. right now it assumes you want to create a mipmap out of EVERY texture you load. this is incorrect in my opinion. john ----- Original Message ----- From: "Wolfram Kuss" <w_...@rz...> To: <pli...@li...> Sent: Thursday, April 22, 2004 6:16 PM Subject: Re: [Plib-users] ssgMakeMipMaps >i would like to avoid having to resize my image to something like 256X256. You should DEFINITELY resize it. Computer graphics hardware needs power of two. The only ways for a program to allow non-.power-of-two are a) don't use hardware accelaration b) resize it yourself, during each session Both obviously bad. Resizing it once "offline" with a good program, that can use a good algorithm since it can take a second, is a much better idea. > >thanks > >john Bye bye, Wolfram. ------------------------------------------------------- This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek For a limited time only, get FREE Ground shipping on all orders of $35 or more. Hurry up and shop folks, this offer expires April 30th! http://www.thinkgeek.com/freeshipping/?cpg297 _______________________________________________ plib-users mailing list pli...@li... https://lists.sourceforge.net/lists/listinfo/plib-users |