Re: [Plib-users] using triangles
Brought to you by:
sjbaker
|
From: <sa...@sa...> - 2002-03-25 12:30:37
|
Hi Steve, thanks from quick answer. >. >. > Well, that *could* be it - but it's hard to know without > seeing the entire program. I tried to parse everything out, except that triangle. It still didn't work. Here is code from that parsed version http://www.saunalahti.fi/~saparti/samitest.cpp I still wonder, what would be a correct order when I have those ships and other things in there too. Example: void redraw (){ update_motion () ; glClear ( GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT ) ; ssgCullAndDraw ( scene ) ; glutPostRedisplay () ; glutSwapBuffers () ; } Should I put those raw opengl things between ssgCullAndDraw line and glutPostRedisplay line? Is that glutSwapBuffers that command, which throw those raw opengl things to the screen? These might be some newbie guestions, but from somewhere everyone should start :) > Can you post more of the program - or (preferably) put it > onto a web site somewhere where we could download the > sources and look at them? I wish that those mistakes are in that parsed version which is upper to this message. > If I had to guess, I'd say that disabling backface culling > and texturing would fix your problem...but it's hard to > diagnose this without seeing more code. Seems that this time I didn't use 2 sided polygons :/ might be that one, but could be a problems with perspective. Now in that code could be very weird look settings, I just tried so many rotations and translates. Sami |