It's not great, but that is pretty much how it's done. We used to do exactly that to implement simple "unit tests" for rendering functionality.
Be aware that subtle differences between drivers can cause significant drift in the output image. Gamma correction tends to subtly change output colours, and even triangle rasterisation isn't pixel-perfect between driver vendors and versions... On Fri, 15 Dec 2017 at 10:15 Douglas Urbano <[email protected]> wrote: > Hi, > > I need to draw 100 triangles and then get the final image and compare with > another one but the only solution that I found is to draw on the screen and > use glReadPixels to read the final image, I don't think that is a good > idea but I didnt find any other way. > Can someone help me ? > > Thanks in advance. > > -- > You received this message because you are subscribed to the Google Groups > "pyglet-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/pyglet-users. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "pyglet-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/pyglet-users. For more options, visit https://groups.google.com/d/optout.
