husker-dev / openglfx

OpenGL implementation for JavaFX
Apache License 2.0
80 stars 10 forks source link

Alpha is abnormal. #73

Closed DontingK closed 6 months ago

DontingK commented 6 months ago

Describe the bug This is my test using openglfx on jmonkeyengine. The alpha looks incorrect and the font is a little blurry in the rendering. I don't know what caused it.

this is init jemrender to fx canvas =new GLCanvas(LWJGL2Executor.LWJGL2_MODULE, GLProfile.Compatibility,false,samples,false);

To Reproduce

Screenshots image

Environment:

DontingK commented 6 months ago

Describe the bug This is my test using openglfx on jmonkeyengine. The alpha looks incorrect and the font is a little blurry in the rendering. I don't know what caused it.

this is init jemrender to fx canvas =new GLCanvas(LWJGL2Executor.LWJGL2_MODULE, GLProfile.Compatibility,false,samples,false);

To Reproduce

Screenshots image

Environment:

  • OS: [win10 22H2 19045.3570]
  • openglfx version: [4.0.5]

Using the openglfx-lwjgl2:4.0.5 On the left is fx. On the right is jme.

husker-dev commented 6 months ago

The blurry text looks as if the entire image is rendered 1-5 pixels smaller than needed, and then stretched to the window size.

I can’t say anything about incorrect alpha blending. openglfx does not directly interact with it, but only takes the pixels of the final image. There may be an incorrect pixel format - RGBA/RGBA_PRE.

Look this way.

DontingK commented 6 months ago

Is this the problem with the way I use it or the library itself. I'm not sure if it's my problem.

husker-dev commented 6 months ago

This doesn't look like a library problem. Check what I wrote above