4
\$\begingroup\$

I have been curious about how this kind of seamless transition from space to planet can be implemented. It would be nice if someone could explain this as I can't really wrap my head around the solution.

\$\endgroup\$
3
  • \$\begingroup\$ What part of it specifically? It would be similar to any other continuous world implementation. Only loading the content near the player and using a level of detail system to keep resource use low. \$\endgroup\$
    – House
    Nov 29, 2012 at 15:36
  • 3
    \$\begingroup\$ Perhaps this post from the Infinity developers might help. \$\endgroup\$ Nov 29, 2012 at 19:06
  • \$\begingroup\$ Ahh, Infinity. Such a beautiful project. \$\endgroup\$
    – Djentleman
    Jan 5, 2013 at 6:24

3 Answers 3

3
\$\begingroup\$

Over time, move the camera from far away from the planet to close to the planet surface. This is analogous to the way that you can seamlessly transition from one side of a Quake level to the other side, merely by moving the camera from one side to the other.

There really is no fundamental difference between the two.

\$\endgroup\$
6
  • 2
    \$\begingroup\$ I'm adding "completely seamless transitions from one side of a level to the other" to my engine's feature list. ;) \$\endgroup\$ Nov 30, 2012 at 1:52
  • 1
    \$\begingroup\$ One thing I notice in the video that you don't mention in your answer is a fairly obvious LOD technique. en.wikipedia.org/wiki/Level_of_detail \$\endgroup\$ Nov 30, 2012 at 3:03
  • \$\begingroup\$ I haven't watched the video. But honestly, there's nothing magic about going from space to a planet surface. It's all just triangles. :) \$\endgroup\$ Nov 30, 2012 at 4:26
  • \$\begingroup\$ Ah, so easy. I was overthinking it. This would require translating the point of orbit entry into what "level" should be loaded in front of the player. But that's another question I guess. \$\endgroup\$
    – Phil
    Nov 30, 2012 at 15:07
  • \$\begingroup\$ @TrevorPowell Nothing magic, but if you try to render all the triangles present on the planet's surface (watch the video) when you are very far away, you are going to have a fractional frame rate. You must use a level of detail technique to do this. It is not simply transforming the camera closer to the planet. \$\endgroup\$ Nov 30, 2012 at 16:08
2
\$\begingroup\$

Write a Function that describes your Surface, and then do low sampling on far distances and tight sampling on near distances. And then add some shiny visual effects.

\$\endgroup\$
2
\$\begingroup\$

http://acko.net/blog/making-worlds-1-of-spheres-and-cubes/

http://mathproofs.blogspot.com/2005/07/mapping-cube-to-sphere.html

This guy did exactly what your looking to do, his site goes into tons of details.

\$\endgroup\$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .