Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / Base 2 Texture Sizer

Author
Message
Sixty Squares
18
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the world
Posted: 3rd Aug 2006 14:53 Edited at: 3rd Aug 2006 17:17
I did not mean BASE 2 I meant POWER of 2 sorry


This will resize a texture to the nearest Power of 2 size. It could be useful for 3DWS or ther things? Anyway, create a new project and copy the code below into it. Then, press F4 to compile the code into an exe. Now, whenever you drag a BMP JPG TGA PNG or DDS image onto the EXE it will be resized to the nearest base 2 number. Yay!

Automatically resizes to the nearest number:



Allows you to choose the number:





Comments?

Login to post a reply

Server time is: 2024-11-23 03:53:08
Your offset time is: 2024-11-23 03:53:08