Page 1 of 1

OpenGL3 and Aliasing

Posted: 11 Sep 2019, 08:59
by mthor13
Dear Coppelia Robotics,

I successfully compiled V-REP with openGL3 renderer for cameras. However, it seems like there is a lot of aliasing when using OpenGL3 (see below image).

Image

Is there any way to solve this or will it be addressed in future updates?

Best Regards,
Mathias Thor

Re: OpenGL3 and Aliasing

Posted: 12 Sep 2019, 12:34
by coppelia
Hello Mathias,

the problem is common when dealing with shadows. You have several parameters you can try to play with, to reduce the effect. Those parameters can be found in the extension string of light objects. Typically:

Code: Select all

openGL3 {lightProjection {nearPlane {0.1} farPlane {10} orthoSize {8} bias {0.001} normalBias {0.012} shadowTextureSize {2048}}}
The parameters that can influence the artifact you describe are mainly the bias, the normalBias and the shadowTextureSize.

Cheers

Re: OpenGL3 and Aliasing

Posted: 13 Sep 2019, 02:15
by mthor13
Thanks for the reply.
Changing normalBias to 1 for Omnidirectional_light solved the problem for me.

Best Regards,
Mathias Thor