Posts: 26,215
Joined: Oct 2003
Reputation:
187
Why not use D3DXCreateTextureFromFile or whatever it is - the XDK contains functions that'll likely be able to load .dds images. Take a look through the XDK documentation.
If you can't do that then it should be basically the same as directx on windows. See TextureDX.cpp in particular.
You probably need to watch the pitch and height requirements, though the total size you're copying seems fine (4bits/pixel for DXT1). At any rate, the debugger will probably at least tell you where it's crashing - one presumes in the memcpy. Check that you're not running off the end of image.GetData() or lr.pBits. lr.Pitch might be somewhat useful for giving you a clue, but don't rely on it - it does funny things on DXTn textures. It might be worth running a for loop (you'll need it to pack it out to power of 2 anyway) - see Texture.cpp for the bit that packs out the texture.
Something else you'll likely run into (when it's not crashing at least) is that xbox may require that DXT1 be swizzled, I'm not sure - you may be able to "just" modify the code in DirectXGraphics.cpp or whatever it is for this (it unswizzles and unpacks DXT1,3,5).
That's about all the help I can give. Have fun!
Cheers,
Jonathan
Posts: 10
Joined: Apr 2009
Reputation:
0
acbeef
Junior Member
Posts: 10
Just a quick question ... I didnt see it posted
Does the dds conversion happen on cutom backgrounds for skins or do you have to convert those images manually
Ie: conditional weather folder, movies , tvshows...etc
Thx
Posts: 669
Joined: Jul 2008
Reputation:
1
Have to say this made an absolutley amazing difference on my Revo!
I have many many photos in my picture section (thousands), and they tend to have large thumbnails. (Nikon D90 shooter)
It was painful browsing my picture gallerys to the point I was shopping a more powerful computer to replace the Revo.
Not any more!
All my picture thumbnails now show up instantly, with hardly any noticeable difference in quality.
It was a bit of a pain to browse every folder so the dds process could see each thumbnail, but once I did its like I have a new HTPC. I actually enjoy browsing my pics on the xbmc box more than my quad core home pc.
Thanks for this..........
Posts: 11
Joined: Aug 2010
Reputation:
0
2010-12-23, 02:26
Hi,
I'm a bit confused by all of the articles that appear on the forum regarding converting the fan-art jpg's to dds images. I know that I have to add
<useddsfanart>true</useddsfanart>
to the advancedsettings.ini file in order that it starts using dds images instead.
However what confuses me is that in new versions of XBMC (r28714 and above), XBMC will create the dds images when you view the fan-art of each movie. So does this mean that I no longer have to use one of the batch processes and the NVidia Texture tool to batch convert all of the fan-art images as XBMC does this automatically each time a scroll past a movie?
I have the latest stable release (Dharma 10.0, Live version) with the Aeon65 skin running on an Acer 3610. This skin is a little bit slow when scrolling through movies and this seems to be the best way to speed things up.
Thanks.
Posts: 82
Joined: Dec 2010
Reputation:
0
I love the dds fanart option, truly very fast. Only problem is that my fanart sometimes disappears after a while, starting a video and going back fixes this problem. I think this happens when I scroll too fast, but im not sure. Anybody else with this issue.
Besides adding the setting in the advancedsettings.xml is there something else that you can do to tweak things?
Posts: 329
Joined: Nov 2009
Reputation:
0
2011-01-05, 02:43
(This post was last modified: 2011-01-05, 02:57 by Malexx.)
Iam a litle bit lost here.
Will the Extrathumbs and extrafanart i have in my MovieName Root Folder also automaticly becompressed when using the advancedsettings?
Or do i need to compress them.
And which tool is required if i want to compress the fanarts manually and the thumbs etc also?
i Searched through the Thread but its not clear for me.
Thanks in Advance
Posts: 17
Joined: Jan 2011
Reputation:
0
I'm in the middle of writing up a comprehensive guide for optimising the performance of Apple TV; so far I've taken the Alaska Revisited skin stripped it down to the core, repacked the textures for speed, written up some startup scripts to disable unnecessary services (Printer, Airtunes, Network Time, PBS etc) and given XBMC a 'nice' high priority, optimised all image and XML files to take up a small footprint and it seems to be working. We only have 250megs of RAM to work with and a bad processor but so far so good.
I'm on the bit where I'm optimising the fan art, I've temporarily disabled DDS in advancedsettings.xml so that I can optimise the JPG files (currently set at .tbn). My question is this; A current fan-art downloaded with a file size of 100kb, when optimised with certain tools gives me a 50-60% optimisation, so let's say it's reduced to 50kb in file size. If I then enable DDS in advancedsettings.xml, will it re-encode the existing optimised 50kb file or will it download the original file, re-encode, then save as a DDS, ultimately negating the initial optimisation?
Thank you.
Posts: 29
Joined: Nov 2010
Reputation:
0
I recently tried enabling DDS for thumbs as the normal thumbs were taking too long to load on my Mac Mini (2009 model), however since doing so XBMC has become very jerky when browsing the library.
If I'm using the Panel view in Alaska Revisited, for example, whenever I skip down a row of thumbs XBMC freezes momentarily before displaying the next row.
The weird thing is that DDS works perfectly on my PC, with exactly the same scraper/skin settings. I also tried it on another Mac, which is of a similar spec to the PC, and that has the same issues with jerkiness.
Is there something in the Mac's settings that needs to be changed in order for DDS to work properly?
Any help would be appreciated. Cheers.