Page 1 of 1

DDS

Posted: Mon Jan 16, 2006 4:04 pm
by Zenaku213
what code do you use to have a DDS image load into a picturebox?

Posted: Tue Jan 17, 2006 3:38 pm
by xxANTMANxx
its alot of code so i cant really help you sorry

Posted: Tue Jan 17, 2006 3:41 pm
by Patrickssj6
There is premade image viewers methinks.Ask a guy called FireScythe on Gearbox. :D

Posted: Tue Jan 17, 2006 7:58 pm
by Zenaku213
xxANTMANxx wrote:its alot of code so i cant really help you sorry
wtf is wrong with you every time some aska question you give stupid ass annswers like: prgram it too:| or like what you said now if yya cant help stfu

Posted: Wed Jan 18, 2006 6:05 pm
by Kurroda
yeah ANTMAN there really is no reason to post on a topic you cant answer but except the people who just want to get there post count they will reply to every topic

Posted: Thu Jan 19, 2006 10:50 am
by FireScythe
Theres an image library called DevIL which can open a whole lot and save a whole lot. You can find more info about it here: http://openil.sourceforge.net/

The library on its own is for use in non-.NET languages but someone called Marco Mastropaolo made a .NET wrapper that allows it to be used in .NET languages quickly and simply. You can get it here.
It loads the image into a System.Drawing.Bitmap so its really easy to show it in a picture box :wink:

Posted: Thu Jan 19, 2006 11:42 am
by Patrickssj6
I told you FireScythe got it :D

Posted: Thu Jan 19, 2006 2:30 pm
by Zenaku213
Thank you firescythe

also im preety stupid. DO i need to donwload both of those things, and to make it wrok umm how do i include it into my porgram cuase when i tired adding a refernece it doestn wrok:(

.dds files rednering code

Posted: Thu Jan 19, 2006 9:40 pm
by chiefdestroyer
i also had a try at loading .dds files into picture holder of some kind but i can not just import a libary cause i am using java so i ended up looking through darkmatter source code on how he rendered the .dds files not easy stuff i have not done it yet but if you want to do it with out libarys the code is there if you are using c# you could just copy and paste really it is hard trying to under stand it cause some of the names he has used are not very easy to make out what it means IE int poo ???? lol but that is how i am going to try and read my .dds files

Posted: Fri Jan 20, 2006 11:39 am
by FireScythe
Zenaku213 wrote:Thank you firescythe

also im preety stupid. DO i need to donwload both of those things, and to make it wrok umm how do i include it into my porgram cuase when i tired adding a refernece it doestn wrok:(
Well the .NET library should come with all the dlls required but I advise replacing them with the dlls found on the DevIL website to make sure their up to date. I think the dlls are devil.dll, ILU.dll and IL.dll but I cant be sure.

You only need to reference the Devil.NET.dll, because that is the interface to the DevIL library. Just make sure all the dlls are in the same place.

Posted: Fri Jan 20, 2006 2:46 pm
by Zenaku213
well i tried loading them in VB 2005 EE and i think they work, but when i try them in VB.net 2003 i get something that says about COM and that thier valid format?
EDIT:: DO i have to place the dll folder in the Project folder?

Posted: Fri Jan 20, 2006 5:02 pm
by FireScythe
I've only used VB.NET 2005 EE, but i'm assuming the program compiling is the same. When I compile a program it automatically copies the devil.net.dll reference to the project/bin (or where ever the exe is compiled to) but it doesnt copy the devil.dll, IL.dll,etc. So those have to be manually put in the same folder.

Also from looking at the site I get the impression that devil.net V1.2 is .NET V2.0 only so if VB.NET 2003 uses .NET V1.* then you'll need to use the devil.net V1.1 .

Posted: Fri Jan 20, 2006 8:56 pm
by Zenaku213
YES!! 1.1 worked thank you very much Fire putin you in da credits;)
but one more thing some bitmaps like i think DXT2/3 or higher dont load? i get a nullexception thing

Posted: Sat Jan 21, 2006 2:33 pm
by FireScythe
There could be something wrong with the bitmaps then. I've never had any trouble with any DXT types. Just make sure you've got the latest DevIL library, could be a bug if your using a previous version.

Posted: Mon Jan 23, 2006 1:56 pm
by Kurroda
can i get a little help i added the reference but i cant figure out how to use it i am using VB.NET 2005 EE

DDS troubles

Posted: Wed Mar 29, 2006 11:52 pm
by chiefdestroyer
I am also having difficult rendering and outputting some DDS files DXT ones i am extracting them from the make and decoding them into a raw rgba stuct and then adding a bitmap header onto them and turning it into a bufferedImage and then rendering it

PROBLEMS
puts a blue shade of there image
reverse the pixcels so the top is actualy at the bottom

i have left my code on the storage area i know it is a forum but i only use it to store files please do not post on there or anything the code is in java but most C# users should understand it

http://www.halo2mutator.5gigs.com/forum ... ad.php?t=5

Posted: Thu Mar 30, 2006 2:59 pm
by Zenaku213
Why did you bump like a 2 month old topic?

Posted: Thu Mar 30, 2006 11:18 pm
by chiefdestroyer
cause it was better than getting abused for creating a new topic based on the same kinda of problem (DDS). but any one got any ideas of why it does have the problems there is a output file of what it puts out currently