Basic Windows F-Tex Tools tutorial to make Virtual Textures
Posted: 26.07.2022, 19:23
For those who are newer, F-Tex is a tool that can turn large textures (like 64K) into tiles automatically. This is a tutorial for Windows users as a large number of users have Windows.
Developed by Fridger Schrempp in 2007, the usage and know how of these tools has been lost to many and a guide to installing them is not easy to find. I did some digging in the wayback machine and found a post from 2008 by Bob Hegwood on the discontinued Celestialmatters forum however it is poorly worded and asks you to download a bunch of unneeded extra stuff. There is a copy of F-Tex already posted in the forum though I will be posting a copy here too.
A lot of people may be unfamiliar to using F-Tex tools because the people using it are used to making textures on a program with flashy windows, not typing word based commands with the command prompt. I have decided to make a guide on using its basic features because it was a pain for me to figure out how to do this without an easy to find, up to date, proper guide.
NOTE: You MUST be System Administrator to use F-Tex.
STEP 1... DOWNLOAD FTEX
First step is to download F-tex in the attachment above. Then, right click the zip folder and extract to unzipped folder.
STEP 2... INSTALL FTEX
Go into the folder and open Win32_PC.bin. Within that folder is "F-TexTools-2.0pre2" as an application. Run the application and have it install, preferably in your Program Files (x86) but you can install it wherever.
STEP 3... IMPLEMENT FTEX
This is where people get confused... they go into this program and start double clicking stuff then get frustrated when it does nothing and abandon it. Or they go straight into the command prompt and also does nothing.
The reason is you have to configure Windows to use it first.
1. Go into your control panel then into "Advanced System Settings" or type it into program search at the bottom left and into "view advanced system settings"
2. Click "Environment Variables" then in "System Variables" locate "Path" and click it to highlight it.
3. Click "Edit". Now there will be a list, click the bottommost entry and click "New", then click "browse" with the cursor in a new line.
Locate the location of the Ftex install folder, usually it will be in the your Program Files (x86) in the Drive letter folder. Click on the "F-TexTools" folder and click "Ok".
The folder path should now appear in the list. With it, click "ok" out of the windows.
STEP 4... FINDING MAPS FOR FTEX
Next up, go into an image processing program and make or download a big texture in it, I used an Enceladus texture from NASA in gimp for this example upscaled and turned into a 16384 x 8192 but any texture using exponent powers of 2 will work. In Gimp, use the following settings when exporting as png (the compression level can be anything but I use 9 for saving space to share addons) Do not check any of the unchecked stuff or Ftex will glitch out:
STEP 5... USING FTEX
Now that we have an image, go into the folder you saved the png in.
click on the folder path at the top and type "cmd" and hit Enter
The command prompt will appear with the folder path specified.
Type in "png2bin" < (texture name.png) > (texture name.bin) without brackets
Example: png2bin <Enceladus.png> Enceladus.bin
The png image should then be converted to a binary file.
FINALLY THE RESULTS:
There is one FINAL STEP
Images come in a number of channels
Channel Number "1" is Grayscale
Channel number "3" is RGB color
Channel number "4" is color with transparency
Levels in Celestia You should know how they work, "2" for level2 "5" for level5 etc.
PNG compression "0" is uncompressed as in it just takes up more space but opens faster. Compression "9" is least space but opens and runs slower. This does NOT affect image quality. It can be a value from 0-9.
USE THE .BIN FILE, NOT THE .PNG FILE FOR THIS STEP OR IT WILL NOT WORK!!!
Type "txtiles" (channel number) (image width in pixels) (level number in celestia) (PNG compression number) < (texture name.bin)
For Example: txtiles 3 16384 2 9 <Enceladus.bin
Converts my 16K Enceladus.bin into a series of square color tiles that are 2K in resolution and at png compression level 9.
And Bingo! You should have yourself a series of tiles correctly labeled for your VT!!!
I hope this guide was a lot of help because hopefully this makes people regain interest in making VTs again without my prior pain of manually creating and renaming tiles. My days of wasting a whole week renaming tiles for a 64K virtual texture are over!!!
Developed by Fridger Schrempp in 2007, the usage and know how of these tools has been lost to many and a guide to installing them is not easy to find. I did some digging in the wayback machine and found a post from 2008 by Bob Hegwood on the discontinued Celestialmatters forum however it is poorly worded and asks you to download a bunch of unneeded extra stuff. There is a copy of F-Tex already posted in the forum though I will be posting a copy here too.
A lot of people may be unfamiliar to using F-Tex tools because the people using it are used to making textures on a program with flashy windows, not typing word based commands with the command prompt. I have decided to make a guide on using its basic features because it was a pain for me to figure out how to do this without an easy to find, up to date, proper guide.
NOTE: You MUST be System Administrator to use F-Tex.
STEP 1... DOWNLOAD FTEX
First step is to download F-tex in the attachment above. Then, right click the zip folder and extract to unzipped folder.
STEP 2... INSTALL FTEX
Go into the folder and open Win32_PC.bin. Within that folder is "F-TexTools-2.0pre2" as an application. Run the application and have it install, preferably in your Program Files (x86) but you can install it wherever.
STEP 3... IMPLEMENT FTEX
This is where people get confused... they go into this program and start double clicking stuff then get frustrated when it does nothing and abandon it. Or they go straight into the command prompt and also does nothing.
The reason is you have to configure Windows to use it first.
1. Go into your control panel then into "Advanced System Settings" or type it into program search at the bottom left and into "view advanced system settings"
2. Click "Environment Variables" then in "System Variables" locate "Path" and click it to highlight it.
3. Click "Edit". Now there will be a list, click the bottommost entry and click "New", then click "browse" with the cursor in a new line.
Locate the location of the Ftex install folder, usually it will be in the your Program Files (x86) in the Drive letter folder. Click on the "F-TexTools" folder and click "Ok".
The folder path should now appear in the list. With it, click "ok" out of the windows.
STEP 4... FINDING MAPS FOR FTEX
Next up, go into an image processing program and make or download a big texture in it, I used an Enceladus texture from NASA in gimp for this example upscaled and turned into a 16384 x 8192 but any texture using exponent powers of 2 will work. In Gimp, use the following settings when exporting as png (the compression level can be anything but I use 9 for saving space to share addons) Do not check any of the unchecked stuff or Ftex will glitch out:
STEP 5... USING FTEX
Now that we have an image, go into the folder you saved the png in.
click on the folder path at the top and type "cmd" and hit Enter
The command prompt will appear with the folder path specified.
Type in "png2bin" < (texture name.png) > (texture name.bin) without brackets
Example: png2bin <Enceladus.png> Enceladus.bin
The png image should then be converted to a binary file.
FINALLY THE RESULTS:
There is one FINAL STEP
Images come in a number of channels
Channel Number "1" is Grayscale
Channel number "3" is RGB color
Channel number "4" is color with transparency
Levels in Celestia You should know how they work, "2" for level2 "5" for level5 etc.
PNG compression "0" is uncompressed as in it just takes up more space but opens faster. Compression "9" is least space but opens and runs slower. This does NOT affect image quality. It can be a value from 0-9.
USE THE .BIN FILE, NOT THE .PNG FILE FOR THIS STEP OR IT WILL NOT WORK!!!
Type "txtiles" (channel number) (image width in pixels) (level number in celestia) (PNG compression number) < (texture name.bin)
For Example: txtiles 3 16384 2 9 <Enceladus.bin
Converts my 16K Enceladus.bin into a series of square color tiles that are 2K in resolution and at png compression level 9.
And Bingo! You should have yourself a series of tiles correctly labeled for your VT!!!
I hope this guide was a lot of help because hopefully this makes people regain interest in making VTs again without my prior pain of manually creating and renaming tiles. My days of wasting a whole week renaming tiles for a 64K virtual texture are over!!!