Biome Transition in a Grid & Borderless World

Posted by API-Beast on Game Development See other posts from Game Development or by API-Beast
Published on 2014-05-31T14:14:42Z Indexed on 2014/05/31 16:05 UTC
Read the original article Hit count: 297

Filed under:
|

I have a universe: a list of "Systems", each with their own center, type and radius.

A small part of such a universe could look like this: Example Universe

Systems:

  • Can be very close to a different system, e.g. overlap
  • Can be inside another, much bigger system
  • Can be very far away from any other systems
  • Spawn system specific entities and particles inside the system radius
  • Have some properties like background color

So far so good. However, the player can fly around freely, inside and outside of systems, in real time.

How do I interpolate and determine things like the background color now, depending on camera position?

E.g. if you are halfway between a green and a red system you should see a background halfway between red and green, or if you are inside a lilac system near the center and at the border of a green system you should get a mostly lilac background etc.

© Game Development or respective owner

Related posts about procedural-generation

Related posts about maps