View Full Version : ? about glutSolidCube( )

04-17-2002, 08:12 PM
I am making a simple example of a heirarchical model by making an arm with two parts attached to a base. Now, I have it all working, and for the arms I'm using glutSolidCube. And Im using lighting in the program, but when I run the program the Cubes produced only seem to have to sides generated. Is this due to the lighting. If so, any pointers on how to possibly fix it. Oh, and everything else that Im using like gluCylinder and stuff are working fine with the lighting. Any input would be great. -Thankx

04-18-2002, 01:52 AM
Really, hmm seems like a normals problem, why not create your own cube function?

04-18-2002, 05:13 AM
Check if glCullface is enabled and check if you are setting correclty glfrontface.

04-18-2002, 08:51 AM
Yeah, thanx, I still haven't found why gluSolidCube isn't working right. Perhaps its normals are off. Yeah, I did go ahead and make my own cube.