Compressed textures for FanArt - testing here with XBMC 2009-10-05 (r23431) or newer - Printable Version
+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Help and Support (/forumdisplay.php?fid=33)
+--- Forum: XBMC General Help and Support (/forumdisplay.php?fid=111)
+--- Thread: Compressed textures for FanArt - testing here with XBMC 2009-10-05 (r23431) or newer (/showthread.php?tid=59115)
- Louike - 2010-02-04 14:17
according to the scripts in this thread it's the .jpg that has to be renamed back to .tbn.
edit: I just added the dds files and it does make a big difference, the performance issue's i had in some views of Alaska disappeared aswel. Nice work!
- IceNine - 2010-02-04 15:01
Louike Wrote:according to the scripts in this thread it's the .jpg that has to be renamed back to .tbn.
This is correct. If you use the scripts in the thread, or do the conversions manually you would follow these steps:
1. Change the extension of all the .tbn files to .jpg
2. Convert all the .jpg to .dds. This will make a copy of the file in .dds format, the .jpg will still be there.
3. Change the extension of all the .jpg files back to .tbn
Don't change the .dds extension to .tbn, it won't work. The image loader in XBMC works on file extension so if a .dds format file has a .tbn extention, XBMC won't load it right.
This way you will have a .tbn and .dds version of every fanart. You'll want to keep both in the Fanart folder because you need the .dds files there and the .tbn's will just be recreated if you move them. This does take up more space to have duplicates, but so it goes for now.
Also, make sure you don't change the filename on any of the files, even the .dds files because XBMC won't be able to find them if you do. If everything is done right, when you are done you should have a .tbn and .dds version for every file name.
- Balthazar2k4 - 2010-02-04 16:15
IceNine Wrote:This is correct. If you use the scripts in the thread, or do the conversions manually you would follow these steps:
OK. That being said, how do you know it is working as it should? With both the TBN and DDS files together the only thing I should look for is a noticeable improvement in speed?
- Louike - 2010-02-04 16:31
if you remove the .dds file there will be a white background.
- neomits - 2010-02-04 20:03
This sounds great, and thanks for all the input everyone.
Question (coming from someone with zero scripting experience)
Whenever I try to run the batch script on a windows machine it keeps telling me that %%x is a supported format when running the command <"C:\Program Files\NVIDIA Corporation\NVIDIA Texture Tools 2\bin\nvcompress.exe" -fast -bc1 %%x >
if I put a single file name in place of %%x it works fine. Any thoughts as to what I'm typing wrong or what I can do to fix it? What does %%x mean in scripting?
- fidoboy - 2010-02-04 20:05
hello guys, you must also add the magic line in advancedsettings.xml file. DDS Files doesn't need to be renamed to TBN again!
@neomits: i don't want to sound rude but... if you have zero experience, why are you trying to use this experimental feature?
- neomits - 2010-02-04 20:13
fidoboy Wrote:hello guys, you must also add the magic line in advancedsettings.xml file. DDS Files doesn't need to be renamed to TBN again!
cause I'm willing to learn and for most things can figure it out on my own.
I figured out how to convert an individual file, but obviously that's a pain to do each fanart one at a time. If someone could help me understand how to batch the full folder (%%x) thats all I'm looking for.
- furii - 2010-02-04 22:54
neomits Wrote:cause I'm willing to learn and for most things can figure it out on my own.
open notepad and paste this code into it
save the file as tbn2dds.bat in your fanart folder and run it from there to convert them to dds.
%%x is just a variable that stands for every (jpg) file in the folder. it sounds like you were trying to just do start > run > "C:\Program Files\NVIDIA Corporation\NVIDIA Texture Tools 2\bin\nvcompress.exe" -fast -bc1 %%x which you can't do. you can only call variables from the batch file.
- neomits - 2010-02-04 23:09
furii Wrote:open notepad and paste this code into it
Big high five to furii. Thanks a ton, that was my problem (I was trying to run each line from a command prompt individually). Now I know.
- Freddo - 2010-02-05 00:58
I just tried this out and was surprised how solid it already is, I noticed a definite improvement in fps when scrolling through my TV show view, even though my PC is fairly beefy. I'm getting an arcade style solid 60fps now, pre-dds it was dropping into the 40s scrolling some views.
I'd love to see this applied to covers etc just so I can crank my thumbsize up a little higher and still get solid fps. I can understand it wouldn't be a priority though.
Is there anything I can do to contribute in terms of testing? it all went rather smoothly, and I didn't notice any quality difference until I started doing direct A-B comparisons, even then it was marginal with most of my artwork. Any skin that puts an effect over the fanart like alaska makes it totally impossible to tell.
I'm using that little batch script Furii posted, thanks chap!