2011-01-25, 09:01
whats everybody using to create the textures.xpr i have tried XBMCTEX which works but doubles the size of my textures am i missing something shouldnt it if anything be a bit smaller than all the media files?
Blackbolt Wrote:From my own experiences working with XBT and XBR's in the past is as follows:
When you have an image thats 1000x570 for example the XBMCTEX will make that image 1024 x 1024 by stretching the image.
I've found images that are just over the power of 2 (1,2,4,8,16,32,64,128,256,512,1024,2048,etc) will be upsized to fit dimensions of the power of two. So that example image is stretching the width only by 24 pixels but the height is stretching 570 pixels of image across 1024 in the XBT texture.
This may not be whats happening. But i've noticed that not only is there artifacting and pixellated edges with textures that are even set to power of 2 size anyway when using an XBT, but the colour quality and gradients are effected. I personally choose not to use XBTs as I have a really fast machine anyway. Because a XBT build of my dark skin Ellipsis for instance looks terrible compared to the unpacked version.
@echo off
ECHO ------------------------------
echo Creating Limbus Build Folder
rmdir BUILD /S /Q
md BUILD
ECHO ------------------------------
ECHO Creating XPR Files...
CALL XBMCTex -input media\ -output textures.xpr -quality max -noprotect
ECHO ------------------------------
ECHO Copying XPR Files...
xcopy "*.xpr" "BUILD\skin.limbus\media\" /Q /I /Y
ECHO ------------------------------
ECHO Cleaning Up...
del "*.xpr"
ECHO ------------------------------
ECHO Building Skin Directory...
xcopy "720p" "BUILD\skin.limbus\720p" /E /Q /I /Y
xcopy "colors" "BUILD\skin.limbus\colors" /E /Q /I /Y
xcopy "fonts" "BUILD\skin.limbus\fonts" /E /Q /I /Y
xcopy "sounds" "BUILD\skin.limbus\sounds" /E /Q /I /Y
xcopy "language" "BUILD\skin.limbus\language" /E /Q /I /Y
xcopy "backgrounds" "BUILD\skin.limbus\backgrounds" /E /Q /I /Y
xcopy "moviegenres" "BUILD\skin.limbus\moviegenres" /E /Q /I /Y
xcopy "musicgenres" "BUILD\skin.limbus\musicgenres" /E /Q /I /Y
xcopy "studios" "BUILD\skin.limbus\studios" /E /Q /I /Y
xcopy "Countries" "BUILD\skin.limbus\Countries" /E /Q /I /Y
xcopy "playlists" "BUILD\skin.limbus\playlists" /E /Q /I /Y
xcopy "f" "BUILD\skin.limbus\f" /E /Q /I /Y
xcopy "*.xml" "BUILD\skin.limbus\" /Q /I /Y
xcopy "*.png" "BUILD\skin.limbus\" /Q /I /Y
xcopy "*.jpg" "BUILD\skin.limbus\" /Q /I /Y
copy *.txt "BUILD\skin.limbus\"
ECHO ------------------------------
ECHO Removing SVN directories from build
FOR /R BUILD %%d IN (.SVN) DO @RD /S /Q "%%d" 2>NUL
echo Build Complete - Scroll Up to check for errors.
echo Final build is located in the BUILD directory
echo skin.limbus folder in the build dir is ready
pause
@echo off
ECHO ------------------------------
echo Creating Alaska Revisited Build Folder
rmdir BUILD /S /Q
md BUILD
ECHO ------------------------------
ECHO Creating XBT Files...
CALL media\TexturePacker.bat
ECHO ------------------------------
ECHO Copying XBT Files...
xcopy "media\*.xbt" "BUILD\skin.alaska.revisited\media\" /Q /I /Y
ECHO ------------------------------
ECHO Cleaning Up...
del "media\textures.xbt"
ECHO ------------------------------
ECHO Building Skin Directory...
xcopy "720p" "BUILD\skin.alaska.revisited\720p" /E /Q /I /Y
xcopy "colors" "BUILD\skin.alaska.revisited\colors" /E /Q /I /Y
xcopy "fonts" "BUILD\skin.alaska.revisited\fonts" /E /Q /I /Y
xcopy "sounds" "BUILD\skin.alaska.revisited\sounds" /E /Q /I /Y
xcopy "language" "BUILD\skin.alaska.revisited\language" /E /Q /I /Y
xcopy "extras" "BUILD\skin.alaska.revisited\extras" /E /Q /I /Y
xcopy "*.xml" "BUILD\skin.alaska.revisited\" /Q /I /Y
copy *changelog.txt "BUILD"
copy *fanart.jpg "BUILD\skin.alaska.revisited\"
copy *icon.png "BUILD\skin.alaska.revisited\"
copy *License.txt "BUILD\skin.alaska.revisited\"
copy *changelog.txt "BUILD\skin.alaska.revisited\"
ECHO ------------------------------
ECHO Removing SVN directories from build
FOR /R BUILD %%d IN (SVN) DO @RD /S /Q "%%d" 2>NUL
echo Build Complete - Scroll Up to check for errors.
echo Final build is located in the BUILD directory
pause
@echo off
START /B /WAIT media/TexturePacker -dupecheck -input media\ -output media\Textures.xbt
jmarshall Wrote:Thanks for your post, but it should be noted that there are several factual errors in that post.
1. XBMC does NOT make an atlas. Each texture is kept separate.
2. XBMCTEX does pack to DXT1/3/5 - perhaps it is disabled in the source you have.
3. DXT1 is 1/8th the memory, DXT3/5 is 1/4 the memory. This is assuming that POT padding is not required (on some ATI GPUs it is).
4. DXTn generally doesn't necessarily give you a loss of color fidelity. Rather, it typically results in blocking artifacts as it's a 4x4 blocking algorithm. Some images are particularly bad though, in particular it doesn't do well on images that are predominantly greys, as you typically get green or red-shift which is very noticeable (particularly when the shift isn't uniform across a gradient). DXT1 is particularly good for photo images (i.e. backdrops) which is why we use it for fanart with the <useddsimage> option. Note that typically skin backdrops won't compress that way in XBT as the quality standard we use is too high so that TexturePacker chooses to leave it uncompressed.
Cheers,
Jonathan