XNA UK User Group

A helping hand for bedroom coders throughout the land.
in

Upcoming Events

Read our Events forum for details of upcoming events. Meet real people!

zip Pipeline Processor For Resizing Textures

Downloads: 595 File Size: 36.7kB
Posted By: leaf Views: 630
Date Added: 08-15-2007

This is an example content pipeline texture processor that will resize non power of 2 sized textures to the next nearest power of 2 size. For example if you give it a texture of size 70x70 then it will scale the texture to size 128x128. The texture can then be used with mipmaps and/or compressed to a DXT format. Note, it would be better to make sure that your textures are already the right size as scaling them increases texture memory for no improvement in quality. For that reason this processor will output a warning whenever it has to scale a texture.

There are simple derived Model and Material processors provided too so that you can use the resizing texture processor for models that reference textures. 

Filed under: ,

Comments

No comments exist for this file.

Add Comment

(required) 
(required)
(optional)
(required) 
Add