Back in 2003 Fridger wrote a useful script for auto-tiling virtual textures. But the script was last updated (AFAIK) in 2005. I recently installed Cygwin / ImageMagick / Netpbm according to the directions further in that thread. There *may* be an issue with the script and the current version of Cygwin. I could get the 2003 script in the original post to work, but not the latest 2005 script. This is the error message I get:
Code: Select all
$ virtualtex land_ocean_ice_8192.png 1024 png
/usr/local/bin/virtualtex: line 56: syntax error near unexpected token `('
/usr/local/bin/virtualtex: line 56: `out%d.$tileformat j=0 while (( j * tilesize + tilesize <= textureheight'
Also, there seems to be an issue with missing zsh startup files with the current Cygwin installation. I had to use bash instead. Here is the error message when using zsh is attempted with virtualtex:
Code: Select all
This is the Z Shell configuration function for new users, zsh-newuser-install.
You are seeing this message because you have no zsh startup files
(the files .zshenv, .zprofile, .zshrc, .zlogin in the directory
~). This function can help you with a few settings that should
make your use of the shell easier.
You can:
(q) Quit and do nothing. The function will be run again next time.
(0) Exit, creating the file ~/.zshrc containing just a comment.
That will prevent this function being run again.
(1) Continue to the main menu.
--- Type one of the keys in parentheses ---
Of course Z Shell was included in the download package (as per the instructions) and the files zsh-4.3.2.exe and zsh.exe are in the c:\cygwin\bin directory. Any ideas?
I'd also like to make a suggestion for the script. It was originally written before BMNG was realeased. Fridger added an option to the later scripts to specify the tiling of east or west sections of the 2-section older Blue Marble. But BMNG comes in 8 sections and it may be useful to be able to choose which of those sections to tile.
Lone