Im new to openGL and I do have the redbook as my reference but I feel like Im missing something in regards to rendering polygons.
I created a model of a cube from which I boolean diff’d a sphere which had a slightly larger diameter than the width of the cube. This left me with a nice interior volume to the cube and nifty hole on each face of the cube. I saved this as a raw triangle file and used this to load vertices into my openGL tutorial program.
My problem is that this model does not render solid and I have toyed with every permutation of Culling and not-culling I can imagine…
Here are a few images from my app
Cube in line mode with front or back face culling enabled (both give the same result)
http://digitalhound.biz/cube1.JPG
Now 2 views with Culling disabled…
http://digitalhound.biz/cube2.JPG
http://digitalhound.biz/cube3.JPG
What is going on here???
Is this some artifact of how Im exporting the model???
Basic code:
Gl.glMatrixMode(Gl.GL_PROJECTION);
Gl.glPolygonMode(Gl.GL_FRONT,Gl.GL_FLAT);
Gl.glPolygonMode(Gl.GL_BACK,Gl.GL_FLAT);
//Gl.glCullFace(Gl.GL_FRONT);
//Gl.glEnable(Gl.GL_CULL_FACE);
Gl.glLoadIdentity();
Gl.glTranslatef(0,0,0);
Gl.glOrtho(Xmin2,Xmax2,Ymin2,Ymax2,Zmax2,Zmin2);
Thanks for any pointers you can give…