gameprogcpp / code

Game Programming in C++ Code
Other
1.03k stars 355 forks source link

Inconsistent winding order on faces ? #12

Closed mjzash closed 6 years ago

mjzash commented 6 years ago

Enabling back face culling via glEnable(GL_CULL_FACE) makes some elements of the drawn objects appear / disappear.

e.g. enabling culling on chapter 12 shows the character but gui elements (quit menu) are hidden. Flipping the cull face via glFrontFace(GL_CW) flips this around where the gui elements are shown but the model is hidden.

chalonverse commented 6 years ago

This is most likely because the assets were not consistently authored, since I got the assets from different places.