|
Post by ffa702 on Jul 7, 2011 11:40:39 GMT -5
|
|
|
Post by matthew on Jul 7, 2011 14:22:41 GMT -5
Hi, welcome to the forum. You aren't using an Intel Graphics card are you? If you add the following line at the beginning of the program it should solve your problem. glDrawBuffer(GL_FRONT_AND_BACK)
|
|
|
Post by ffa702 on Jul 7, 2011 15:32:35 GMT -5
Thanks for the fast reply,it work now. Il start experimenting whit this abit, are there any good terrain from file tutorial out there? BTW im using an ATI graphic card,hate those EDIT:How do i change the background color? EDIT:Ahh anhoter question.Is the camera an object,can i move it or must i move the scene around my static camera?
|
|
|
Post by matthew on Jul 7, 2011 16:58:23 GMT -5
If you want to change the background colour just use the glClearColor command before the glClear command. glClearColor(1.0, 0.5, 0.2, 0.0) glClear(GL_COLOR_BUFFER_BIT or GL_DEPTH_BUFFER_BIT) In OpenGL you move the entire scene instead of the camera. You can find out more here.
|
|
|
Post by ffa702 on Jul 7, 2011 23:20:13 GMT -5
Interesting, this will take some getting use to... Any thanks alot,il let you know if i have hoter question,or if i have archieved someting interesting!
|
|