Closed ulrivo closed 1 year ago
Hey @ulrivo,
Is this the same for every image? Which platform are you on? (lisp, os) If not all images are shown like this, could you send me the exact image you're using?
Thanks!
I tried different PNG-files, the colors are always twisted - wrong texture?
I am using CCL64 (Clozure Common Lisp Version 1.11.6 DarwinX8664) on Mac OS X and attach a PNG which is shown in blue instead of red.
I have the same issue, changing :bgra
to :rgba
here solves this problem.
SBCL 2.1.5
Manjaro x64
@n00p3 any ideas on how we could identify the correct parameter here?
@vydd
Quick & dirty solution would be to use imagemagick to identify colorspace of image
identify -verbose image.png | grep Colorspace | awk '{ print $2 }'
but this is far from acceptable answer. I don't know much of OpenGL to help with this topic.
How about letting user specify format when loading resource? Something like this (load-resource "image.png" :format :rgba)
If I load a PNG-file, instead of red the color blue is rendered.
(defsketch image ((title "image") (width 500) (height 600)) (image (load-resource "png/my-image.png") 100 50)