DDS

Post here about scripting and programming for HaloPC (audio, network, ai, etc.)
Post Reply
Zenaku213





Posts: 185
Joined: Thu Jun 02, 2005 12:09 pm
Location: In your walls.

DDS

Post by Zenaku213 »

what code do you use to have a DDS image load into a picturebox?
CLuis wrote:Being goth is a disease.
All those losers in gym must have it then.
xxANTMANxx





Posts: 108
Joined: Sat May 07, 2005 8:21 pm
Contact:

Post by xxANTMANxx »

its alot of code so i cant really help you sorry
Patrickssj6




Pi Collaborator

Posts: 5426
Joined: Sat Jul 24, 2004 12:12 pm
Location: I'm a Paranoid
Contact:

Post by Patrickssj6 »

There is premade image viewers methinks.Ask a guy called FireScythe on Gearbox. :D
...left for good
Zenaku213





Posts: 185
Joined: Thu Jun 02, 2005 12:09 pm
Location: In your walls.

Post 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
CLuis wrote:Being goth is a disease.
All those losers in gym must have it then.
Kurroda





Posts: 1737
Joined: Sat Sep 03, 2005 10:01 am
Contact:

Post 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
Image
FireScythe





Posts: 42
Joined: Tue Jun 08, 2004 2:52 am

Post 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:
Patrickssj6




Pi Collaborator

Posts: 5426
Joined: Sat Jul 24, 2004 12:12 pm
Location: I'm a Paranoid
Contact:

Post by Patrickssj6 »

I told you FireScythe got it :D
...left for good
Zenaku213





Posts: 185
Joined: Thu Jun 02, 2005 12:09 pm
Location: In your walls.

Post 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:(
CLuis wrote:Being goth is a disease.
All those losers in gym must have it then.
chiefdestroyer





Posts: 13
Joined: Thu Mar 03, 2005 7:53 pm

.dds files rednering code

Post 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
FireScythe





Posts: 42
Joined: Tue Jun 08, 2004 2:52 am

Post 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.
Zenaku213





Posts: 185
Joined: Thu Jun 02, 2005 12:09 pm
Location: In your walls.

Post 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?
CLuis wrote:Being goth is a disease.
All those losers in gym must have it then.
FireScythe





Posts: 42
Joined: Tue Jun 08, 2004 2:52 am

Post 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 .
Zenaku213





Posts: 185
Joined: Thu Jun 02, 2005 12:09 pm
Location: In your walls.

Post 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
CLuis wrote:Being goth is a disease.
All those losers in gym must have it then.
FireScythe





Posts: 42
Joined: Tue Jun 08, 2004 2:52 am

Post 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.
Kurroda





Posts: 1737
Joined: Sat Sep 03, 2005 10:01 am
Contact:

Post 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
Image
chiefdestroyer





Posts: 13
Joined: Thu Mar 03, 2005 7:53 pm

DDS troubles

Post 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
Zenaku213





Posts: 185
Joined: Thu Jun 02, 2005 12:09 pm
Location: In your walls.

Post by Zenaku213 »

Why did you bump like a 2 month old topic?
CLuis wrote:Being goth is a disease.
All those losers in gym must have it then.
chiefdestroyer





Posts: 13
Joined: Thu Mar 03, 2005 7:53 pm

Post 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
Post Reply