Nexus Skirmisher

Nexus Modding => Scripting => Topic started by: Arparso on January 25, 2010, 20:48:53

Title: camera position / sprite size
Post by: Arparso 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.
Title:
Post by: jstubbles 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. :)