Jump to content
  • Advertisement
Sign in to follow this  
michailangelo

Making stage of game infinite

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

Hello everyone, Newcomer to opengl programming. I am trying to build a third person action game where the character can go anywhere in the stage without reaching its limits. I have the stage model and the class(obj loader) but when I render it , the character reach the limits of the stage. I have to note that the stage is a circle with specific coordinates. I searched in books about opengl and havent seen any similar example. Im pretty sure there is something Im missing here. Recommendations about books regarding game programming in opengl are also welcome. Thanks in advance

Share this post


Link to post
Share on other sites
Advertisement
Can you describe in more detail what the game world is like? Maybe post a screenshot?

The only thing I can think of at the moment is that you'd need to 'tile' your world somehow to give the illusion of it being unlimited. This wouldn't work very well with a circular model though. Could you use a tileable shape instead, such as a square?

Share this post


Link to post
Share on other sites
There's a book about this subject but from what I remember it's not very good. Basically, if you want to create an infinite game world you have to randomly generate it. If you want the world to be the same each time the user plays then save the seed you used for the random number generator in the save file, and write your own random number generator so it works identically across execution environments.

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!