Jump to content
  • Advertisement
Sign in to follow this  
GMA965_X3100

Glpolygonmode Not Working?

This topic is 2891 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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:

hedv.png
Uploaded with ImageShack.us


glPolygonMode ( GL_FRONT_AND_BACK, GL_LINES) -- gives:

hedv.png
Uploaded with ImageShack.us

To be blunt, wireframe mode is not working. Don't know why.

Share this post


Link to post
Share on other sites
Advertisement
@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.

Share this post


Link to post
Share on other sites
@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.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!