View Full Version : Creating a chess board.
06-01-2004, 04:26 AM
I need to make a chess board and I really don't know how to do it.
I use glut and It need to use piple line.
The code needs to be in VC++.
Can anyone please show me where I can find a source code for such a thing?
Maybe u could start reading tutorials about generic opengl programs (chek the section on this site).
After this step u should be able to draw a cube and apply a chess board texture to it... that would be a fairly simple way to achieve your program.
Or another solution would be to create a series of quad strips (or just quads) with one or two for loops. Each time you alternate the color of each quad from black to white. With a little practice you should get the chess board having the right color (I think lower right should be black?) The 2 for loops could just change the x-z coordinates.
Powered by vBulletin® Version 4.2.3 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.