Re: Texture memory usage

New Message Reply Date view Thread view Subject view Author view

From: Laurent Lardinois (llardin++at++dsimprove.be)
Date: 03/31/2001 17:05:25


I think it is related with mip-mapping, that consumes an extra 3/4 of the texture size

in texture memory, you have something like:

512x512x1 + 256x256x1 + 128x128x1 + 64x64x1 + 32x32x1 + 16x16x1 + 8x8x1 + 4x4x1 + 2x2x1 + 1x1x1 = 349 k-bytes theorically

you can disable mip-mapping by changing the minification filter to bilinear

texture->setFilter(PFTEX_MINFILTER, PFTEX_BILINEAR); // no PFTEX_MIPMAP_BILINEAR or PFTEX_MIPMAP_TRILINEAR

I hope it helps

Laurent Lardinois

IT Consultant - DS Improve

htpt://www.dsimprove.com

>Performers,

>I have a terrain model that has several hundred textures assigned to
>it. Each texture is an intensity texture 512x512x1 in size. However,
>when the textures load, the statistics that are output to the screen
>show the texture memory usage as 0.5MB ( 512x512x2? ) in size for each
>texture, although it is also saying that the texture size is 512x512x1.
> This is causing me to be at 125% texture memory usage rather than the
>60% that I had budgeted for the terrain. Does anyone know why I am
>getting this factor of 2 increase? I have checked the attribute files
>for the textures and it is showing the texture type to be intensity,
>not intensity-alpha.

>KD


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Sat Mar 31 2001 - 17:08:44 PST

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.