Wanted: better teamcolor icon.
Posted: 16 Aug 2007, 21:15
Um, as you all probably know, I have an aversion to teamcolor on my models, and prefer to use a chunk of teamcolored model sitting above them. This has lots of disadvantages, starting with the fact that the object doesn't scale, obscures the model somewhat in a top-down view, etc.
I'd much rather use a custom icon, billboarded and slowly rotating on the Y axis, implemented in LUA. Then players could zoom out, and fade from the billboard to the unit's icon- a smooth visual representation.
Here's how I'd like it to work- it's pretty simple, but I'm not quite sure how to do a couple of things, so I'm stuck:
1. It should start growing in size after some threshold is reached- ideally, half to three-quarters of the icon distance defined by the player in Settings. So, basically, it stays nice and small and doesn't obscure the action, but then smoothly grows once the threshold is reached, until it is the icon. This might be a bit easier to show with some screenshots, frankly.
2. It should then become the icon.
I dunno how to get the teamcolor, I'm not sure how to project a billboarded sprite that rotates, and I don't know how to relate to the camera- long and short of it, I have no idea how to go about this, but it seems like this should be fairly easy to do, really. Anybody willing to take a jab at this, if I provide some screens showing what I want it to do?
I'd much rather use a custom icon, billboarded and slowly rotating on the Y axis, implemented in LUA. Then players could zoom out, and fade from the billboard to the unit's icon- a smooth visual representation.
Here's how I'd like it to work- it's pretty simple, but I'm not quite sure how to do a couple of things, so I'm stuck:
1. It should start growing in size after some threshold is reached- ideally, half to three-quarters of the icon distance defined by the player in Settings. So, basically, it stays nice and small and doesn't obscure the action, but then smoothly grows once the threshold is reached, until it is the icon. This might be a bit easier to show with some screenshots, frankly.
2. It should then become the icon.
I dunno how to get the teamcolor, I'm not sure how to project a billboarded sprite that rotates, and I don't know how to relate to the camera- long and short of it, I have no idea how to go about this, but it seems like this should be fairly easy to do, really. Anybody willing to take a jab at this, if I provide some screens showing what I want it to do?