OpenGL3 and Aliasing

Typically: "How do I... ", "How can I... " questions
Post Reply
mthor13
Posts: 35
Joined: 03 Jul 2017, 08:32

OpenGL3 and Aliasing

Post by mthor13 » 11 Sep 2019, 08:59

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

coppelia
Site Admin
Posts: 7272
Joined: 14 Dec 2012, 00:25

Re: OpenGL3 and Aliasing

Post by coppelia » 12 Sep 2019, 12:34

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

mthor13
Posts: 35
Joined: 03 Jul 2017, 08:32

Re: OpenGL3 and Aliasing

Post by mthor13 » 13 Sep 2019, 02:15

Thanks for the reply.
Changing normalBias to 1 for Omnidirectional_light solved the problem for me.

Best Regards,
Mathias Thor

Post Reply