Author Topic: Feature: PNG Support  (Read 4808 times)

Eiii

  • Autococker
  • Posts: 4595
Feature: PNG Support
« on: January 05, 2008, 06:24:51 PM »
May make texture packs a bit bulky, but hopefully the losslessness will be worth it.

jitspoe

  • Administrator
  • Autococker
  • Posts: 18801
Re: Feature: PNG Support
« Reply #1 on: January 05, 2008, 06:47:53 PM »
It would be good to replace TGA's for 32bit (alpha channel) images, but I think jpeg's are still the way to go for solid textures.  If you set the quality high enough (96%+), you can't really see the artifacts, especially on high-res textures.

http://dplogin.com/dplogin/featurevote/feature.php?id=10013

ViciouZ

  • Map Committee
  • Autococker
  • Posts: 2227
Re: Feature: PNG Support
« Reply #2 on: November 30, 2008, 01:11:50 PM »
Just tried implementing this from R1GL, seems to have worked so far. I just need to test it on linux. Compiling zlib and libpng was the real work :P


T3RR0R15T

  • Map Committee
  • Autococker
  • Posts: 2593
Re: Feature: PNG Support
« Reply #3 on: November 30, 2008, 02:37:59 PM »
ViciouZ u have too much time.

But thats great for the game, big thanks :D



Work an APNG file too?

i_am_a_pirate

  • Autococker
  • Posts: 759
Re: Feature: PNG Support
« Reply #4 on: December 01, 2008, 10:22:47 AM »
haha, PLZZZZ!!!!!!! lol. Animated textures... now there's coolness. The only problem is that if you animate one of, say a moving wall, would the wall actually move or would it just be a pic of a moving wall?

vic: those pics look SPEXXY!!!!

ViciouZ

  • Map Committee
  • Autococker
  • Posts: 2227
Re: Feature: PNG Support
« Reply #5 on: December 01, 2008, 10:34:23 AM »
It would not move the wall. Animated textures are already supported using rscripts, and no, T3RR0R, it doesn't work with APNG or MNG images. It would display the first frame of APNG and not load MNG at all.

Having some problems compiling it on linux though, linking errors with libpng.

jitspoe

  • Administrator
  • Autococker
  • Posts: 18801
Re: Feature: PNG Support
« Reply #6 on: February 13, 2009, 02:58:27 AM »
So, I've got your changes.  Did you commit everything?  It looks like the PNG reading code is there, but there's nothing to replace the file extension with "png" during the loading.

ViciouZ

  • Map Committee
  • Autococker
  • Posts: 2227
Re: Feature: PNG Support
« Reply #7 on: February 13, 2009, 10:14:35 AM »

jitspoe

  • Administrator
  • Autococker
  • Posts: 18801
Re: Feature: PNG Support
« Reply #8 on: February 13, 2009, 01:31:17 PM »
Ah, that's weird.  I swear I searched for ".png" and didn't find anything.

I've fixed the downloading code to check for PNG first, but CVS is acting up and won't let me commit.

Edit: There it goes.

Zorchenhimer

  • Autococker
  • Posts: 2614
Re: Feature: PNG Support
« Reply #9 on: February 13, 2009, 11:44:34 PM »
I still need to get the CVS client working on one of my machines so I can start helping out.  :(

UDead

  • Autococker
  • Posts: 592
Re: Feature: PNG Support
« Reply #10 on: June 14, 2009, 02:27:16 PM »
how do you get the png file im the map?

T3RR0R15T

  • Map Committee
  • Autococker
  • Posts: 2593
Re: Feature: PNG Support
« Reply #11 on: June 14, 2009, 02:43:55 PM »
Like each other texture