Quantcast
Channel: GameDev.net
Viewing all articles
Browse latest Browse all 17625

Confusing results from glDrawElements

$
0
0

I'm relearning OpenGL in its modern form using https://learnopengl.com

Inspired by the coordinate systems lesson https://learnopengl.com/Getting-started/Coordinate-Systems I started modifying their sample code to try and create a glorified cuboctahedron. Here's my attempt. Everything not shown here is, to the best of my knowledge, the way they provided it. My code is intended to describe six faces of a cube, either connected or exploded depending on the relative values of a and b. However, it draws nonsense, connecting things in a way that makes no sense. Here is what I see using only …


Viewing all articles
Browse latest Browse all 17625

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>