gazebosim / gz-rendering

C++ library designed to provide an abstraction for different rendering engines. It offers unified APIs for creating 3D graphics applications.
https://gazebosim.org
Apache License 2.0
56 stars 51 forks source link

Only one side of the triangles is visible in Marker Triangle List #163

Open Sarath18 opened 3 years ago

Sarath18 commented 3 years ago

I was recently working with the Triangle list Marker geometry and noticed that only one side of the triangles is visible. I am not sure if this is a bug or intended behavior. I spawned 10 10 10 triangles into the scene using MarkerType::TRIANGLE_LIST. Please have a look at the following gif:

triangle_list_trim

Details
Tested On Ubuntu 20.04
Rendering Engine OGRE and OGRE2
Libraries ign-rendering4 and ign-gui4's Scene3D plugin
iche033 commented 3 years ago

the default behavior is to to draw single sided triangles, and back culling is enabled. We could add a new API to disable culling.

here're ogre and ogre2's APIs for setting culling modes