November 16, 2024, 20:17:00

Author Topic: camera position / sprite size  (Read 5379 times)

Offline Arparso

  • Administrator
  • Lieutenant
  • *****
  • Posts: 558
  • Karma: 14
  • I can see you...
    • View Profile
    • http://arparso.de/nexus
camera position / sprite size
« on: January 25, 2010, 20:48:53 »
I'm currently thinking about a way to improve the visibilty of fighters when being zoomed out with displaying some sort of an icon on top of them (not unlike Supreme Commander, for example). The problem, however, is the icon getting smaller as well, if the player zooms out,.. so I'd either need a sort of sprite or effect, that'll never change its size on-screen, completely disregarding the current zoom level... or to dynamically adjust the icon's size depending on the distance from the fighter position to the camera's position - but there doesn't seem to be any way to get the camera position.

Guess it's just not possible then, but maybe someone else has an idea, that could help.

Offline jstubbles

  • Petty Officer
  • **
  • Posts: 169
  • Karma: 2
    • View Profile
    • http://www.ivassago.com
(No subject)
« Reply #1 on: March 01, 2010, 20:01:31 »
The code for dynamic adjustment based on camera distance is certainly there - the brackets around ship selections scale and stay consistent regardless of zoom. However, those seem to be using code-based "draw" commands - there's no texture associated with them. If we could figure out a way to replace those with a texture, that'd be golden. :)