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

Help! Can't get a cube to draw from OBJ-file. (c++/OpenGL)

$
0
0

So I decided I should give parsing and loading a simple cube from a OBJ-file a try. The parsing itself seem to work well enough, and right now I only try to make the position element of the vertices work. But I can't seem to get the cube to be drawn like it should, it even looks like it doesn't use all the indices. After staring at this problem for too long and not seeing what's wrong, maybe someone here can help. Anyway, thanks in advance.

	Mesh* OBJFileParser::LoadMeshFromOBJFile(const char* filename)
	{
		std::ifstream in(filename, std …

Viewing all articles
Browse latest Browse all 17925


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