Jump to content
  • Advertisement
Sign in to follow this  
crippeli

"Infinite" space?

This topic is 4772 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 there chaps. :) I've been thinking about something.. infinite-looking space, like the ones in space sims (EVE Online, Homeworld etc), how do you do that? Do you use a skybox which moves with the player? And how does this work for multiplayer space-games? If anyone has an answer to this, or some good reading material, that'd be great. :) /Crippeli

Share this post


Link to post
Share on other sites
Advertisement
Yep, you can get away a simple skybox (unlit) that is attached to the players location, done it myself. The only problem is that you will never be able to reach things that may be drawn on it so details like distant planets and solar systems will need to be added seperately if you want a comprehensive representation of what's around.

Share this post


Link to post
Share on other sites
Quote:
Original post by crippeli
Okay, but is there a better way that you know of? :)

Thanks for the reply.
/Crippeli


Dynamically generated skies projected on skydomes can give better results.

Share this post


Link to post
Share on other sites
When far away of a solar system, draw only it's sun as a point that you draw at a position much closer than it actually is, but at a position so that it appears at the correct location it would be if it was drawn that far away (because if you draw it as far away as it really is there may appear precision problems). When going inside a solar system, then draw it's planets too, as a point when far away, as spheres when you get closer.

Share this post


Link to post
Share on other sites
You can compress the distances of the planets into the clipping distance, scaling accordingly to preserve the apparent proportions. Check out the tutorial on Gamasutra, it think it was this.

Share this post


Link to post
Share on other sites
Homeworld probably just had a skybox. If you're going to make a game like Homeworld you probably should just have a static background. It's hard enough to see small spaceships without an animated background.
And of course in the end, the background is just decoration. If you're making a game as a hobby, you probably should forget things like animated skydomes and spend the time on making the game itself.

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!