[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Public WebGL] The Newly Expanded Color Space Issue

 On 09/09/2010 03:56, stephen white wrote:
> The important part is getting the raw values. The sRGB vs linear argument is intricate but it is also a finer detail. Raw is more important than linear _or_ sGRB.
> Drawing unlit images in OpenGL should result in the same appearance as the <img> tag,
> ...
> and that OpenGL has an existing precedence in sRGB textures (fur future WebGL expansion), I think that having the schizophrenic raw import of data and sRGB composition is one of those mathematical hacks we still need to live with for now. 

Do you see the contradiction between your two statements?

In the pure 2D case, the browser is applying color correction from the
color space of the <img> to the color space of the display. If you
insist on passing only raw values to GL, then you can never get the same
appearance as the <img> tag for an unlit image unless the application
applies the same correction. Since the application has no way to query
either the image color space or the display color space, this is
currently impossible.


fn:Mark Callow
org:HI Corporation;Graphics Lab, Research & Development
adr:Higashiyama 1-4-4, Meguro-ku;;Meguro Higashiyama Bldg 5F;Tokyo;;153-0043;Japan
title:Chief Architect
tel;work:+81 3 3710 9367 x228
tel;fax:+81 3 5773 8660
url:http://www.hicorp.co.jp,  http://www.mascotcapsule.com