geminiCoder
geminiCoder

Reputation: 2906

open GL ES object not rendering correctly

I have a 3d object that I made in SketchUp. Using a tool I found on the web, I have converted this to a .h file listing all the vertices and norms. The problem is when I render the object is has gaps which you can see through. And I havent been able to locate the problem. Is there a obvious reason for this?

converter Pearl file

Ive added a link to the site where I got the Pearl file that takes the .obj and converts it to a .h

Screen Shot

Thease are supposed to be 3d J's as you can see there are gaps through them.

Upvotes: 0

Views: 71

Answers (1)

Piku
Piku

Reputation: 3626

Don't use tools that turn 3D models into .h files, it's a horrible way to import data into your code. Especially if you need to edit the objects or load many of them. Instead write or find a model loader that reads the files itself, you can then actually do tests on the data to see if it is valid. The wavefront obj format is quite easy to parse.

You can usually see through objects if the winding order is backwards. It can also happen if you're trying to draw a complex object that is made from separate pieces like the teapot that contains a lid that isn't attached to the body.

Upvotes: 2

Related Questions