![]() ![]() You can avoid this by only using the first part of this command (until »&«). The »output.txt« will be directly opened with the Editor (it's the Windows default, of course you may use another program). Run the following command to gather the format information:Ĭode: texdiag info dds-source\*.dds > output.txt & START output.txtThis command creates an »output.txt« file in the root directory which includes all basic information of the DDS files in the »source« directory. (Info) Please exclude any cubemaps, bumpmaps or specmaps from the source files as the don't need to be modified.Ĭopy all your source DDS files in the »source« folder. Sorting is necessary because after conversion the source DDS to PNG files the DDS format information is lost and a conversion back to DDS will automatically convert the PNG to DXT5 DDS files. Just move the files in the respective »dxt*« sub-directory of »dds-source«. ![]() (Info) You can skip this step, if you already know the DDS formats. Copy your source DDS files and sort them according to their format (Optional) If you use Cmder and have installed it properly, you can do a rightclick somewhere in the folder and select ✼mder here«.ħ. From the menu select »Open command window here«. Open a new Windows command shell (cmd) in the root folder by press and hold shift key and rightclick somewhere in a empty area. ![]() (Info) You may chose your own directory names, but then you have to modify the commands below to suit this.Ħ. \outputNow copy the DirectXTex tools »texconv.exe« and »texdiag.exe« into the root directory. Create the following (sub-)directories there: Get the latest version here: Cmder releases on GitHubįollow the installation instructions here.Ĭhoose a directory where you want to do the texture conversions and edits. Cmder is for the power users (installation is manual, Cmder provides some more/better features). This step is optional because you can just use the Windows command shell (cmd). (Optional) Install the Cmder command-line tool Simply place the rF2_TexFix.exe in your root directory (see section 5)Ĥ. This tool replaces the manual sorting process as described in section 7, as well as the modification and conversion of the textures as described in section 8. You have to download »texconv.exe« and »texdiag.exe«.ģ. Get the latest version here: Microsoft DirectXTex releases on GitHub Get the latest version here: ImageMagick for Windows Note: It was reported that on some systems you have to add "magick" before the "mogrify" command. Tutorial for ImageMagick and DirectXTex (by Any of the commands below can just be copy-pasted. See my " Batch resize images on Mac OS X tutorial" for more information.If you have ever tried to convert a track or mod with a massive amount of textures you will surely know that it takes a lot of time to edit the DDS textures one by one to suit the Albedo requirements by rFactor2. If you have a Mac OS X system, there's another way to resize a group of images. Simple GUI batch image resizing on Mac OS X That command resizes every image in the current directory to 60% of its original size. ![]() If you want to batch resize a group of images by supplying a percentage, you can use a command like this: I assumed I'd have to do this using a shell script, i.e., using the script to loop through all the PNG files, but that's not necessary, this one mogrify command does it all.įWIW, all the image files started at the same resolution, around 800 pixels wide, that's why I chose this same size for all my new image files with this batch image resize command. (Or look into the ImageMagick ‘convert’ command, which leaves the original image unmodified.) Warning/Notice: Make a backup of your image files before running this command. If you download ImageMagick, you can use its mogrify command to “batch resize” all “*.png” image files in the current directory to a resolution of 534 pixels by 402 pixels: Mac batch image resizing with the ImageMagick mogrify command This article shows a “Mac batch image resize” approach you can use from the Mac Terminal command line, and in the link I share below I also show to how to batch resize images using a Mac GUI tool. Mac batch image resizing FAQ: Is there a built-in Mac OS X command I can use to batch resize images and photos on my Mac OS X computer? ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |