Page 1 of 1

Importing textures pipeline?

PostPosted: Thursday, 16.August 2012, 08:46
by Skinnytorus
Dear All!
I was playing with imported textures and faced the restriction that the texture had to have the size that is power of 2.
Say, I have a texture from google and want to import it into wz4. I copy it into irfanview or a similar utility, resize it so that the size is a power of 2 (128, 256, 512 etc.) and save as .png file. Then I import it and resize by Rotate back to normal proportions (because after resizing in irfanview the image often becomes squashed).
I wonder how you guys prepare your textures for importing into wz4? Are there any simpler ways to do that?
Thank you.

Re: Importing textures pipeline?

PostPosted: Thursday, 16.August 2012, 09:00
by ikam
Maybe it's less destuctive to cut a rectangle (power of 2 size) inside the texture instead of 2 resize ?

Re: Importing textures pipeline?

PostPosted: Thursday, 16.August 2012, 09:16
by Skinnytorus
Yes, but what lightweight and free software might support such type of selction
(pre-sized selection rectangle movable across the image)?

Re: Importing textures pipeline?

PostPosted: Thursday, 16.August 2012, 09:43
by ikam
mspaint lol

with manual selection :lol:

Re: Importing textures pipeline?

PostPosted: Thursday, 16.August 2012, 10:30
by Skinnytorus
OK. I don't have wz here, but I have irfanview. And as it turns out, it can do that!
1. Copy the image into IrfanView
2. Press Shift-C (Create custom crop selection)
3. Set Ratio (e.g. 1:1), Height and Width in pixels (e.g. 256x256)
4. Click 'Save and apply to image'
5. Drag the rectangle selection with Right mouse button.
6. Ctrl-C to copy the selection
7. Shift-N to create a new file, then 'OK' (doesn't matter which size IrfanView suggests)
8. Ctrl-V to paste selection in the new file (after that it should be sized as 256x256 px)!
... and voila! You are all set :)

Re: Importing textures pipeline? [Solved]

PostPosted: Thursday, 16.August 2012, 11:28
by ikam
thanks for info, i'll try.

Re: Importing textures pipeline? [Solved]

PostPosted: Thursday, 16.August 2012, 12:20
by Skinnytorus
Unfortunately there is one contra point to this approach... and a rather strong one:
if the initial texture is looped (wrapping), you will lose its 'loopability' :(

Re: Importing textures pipeline? [Solved]

PostPosted: Thursday, 16.August 2012, 20:31
by Skinnytorus
Now check this out!
A seamless texture generator for total idiots. Absolutely free!
http://www.blitzbasic.com/Community/pos ... opic=46368
The tool is old and it generates .bmp only but does the job well.