First off, new Gamedev layout looks good. Good job html coders.designers.
Anyway...Is there any reason why glPolygonMode should not work? Here ti is an instance where I'm trying to enable wireframe mode.
I have been working for a few minutes on a damage theory of mine, and it has worked a thousand times over in previous demos and codes, something seem to be wrong now. why?
normal damage object:
Uploaded with ImageShack.us
glPolygonMode ( GL_FRONT_AND_BACK, GL_LINES) -- gives:
Uploaded with ImageShack.us
To be blunt, wireframe mode is not working. Don't know why.
Glpolygonmode Not Working?
Because GL_LINES is for glBegin.
Valid flags for glPolygonMode are: GL_FILL, GL_LINE, GL_POINT.
Valid flags for glPolygonMode are: GL_FILL, GL_LINE, GL_POINT.
@sk8beast
..thanks, you solved the problem. Sometimes after long hours of coding, your mind make simple errors like this. Not remebering that GL_LINES is for primitives and GL_LINE is for polygon mode. I'm tired yawn.....been up from 11pm - to now doing stuff............yawn thanks.
..thanks, you solved the problem. Sometimes after long hours of coding, your mind make simple errors like this. Not remebering that GL_LINES is for primitives and GL_LINE is for polygon mode. I'm tired yawn.....been up from 11pm - to now doing stuff............yawn thanks.
@V-man
No quads. Doesn't matter though, in final release I will change -GL_QUAD_STRIP, to GL_TRIANGLE_STRIP. but I just like seeing quads , I don't know why.
And a game was running in background, that's why fps was so low. That and the fact that my hardware is poor.
AMD Athlon 64 1.6GHZ
ram-2gigs
NVIDIA GeForce 8200 (1.1 GHZ )--note these are integrated
Other factors for low fps:
Low code optimization. I haven't learnt how to implement vertex buffer objects yet. Not that it's difficult, but just that I am focusing on other things, like say HM enabled Damage, and Precise collision Detection and response. Consider that these things I'm trying to accomplish are independent of 3rd party physics engines, and are only being done by me, so......yeah.
No quads. Doesn't matter though, in final release I will change -GL_QUAD_STRIP, to GL_TRIANGLE_STRIP. but I just like seeing quads , I don't know why.
And a game was running in background, that's why fps was so low. That and the fact that my hardware is poor.
AMD Athlon 64 1.6GHZ
ram-2gigs
NVIDIA GeForce 8200 (1.1 GHZ )--note these are integrated
Other factors for low fps:
Low code optimization. I haven't learnt how to implement vertex buffer objects yet. Not that it's difficult, but just that I am focusing on other things, like say HM enabled Damage, and Precise collision Detection and response. Consider that these things I'm trying to accomplish are independent of 3rd party physics engines, and are only being done by me, so......yeah.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement