Quote:
Originally Posted by pro4never
QUESTION!
How much do dds files piss people off? As it currently exists my map editor uses both dds and jpg copies. The jpgs are used in the editor portion (nasty workaround. Winforms cannot display dds images nor xna textures... Easiest to just batch convert them and be able to use them both.)
If people wanted I could just change it so that all through editing you worked with jpeg images (they are all flat terrain anyways. Worst outcome is you lose a bit of pic quality) and then it only switched back to dds when adding the map to the client.
I'd love some input... but up to you guys.
PS: not sure if I posted actual images of the editor here yet...
|
I think you'll find the following link interesting:
[Only registered and activated users can see links. Click Here To Register...]
It doesn't allow for all kinds of DDS files and can return a few errors on a select few DDS files in the EO client that I know of, but about 99% of EO dds files load no problem with this :)
You could also learn about creating your project as a Windows Game, then adding the forms, then you can learn about using content pipeline on the fly for external files.
As for loading files using the DDSLib
Code:
DDSLib.DDSFromFile("textureFileName.dds", GraphicsDevice, false, out targetTexture);
Graphics device can be found using your XNA control I name mine with xpb prefix
example:
Code:
xpbXNAPictureBox.GraphicsDevice
Above won't work until after the XNA control has been initalised