OpenGL3 and Aliasing

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

OpenGL3 and Aliasing

Post 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

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

Re: OpenGL3 and Aliasing

Post 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

mthor13
Posts: 61
Joined: 03 Jul 2017, 08:32
Contact:

Re: OpenGL3 and Aliasing

Post by mthor13 »

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

Best Regards,
Mathias Thor

Post Reply