Jump to content
  • Advertisement
Sign in to follow this  
dpadam450

Culling faces

This topic is 4462 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

Does this just work with a dot product of a camera vector with a faces normal? Im assuming it works like: glNormal3f(_,_,_); glVertex3f(_,_,_); glVertex3f(_,_,_); glVertex3f(_,_,_); So when it calls a draw function like glVertex, it checks the last normal that was loaded in. Correct?

Share this post


Link to post
Share on other sites
Advertisement
...or clockwise/counterclocksie if there arn't any normals.

About the glNormal3f.. I havn't used imidiate mode for ages, but when you use normals from VBO:s, it uses those normals for the culling.

Share this post


Link to post
Share on other sites
So when I cull the front AND back faces, shouldnt my framerate increase? I thought thats the point of culling but maybe I messed up something. Its not drawing anything on the screen, obviously , but the framerate is still the same.

Share this post


Link to post
Share on other sites
Quote:
but when you use normals from VBO:s, it uses those normals for the culling.

no theres no difference with VBO

glNormal3f(_,_,_); have no influence on wether a polygon is culled or not.

Quote:
but the framerate is still the same.

it should make a bit of a difference (make sure your window is small (clear is an expensive operation) also disable vsync

Share this post


Link to post
Share on other sites
Quote:
Original post by dpadam450
So when I cull the front AND back faces, shouldnt my framerate increase? I thought thats the point of culling but maybe I messed up something. Its not drawing anything on the screen, obviously , but the framerate is still the same.


Culling both back and front shouldn't leave you with anything. ;)

Check to see if you have vsync turned on. This will lock your framerate and might be the cause.

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!