t00fri wrote:Code: Select all
Besides Linux/Unix, the script also runs in a current Cygwin installation
under Windows, ( http://www.cygwin.com ). If the z-shell ('zsh') is unavailable,
it also may be executed with the 'bash' shell, by replacing #! /usr/bin/zsh by
#! /bin/bash in the first line.
The script assumes that a recent version of the ImageMagick package
( http://www.ImageMagick.org ) is installed (either under Unix/Linux or Windows).
The utilities 'convert' and 'identify' of that package are used.
You may increase the pixel cache size $maxmem from the 80 MB default
value to e.g. 80% of your RAM size within the script with an editor.
This will speed up the performance of 'virtualtex' considerably.
On a PIII/512MB RAM the tiling of a 16k x 8k texture into
32 (2k x 2k) tiles now only takes 15 minutes with a Linux OS!
Author: Dr. Fridger Schrempp, fridger.schrempp@desy.de
Version: 1.03, 08/16/03
So, suppose you got a 16k PNG texture, and want to chop it into 1024 pix sized tiles in PNG format, just type at the prompt:
> virtualtex <16k-texture.png> 1024 png
You have to repeat this procedure , of course, with all the other required textures that are smaller by factors 2^n. There are plenty of respective explanations available in the forum. The associated 8k,4k,... textures you just rescale trivially (with /bicubic mode!!) in photoshop from your biggest 16k texture.
Since the DOS- shell grammar is too stupid for that task, I had to write 'virtualtex' for advanced UNIX/Linux shells like zsh or bash. So you got to install a CYGWIN linux layer under Windows to have it run. I suppose you know what CYGWIN is. It's very easy to install. This should be extremely easy with your professional knowledge...You also need to install ImageMagick. It is free and exists for native windows, Cygwin-Linux and native Linux.
Good luck,
Bye Fridger
Thanks for all the help... Still don't understand if so many people do this why there isn't a sticky dedicated to it etc... eg with a step by step example... Your script wasn't even easy to find... (it wasn't even on your website?)
Thanks again...