Anim8or Community

Please login or register.

Login with username, password and session length
Advanced search  

News:

Ian Ross has just released a book on Anim8or. It's perect for a beginner and a good reference for experienced users. It contains detailed chapters on every aspect, with many examples. Get your own copy here: "Anim8or Tutorial Book"

Pages: [1] 2

Author Topic: Implementation of PNG in v0.96 or v0.97  (Read 27794 times)

cumesoftware

  • Jr. Member
  • **
  • Posts: 67
    • View Profile
    • Cume Software official website
Implementation of PNG in v0.96 or v0.97
« on: January 16, 2008, 12:34:29 pm »

It would be a big jump for Anim8or to support other formats than BMP or JPEG. There is the possibility of some formats being proprietary, but that is not the case of PNG. Basically, my idea is to implement the PNG format both when importing textures or rendering images.

PNG is a lossy compressed format that supports 32bit images, it even supports 16bit per channel (making 48bits per pixel). This makes PNG suitable for this application, where a true color image is needed and quality with compression is important too. The PNG standard is completely patent free, so it can be used with no restrictions. Also, PNG support is increasing through out the world. Many aplications already support it.

The only negative aspect is that the standard might take some time to implement in this program, so perhaps it is to be implemented in v0.97. I would recommend PNG Specification, version 1.2, which is entirely compatible with the joint W3C and ISO/IEC version, and perhaps the most used.
Logged

anim8orblenderman

  • Newbie
  • *
  • Posts: 36
    • View Profile
Re: Implementation of PNG in v0.96 or v0.97
« Reply #1 on: January 23, 2008, 07:33:26 pm »

What's PNG?Any pictures in PNG?Is the quality better or worse?
Logged

cumesoftware

  • Jr. Member
  • **
  • Posts: 67
    • View Profile
    • Cume Software official website
Re: Implementation of PNG in v0.96 or v0.97
« Reply #2 on: January 23, 2008, 07:56:05 pm »

What's PNG?Any pictures in PNG?Is the quality better or worse?
The quality is better than JPEG. PNG is a lossless compressed format, while JPEG uses lossy compression to store a image. This means that a JPEG image will have distortion, even when saved with the best quality. Consider a PNG image as a zipped BMP ready to be seen with any browser.

You can google for "PNG" to see images as well.

P.S.: The PNG implementation is pretty much done. You can get the official PNGLib for free.
« Last Edit: January 23, 2008, 08:05:14 pm by cumesoftware »
Logged

Dasoccerguy

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: Implementation of PNG in v0.96 or v0.97
« Reply #3 on: January 24, 2008, 09:43:28 pm »

PNG support would be a WONDERFUL addition.

not to change the subject, but i think  animated GIF support would be useful, in both importing and exporting. i know there are programs that turn a series of still images into an animated GIF, but it could be very useful if Anim8or could render Anim8ed GIFs.
Logged

reversegecko

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Implementation of PNG in v0.96 or v0.97
« Reply #4 on: January 29, 2008, 08:05:08 pm »

Hey guys, just a few thoughts about how PNG  support would help anim8or users:

- PNG has support for an alpha channel (not just all-or-none alpha as in GIF), which many game engines use since it reduces the work of the artist who otherwise has to make two textures and load them, it also is more work for script writers or programmers working with anim8or.

- Lossy compression is not that bad when saved once, but often times when creating content for a video or a game things get continually improved and each time a texture is changed and saved as a jpeg, its quality degrades futher. We do have lossless compression with BMP and GIF, however file size of BMP and color limitations of GIF and lack of good alpha support for both make them not ideal in many circumstances. I understand that BMP does support compression but that feature seems to go mostly unused.

Those are just some things that came up when working on electropy.
Logged

anim8orblenderman

  • Newbie
  • *
  • Posts: 36
    • View Profile
Re: Implementation of PNG in v0.96 or v0.97
« Reply #5 on: February 03, 2008, 02:07:05 pm »

Blender has PNG.Though what you might be able to do is take a anim8or file save as .3d not .an8 and export to blender and render.
Dunno if this works.Jest a guess.
Logged

csf

  • Newbie
  • *
  • Posts: 26
    • View Profile
    • CSF On The Web
Re: Implementation of PNG in v0.96 or v0.97
« Reply #6 on: February 15, 2008, 01:38:27 am »

Png would be a great feature.
Logged
AKA coaster sim. fan on the old boards

cumesoftware

  • Jr. Member
  • **
  • Posts: 67
    • View Profile
    • Cume Software official website
Re: Implementation of PNG in v0.96 or v0.97
« Reply #7 on: February 19, 2008, 09:12:38 am »

...Lossy compression is not that bad when saved once, but often times when creating content for a video or a game things get continually improved and each time a texture is changed and saved as a jpeg, its quality degrades futher. We do have lossless compression with BMP and GIF, however file size of BMP and color limitations of GIF and lack of good alpha support for both make them not ideal in many circumstances. I understand that BMP does support compression but that feature seems to go mostly unused...
Just to add a point:
The compression used in the PNG format is lossless as well. You can load and save a PNG image as many times you wish, and all of its pixels will be fully preserved. JPEG may be handy, but even when saved using the best of quality (and smallest compression) the image will be degraded.
Logged

azonenberg

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Implementation of PNG in v0.96 or v0.97
« Reply #8 on: February 19, 2008, 11:46:14 am »

I would love to see the ability to export alpha channels, whether as a separate BMP (like the depth channel) or as a combined PNG
Logged

hihosilver

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1294
    • View Profile
Re: Implementation of PNG in v0.96 or v0.97
« Reply #9 on: February 20, 2008, 03:01:03 am »

You can currently export the alpha channel as a .bmp or .jpg
I do agree with this though, .png's would be nice.
Logged

cumesoftware

  • Jr. Member
  • **
  • Posts: 67
    • View Profile
    • Cume Software official website
Re: Implementation of PNG in v0.96 or v0.97
« Reply #10 on: March 28, 2008, 08:11:11 pm »

I would love to see the ability to export alpha channels, whether as a separate BMP (like the depth channel) or as a combined PNG
Indeed, as long as the user, when exporting to PNG, could export as a single combined PNG or as two PNGs, one containing the alpha channel. Importing combined PNGs would be good, too. Nevertheless, simply implementing PNGs would be a great step, since I expect it to be very complex and troublesome.
Logged

thecolclough

  • Sr. Member
  • ****
  • Posts: 890
  • 3D Ignoramus 1988-2002, Anim8or User 2002-present.
    • View Profile
    • www.mattghc.com
Re: Implementation of PNG in v0.96 or v0.97
« Reply #11 on: March 31, 2008, 05:20:44 pm »

i only discovered the joys of the PNG format quite recently, but i really like it now.  i'll jump on the bandwagon and join in the request for PNG implementation in anim8or.  *jumps*

- colclough
Logged

flametiger74

  • Full Member
  • ***
  • Posts: 152
    • View Profile
Re: Implementation of PNG in v0.96 or v0.97
« Reply #12 on: March 31, 2008, 07:07:42 pm »

I'm not sure if this has been mentioned yet, but another good thing about PNG is that it supports invisible pixels. Instead of a texture having be be a texture in the middle with a white background it would be a texture in the middle and that would be it.
Logged

cumesoftware

  • Jr. Member
  • **
  • Posts: 67
    • View Profile
    • Cume Software official website
Re: Implementation of PNG in v0.96 or v0.97
« Reply #13 on: April 04, 2008, 09:18:06 am »

I'm not sure if this has been mentioned yet, but another good thing about PNG is that it supports invisible pixels. Instead of a texture having be be a texture in the middle with a white background it would be a texture in the middle and that would be it.
Never heard about that feature of PNG. Are you referring to invisible pixels as hidden pixels (an additional layer), or as transparent pixels (alpha channel)?
Logged

thecolclough

  • Sr. Member
  • ****
  • Posts: 890
  • 3D Ignoramus 1988-2002, Anim8or User 2002-present.
    • View Profile
    • www.mattghc.com
Re: Implementation of PNG in v0.96 or v0.97
« Reply #14 on: April 04, 2008, 10:18:15 am »

i think flametiger's probably on about alpha channels.

right, flametiger?

- colclough
Logged
Pages: [1] 2