I’m having some problems with the new sRGB features.
I’ve put “framebuffer-srgb true” in my prc, and that works fine, but now I’d like to load and display a texture that is plain old linear RGB. In this case it’s a color-picker so it is important that the color shown is the color selected (I pull the coordinate of the mouse cursor and then use PNMImage to read back the pixel color from the image file)
This is how it looks with framebuffer-srgb false:
and this is how it looks with framebuffer-srgb true:
I want to display this image as it is seen on the first screen.
This didn’t work :
tex = loader.loadTexture('data/color_picker.png') tex.setFormat(Texture.F_rgba) picker=DirectFrame(frameSize=_rec2d(256,256), frameColor=(1,1,1,1), state=DGG.NORMAL, frameTexture=tex, parent=self.colorPickerFrame)