[Bf-committers] image editor / draw alpha

Ton Roosendaal ton at blender.org
Tue Jun 13 21:21:35 CEST 2006


Hi,

The rgba rects in Blender fully follow the opengl standard for 32 bits  
graphics.
Alpha is not "lumincance" really...

We do store the 32 bits color in a single unsigned int yes, but it is  
only read by interpreting it as a char array, so endian insensitive.

-Ton-

On 13 Jun, 2006, at 20:56, Branan Riley wrote:

> Whilst looking at the rgb/bgr jpeg issue (which is very strange, still
> needs messing with) I noticed something odd in the image code.
>
> Rather than showing just the alpha as luminance as it should, it shows
> ABGR (ARGB? does blender use RGB or BGR internally?) as a single
> 32-bit luminance value.
>
> This isn't what's intended, I'd expect. I don't see how it can be
> fixed easily, either. Off the top of my head, there are three
> solutions:
>
> (A) sperating the alpha data before re-drawing (slow)
> (B) Doing (A) once when the image is created / loaded, and storing the
> result with the image buffer
> (C) getting rid of the ability to draw just the alpha.
>
> I can implement (A) in a matter of minutes. (B) would involve changes
> to how data is stored, which would mean SDNA stuff, which I know
> nothing about. Anyone have an opinion on how best to fix this?
> _______________________________________________
> Bf-committers mailing list
> Bf-committers at projects.blender.org
> http://projects.blender.org/mailman/listinfo/bf-committers
>
>
>
------------------------------------------------------------------------ 
--
Ton Roosendaal  Blender Foundation ton at blender.org  
http://www.blender.org



More information about the Bf-committers mailing list