Jump to content

  • Log In with Google      Sign In   
  • Create Account






Minimap

Posted by JTippetts, 18 November 2013 · 513 views

Goblinson Crusoe Urho3D
Posted Image

Spent some time today to implement an overhead minimap, which is actually a feature I am still on the fence about. I remember at times in other games when I just spent too much time watching the minimap. It pulled me out of the game somewhat, and I'm not sure I want that for this game. I think there is something to be said for a game where you live in the game view, and where you have to rely on memory and observation rather than an over-map. But I put it in there, and when the time comes I'll observe players and see how they use it as well as how often they use it.

The minimap lives in a second scene structure, one that has its own camera with an orthographic projection. By adding a MinimapMarker component to any object you add a marker to the minimap that will track that object's position. You can specify a model and material to use for the marker; currently, I just use a basic hex model and a solid color, partially transparent material, but eventually I might switch to small icons or something instead. The map tracks the camera position and orientation around the vertical axis, so that directions in the view and the map match up. I have to admit that it does help with navigating the map, so it just might end up being a feature, regardless of my personal ambivalence toward minimaps in general.




That map is huge. How do you figure out which subset to draw?

love love love, what you are doing my friend!

@riu: thanks, man :D

 

@polyfrag: I'm not doing anything myself. I just let the engine do the culling. Urho3D is pretty speedy, even with my unoptimized scenes.

Do you divide tiles into regions and check if they're in the frustum?

I really don't do anything at all. I just instance the geometry and dump it into the scene. A time might come when I'll need to do an optimization pass of some sort on things, perhaps split it up into regions and so forth, but that time is not right now since things are speedy enough even on my crappy computer.

Recent Comments

September 2014 »

S M T W T F S
 1 2 3456
78910111213
14151617181920
21222324252627
282930    
PARTNERS