Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

rjkerkhoff

Space-Shooter Engine question

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

Hya, just a little question... Does anybody know the theory how you could make a endless looking universe with multiple perons playing in it? i''ve tried something but i don''t know what''s best with coordinates... should (0,0,0) be your own ship or is it best to set these coordinates at the middle of your universe? Thanks in advance!

Share this post


Link to post
Share on other sites
Advertisement
If you're planning to stuff an "endless" universe into a single OpenGL vector space, you're gonna face problems, not the least being that objects could move into regions where you're losing float precision big time. Movements in those regions would be very jerky. I'm not sure of the exact numbers right now, but the way floating point values are stored would reduce the finest movement to several 10^x units.

(Edit: I might as well try to be productive ;-) )

So in fact, you'd be better off if at least each player gets his own coordinate space for OpenGL. As for global coordinates, you'd have to think of a way to circumvent that loss in precision. Perhaps make up your "universe" of blocks big enough that you couldn't see any but the biggest objects (stars, perhaps planets) farther than the edges of such a box. That way, each player wouldn't need to draw objects from more than 27 blocks, which might be possible to position in OpenGL space with sufficient precision.

[edited by - Shadowdancer on August 12, 2002 10:34:14 AM]

Share this post


Link to post
Share on other sites

  • 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!