Post

 Resources 

Console

Home | Profile | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 VBGamer
 VBGamer
 Bittersweet PNG
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

EACam
Warrior

154 Posts

Posted - May 10 2004 :  10:40:13 AM  Show Profile  Reply with Quote
PNG...portable network graphic...i can't even tell if its lossy compression or not! But it is certainly lossy when it comes to file size!!!

It's really great, as far as I can tell...

That was the sweet part...here's the bitter:

LoadPicture can't load it! And that means I can't convert it to BMP when loading my textures! Which means i'm stuck with big boy bmp!

Does anyone know where I can get some loading/converting code to get PNG to BMP?

VBBR
Moderator

Brazil
617 Posts

Posted - May 10 2004 :  10:59:24 AM  Show Profile  Reply with Quote
Usually if you are using DirectX you can use D3DX to load PNGs for you (I think)...

And the best of PNG is, it is totally royalty-free! At least I think it is.

(hope thet Eric doesn't come here and writes something like, "it's not really free blah blah" and ruins my happiness... )


Whatever. Who knows...
Go to Top of Page

Sr. Guapo
Swordmaster

USA
272 Posts

Posted - May 10 2004 :  11:27:06 AM  Show Profile  Reply with Quote
I'm pretty sure that D3DX can load .PNG images. If you look at the DirectX 4 vb tutorials, I think that that is mostly what they use.
Go to Top of Page

EACam
Warrior

154 Posts

Posted - May 10 2004 :  11:47:43 AM  Show Profile  Reply with Quote
ahah! Thanks!

(PNG rocks)
Go to Top of Page

VBBR
Moderator

Brazil
617 Posts

Posted - May 10 2004 :  12:54:32 PM  Show Profile  Reply with Quote
Yeah I assumed DirectX loaded them because the Engine I use (Revolution3D) can use PNGs as textures also, and it is made over DX9.

Whatever. Who knows...
Go to Top of Page

Eric Coleman
Gladiator

USA
811 Posts

Posted - May 10 2004 :  7:24:28 PM  Show Profile  Visit Eric Coleman's Homepage  Reply with Quote
You can use them DX8, but for DX 7 you'll need to use a png image file loader. Search google for "lib png" and you might find some hits. I'm not sure if it was at the vbexplorer forums or the visualbasicforums.com website, but someone had a png dll for download.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
VBGamer © Go To Top Of Page
This page was generated in 0.09 seconds. Snitz Forums 2000

Copyright © 2002 - 2004 Eric Coleman, Peter Kuchnio , et. al.