Tuesday, June 14, 2011

System Map again



I've work a little inside the map's code and now the system map is more usable.

  • You can see the Sun! In the previous video it was missing ;)
  • Every moon now is displayed with it's own orbit (in the video, you can see our moon)
  • Now there's also your ship position showed.
  • With the mouse wheel you can zoom in/out the map, with the right button you can rotate it, and with the left button you can translate your view position inside the map.
  • The map has his own GUI, for now only + and - button. When you switch from cockpit view to map view, also the GUI switches.
  • Planets are smaller than into the previous video.
Next step is to made the map interactive: when you left click on a planet, the camera points on it and the target for autopilot is setted.

2 comments:

Anonymous said...

quando dici che si può ruotare intendi che la mappa é 2d, vero ? oppure é 3d ?

Marte

PdG said...

La mappa e' in 3d. Per comodita' mia per ora le orbite dei pianeti sono "complanari" e circolari, ma la struttura e' assolutamente 3D. Nel video infatti puoi vedere che ruoto un po' la telecamera attorno alla mappa, ho messo dei limiti ma se li tolgo in teoria posso far ruotare tutto in ogni direzione. Solo che per una mappa avrebbe poco senso, ha piu' senso che sia pratica piuttosto che bella.