
NeHe lesson 5 problem.
Posted Thursday, 28 May, 2009 - 01:18 by enablerbr ini couldn't work out how to take and save a screenshot from my app. so i've uploaded the program exe. the trouble is some of the faces seem to just dissapear. so instead of seeing a solid cube. you see the inside of a cube at times and other times you see the outside ot the cube. i'm not sure what is causing it. as i checked the code and it matches the NeHe code.
| Attachment | Size |
|---|---|
| NeHeLesson5.rar | 342.04 KB |


Comments
Re: NeHe lesson 5 problem.
Check that normals are right (if used), and culling (front/back)
oop check you had zbuffer (depthbuffer) used.
But I think, there is some normals wrong.
Re: NeHe lesson 5 problem.
heres the code.
see i thought depthbuffer. yet i think that is covered in the glControl1_Load section.
Re: NeHe lesson 5 problem.
Because you dont use normals, try
GL.Disable(EnableCap.CullFace);
if these faces shows then.
(this is just your test, i think, but when loading bigger objects, always load normals/calculate them so culling works (faster)).
Re: NeHe lesson 5 problem.
GL.Disable(EnableCap.CullFace); had no effect.
solved my problem. it was do with where i was placing my code. moved my code from glControl1_Load to OnLoad. then it worked.