No. Why the hell would you even bother asking that?mongus wrote:hm.. you will be able to see where your enemy's commander is?
Custom unit icons
Moderator: Moderators
Um, I've tested the current dev release of 0.73b1, and I know you've done some fixes since then, but I wanted to make you aware of some concerns I have:
1. In the version I saw, the game engine was clearly drawing the unit's geometry underneath the icon. This kind've defeats the purpose, no offense. People are going to want this feature so that they can command-and-control huge battles, and if it keeps drawing all of those polygons and consuming fillrate... eh... what's the point? Ok, so now I have a colorful icon, instead of a blur of tiny pixels... erm, but if my FPS drops to 5, it's totally worthless. What we need is for the units to quit getting drawn every render cycle, so that we can zoom out and see hundreds of units-as-icons at a smooth framerate, just like we can zoom in and see a relative handful of units at a smooth framerate. Just my two cents.
2. In the dev. release, my custom icon plain doesn't work. Based on your screens, though, it may just be the bugs that were in that release... I'll await the next release and re-visit this.
1. In the version I saw, the game engine was clearly drawing the unit's geometry underneath the icon. This kind've defeats the purpose, no offense. People are going to want this feature so that they can command-and-control huge battles, and if it keeps drawing all of those polygons and consuming fillrate... eh... what's the point? Ok, so now I have a colorful icon, instead of a blur of tiny pixels... erm, but if my FPS drops to 5, it's totally worthless. What we need is for the units to quit getting drawn every render cycle, so that we can zoom out and see hundreds of units-as-icons at a smooth framerate, just like we can zoom in and see a relative handful of units at a smooth framerate. Just my two cents.
2. In the dev. release, my custom icon plain doesn't work. Based on your screens, though, it may just be the bugs that were in that release... I'll await the next release and re-visit this.
Firstly, as I saw it the icon thing was not to cut down on rendering at uber zoom levels but to make units more visible at said levels, the cut down in stuff to render is coincidental but convenient.Argh wrote:1. In the version I saw, the game engine was clearly drawing the unit's geometry underneath the icon. This kind've defeats the purpose, no offense. People are going to want this feature so that they can command-and-control huge battles, and if it keeps drawing all of those polygons and consuming fillrate... eh... what's the point? Ok, so now I have a colorful icon, instead of a blur of tiny pixels... erm, but if my FPS drops to 5, it's totally worthless. What we need is for the units to quit getting drawn every render cycle, so that we can zoom out and see hundreds of units-as-icons at a smooth framerate, just like we can zoom in and see a relative handful of units at a smooth framerate. Just my two cents.
Secondly I've heard that animations can take up alot of cpu time? Might pay to take a leaf from the RTW book which has an option that allows you to turn of desynced animations, as in all or large groups of one particular unit only use the one animation and are translated. Might look a little funny but its an idea.
Animations eat CPU, but unless we have a whole mess of new engine things to control this, we are required by synch to have the animations run in full, in large part because of aiming code. Anyhow, it's not CPU I'm worried about, but GPU. Using icons without drawing the models during that step would just leave us with sim code, pathfinding, map deformation and projectiles... it'd really cut out a lot of load on the GPU, if it was basically just rendering the map, explosions, and the dynamic water reactions, when scaled way out...
Yes, but it doesn't mean all that isn't simulated anyway. As you can zoom in at any time, the units have to look and behave just as they would without all their poly's being drawn. So there would be virtually no drop in CPU usage over-time.
And whatever GPU savings you may get is eaten up mostly by the fact you're seeing the entire map, so instead of rendering a small portion of the entire map, it's having to do the entire thing.
So it's all a tradeoff.
And whatever GPU savings you may get is eaten up mostly by the fact you're seeing the entire map, so instead of rendering a small portion of the entire map, it's having to do the entire thing.
So it's all a tradeoff.
Not quite, the map has lod remember.Buggi wrote:Yes, but it doesn't mean all that isn't simulated anyway. As you can zoom in at any time, the units have to look and behave just as they would without all their poly's being drawn. So there would be virtually no drop in CPU usage over-time.
And whatever GPU savings you may get is eaten up mostly by the fact you're seeing the entire map, so instead of rendering a small portion of the entire map, it's having to do the entire thing.
So it's all a tradeoff.
That would prevent HMW style unit icons with giant untis not showing as icons untill they're small enough.2) As soon as the most far unit will get zoomed far enough to turn into icon, all other units should turn into icons (of same size)
I propose there be an options to have units always be icons in settings.exe.
Also is nanospray shown in unit icon mode? If so I might write a patch to change it to a simple line graphics at a distance at some point.
-
colorblind
- Spring Developer
- Posts: 374
- Joined: 14 Mar 2005, 12:32
Re: just checking
The icons get scaled with the square root of their distance to the camera, which looks quite natural when you zoom in and out.alik83 wrote:1) if some units are high in the air or on top of big mountain their icon size shouldn't change.
They turn into icons when their distance from the camera exceeds a certain value (which can be set in settings.exe, AF, so setting that to a small number resolves your request). This again looks fairly natural.alik83 wrote:2) As soon as the most far unit will get zoomed far enough to turn into icon, all other units should turn into icons (of same size)
If it isn't like this, can you implement this at least as an option?
I suggest you grab the .exe I posted (or the 0.73b1 dev test build) to try the current settings out.
This isn't implemented yet but it's on my to-do list :).alik83 wrote:Also maybe a possibility to select unit when it's actually smaller than icon even when you click on the edge o the icon.
So I guess you saw that supcom movie too :-). If I can find the time I'll implement that also.alik83 wrote:Add drawable and draggable command ques for those groups (which also don't change size in icon view) and you'll have whole theater of iconic war
I really don't think that is the case, but I'll investigate it a bit though. As for your problems with the dev release, you can try the .exe I posted in the topic start. If you still have problems, feel free to PM me about it.Argh wrote:In the version I saw, the game engine was clearly drawing the unit's geometry underneath the icon.
But the factory ground decals are set by thre modder yet you can replace them with different custom decals without causuing desyncs... Worth checking this out I think...smoth wrote:This would be set by the modder. if someone changes a mod they get a sync error.mongus wrote:is it possible to malicious user to assign, lets say a special icon/flag for commander, so he can exactly know where yours is just by looking at minimap?.
So... no.
PS Colorblind that's SWEET work, thx!
Since 0.72 spring compares mod&map checksums of all clients with host before starting so if you tamper with mod or map you will error out with a (local only) message like "Your mod/map archive is not binary equal to the host's archive. Consider redownloading the mod/map.".
E: if that appears to be untrue, then file a bug report please
E: if that appears to be untrue, then file a bug report please
- FoeOfTheBee
- Posts: 557
- Joined: 12 May 2005, 18:26
I had the same experience with the dev release, the icons just didn't appear, despite tweaking the distance value. I used tga's like those in the example zip.Argh wrote: 2. In the dev. release, my custom icon plain doesn't work. Based on your screens, though, it may just be the bugs that were in that release... I'll await the next release and re-visit this.
-
colorblind
- Spring Developer
- Posts: 374
- Joined: 14 Mar 2005, 12:32
That's probably because the default value of UnitIconDist (the distance at which units become icons) is 4000 in settings.exe. If you change it to something like 150 or a bit higher, you'll probably see the icons.Foe OfTheBee wrote:I had the same experience with the dev release, the icons just didn't appear, despite tweaking the distance value. I used tga's like those in the example zip.
TGA's should be fine. If Spring can't load the bitmap or can't find it, it'll replace it with the standard radar blip. So if you see that ingame, you probably misplaced your bitmap :).
-
colorblind
- Spring Developer
- Posts: 374
- Joined: 14 Mar 2005, 12:32
I guess you didn't read the whole of my first post: in order to use the .exe I posted, you have to download the MinGW libraries and put those extra dlls (among which is il.dll) in your spring directory.Argh wrote:Yeah, and the newer compiled version ColorBlind put up clearly wasn't compiled from the current SVN, it crashes after it can't find IL.dll... it only works with 0.72b1...
And it *was* compiled from SVN; it even has icon support on the minimap, whereas the dev build doesn't.
