Login  Register

Re: Compare two textures pixelwise (for test purpose)

Posted by Martin on Oct 16, 2015; 1:50pm
URL: https://forum.jogamp.org/Compare-two-textures-pixelwise-for-test-purpose-tp4035481p4035486.html

Hi again,

Not sure Buffer offers such an interface (getRGB(x,y))

http://jogamp.org/deployment/jogamp-next/javadoc/jogl/javadoc/com/jogamp/opengl/util/texture/TextureData.html

lead to

http://docs.oracle.com/javase/6/docs/api/java/nio/Buffer.html?is-external=true

which as no getRGB

2015-10-16 15:34 GMT+02:00 gouessej [via jogamp] <[hidden email]>:
Hi

You can use getBuffer() but such a comparison would work if and only if both instances of TextureData use the same color space, the same pixel format, etc.


If you reply to this email, your message will be added to the discussion below:
http://forum.jogamp.org/Compare-two-textures-pixelwise-for-test-purpose-tp4035481p4035485.html
To unsubscribe from Compare two textures pixelwise (for test purpose), click here.
NAML