Advertisement

What is drawn??

Started by December 03, 2002 09:55 AM
2 comments, last by WoolyUK 22 years, 3 months ago
Hiya Just been thinking... How exactly does opengl draw? Supposing I have a 20x20 map of tiles and im viewing from an angle from above, not all the tiles are in view, (some are off screen) - does it draw the offscreen ones or not? Im not talking about octree engines or anything, I just mean will it draw things not in screen space? If I was to then move the camera to first person view so it could see along all the tiles it would have to draw them all - but from above would it only draw the ones in screen space? Basically, if im making a 3rd person game, do I draw the whole map in the render function each time and opengl will only draw what can be seen depending on camera position or will it draw the whole map each frame? Hope u understand what I mean hehe Thanks a lot Adam
Open GL draws everything.
IT doesn''t do your culling for you...
Advertisement
Thanks

So if I plan on making a 3rd person view game, I will have to track the players position and then work out which tiles will be in view and draw only those?

Adam
Exactly !!!!!!

There are some good tutorials on culling and octreess on www.gametutorials.com

This topic is closed to new replies.

Advertisement