Re: Fragment Shader of FP16 produces incorrect image drawing.

2017-11-27 Thread YoungJun Jo
Hi Jasper, Unfortunately, my GPU supports FP32 in the vertex shader, but only FP16 in the fragment shader. I have changed from 'precision mediump' to 'precision highp' according to your advice, but the problem has not been solved. The fixed-point interpolation you mentioned is already included in

Re: Fragment Shader of FP16 produces incorrect image drawing.

2017-11-21 Thread Pekka Paalanen
On Tue, 21 Nov 2017 17:08:51 +0900 YoungJun Jo wrote: > Hi, > > The uploaded image was not capture using the camera or mobile phone. > I captured image using the screenshot program. > So that's not related display signals or illusion or the human vision. > The triangle error is shown in the top-

Re: Fragment Shader of FP16 produces incorrect image drawing.

2017-11-21 Thread Jasper St. Pierre
Hi, If you're worried about FP16 interpolation accuracy (which, as the vendor states, only gets you 10 bits of accuracy, so only 1024 different values -- definitely not big enough to drive a maximized window at normal desktop resolutions), you can try using normalized GL_SHORT texture coordinates

Re: Fragment Shader of FP16 produces incorrect image drawing.

2017-11-21 Thread YoungJun Jo
Hi, The uploaded image was not capture using the camera or mobile phone. I captured image using the screenshot program. So that's not related display signals or illusion or the human vision. The triangle error is shown in the top-right area when you see the image with the original image state of 1

Re: Fragment Shader of FP16 produces incorrect image drawing.

2017-11-20 Thread Christian Stroetmann
Am 20.11.2017 09:08, schrieb Pekka Paalanen: On Sat, 18 Nov 2017 20:42:44 +0900 YoungJun Jo wrote: Hi pq, Thank you for your response. However, weston_matrix *is* using float instead of double. Is that the problem? No. according to your analysis, it does not seem to be the cause of the thi

Re: Fragment Shader of FP16 produces incorrect image drawing.

2017-11-20 Thread Pekka Paalanen
On Sat, 18 Nov 2017 20:42:44 +0900 YoungJun Jo wrote: > Hi pq, > > Thank you for your response. > > > However, weston_matrix *is* using float instead of double. Is that the > > problem? > > No. according to your analysis, it does not seem to be the cause of the this > problem. > > > During

Re: Fragment Shader of FP16 produces incorrect image drawing.

2017-11-18 Thread YoungJun Jo
Hi pq, Thank you for your response. > However, weston_matrix *is* using float instead of double. Is that the > problem? No. according to your analysis, it does not seem to be the cause of the this problem. > During animations and any transformations that apply scaling, it is > expected that the

Re: Fragment Shader of FP16 produces incorrect image drawing.

2017-11-17 Thread Pekka Paalanen
On Fri, 17 Nov 2017 17:30:47 +0900 YoungJun Jo wrote: > Dear all, > > In the weston environment, there is a problem when displaying a specific > image using the GPU(Fragment Shader(FS) only supports FP16). > In fact, I think it's not common case to use a GPU with FS of FP16 > constraints in a de