Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » Draw, Display, Images, Bitmaps, Icons » saving a paletted PNG
Re: saving a paletted PNG [message #6080 is a reply to message #6067] Mon, 30 October 2006 01:18 Go to previous messageGo to previous message
lindquist is currently offline  lindquist
Messages: 33
Registered: March 2006
Location: Denmark
Member
I have a terrain editor, which uses alpha layers for texturing. Each alpha layer has one byte per vertex: 0-transparent ; 255-opaque.
I'm trying to implement a export method that collapses the layers into a single indexed png with the pixel index being the material index. a material map.

vertices that have semi-transparent layers pick the least transparent one.

I would personally dump the bytes in a binary blob, but I have request for the indexed png :/
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: StreamRaster::LoadAnyFile -- not exist in distribution?
Next Topic: Draw Objects with Wallpapers, ...
Goto Forum:
  


Current Time: Thu May 01 14:02:19 CEST 2025

Total time taken to generate the page: 0.00908 seconds