Radar question (an dLOS question) - Page 2

Radar question (an dLOS question)

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

User avatar
centurion-1
Posts: 169
Joined: 31 Jan 2006, 20:53

Post by centurion-1 »

Speaking of radars, is there some minimum range or some other setting that needs to be set before the radar range circle shows on the minimap. I was un der the impression that you just had to define a radardistance and then its done. Not so for my Hunter and jager recon gears tho....
Yeha
Posts: 96
Joined: 13 Aug 2004, 19:12

Post by Yeha »

Los is limited by the los table size which is set to 80 currently which would give a max los of 1280, radar uses the same table but works on 4 times lower resolution so max would be 5120 there.
User avatar
jackalope
Posts: 695
Joined: 18 Jun 2006, 22:43

Post by jackalope »

So it looks like the advanced radar isn't living up to its full potential?
User avatar
Optimus Prime
Posts: 755
Joined: 03 Oct 2005, 14:31

Post by Optimus Prime »

Yeha wrote:Los is limited by the los table size which is set to 80 currently which would give a max los of 1280, radar uses the same table but works on 4 times lower resolution so max would be 5120 there.
can this be changed in the next version? Perhaps double or tripple the values would help.
chlue
Posts: 101
Joined: 28 Dec 2005, 20:48

Post by chlue »

Just locked at the values from aa2.11

Hyper Radar Tower:
// Sight/Radar
RadarDistance=8000;
SightDistance=1274;

So in aa the radartowers works at their full LOS potential. Radar apparently not.

There is a thing I miss in the way radar is defined. I could not find a tag which descripe what elevation is used for the calculation of los. Is the top of the building used or the base?

It would be nice if the mod could define a position where the calculation shout start. I think It would be a cool feature to control this point by the player and place it over the emeny base. Then somethink like http://en.wikipedia.org/wiki/Over-the-horizon_radar could be archived. Obviously such a radar should not have LOS and had to cost a lot of energy to operate
hawkki
Posts: 222
Joined: 01 Jan 2006, 19:47

Post by hawkki »

Yeha wrote:Los is limited by the los table size which is set to 80 currently which would give a max los of 1280, radar uses the same table but works on 4 times lower resolution so max would be 5120 there.
Really nice to get an explanation on what's going on !
Could this be doubled or defined by the mod or something, since the los distance of 1280 really is rediculously low. For anything but TA style gameplay.
User avatar
Dragon45
Posts: 2883
Joined: 16 Aug 2004, 04:36

Post by Dragon45 »

if Spring LOS tables are anything like TA LOS tables, they increase exponentially in size with increased LOS range.


It may well be that it is as simple as a performance issue.
Yeha
Posts: 96
Joined: 13 Aug 2004, 19:12

Post by Yeha »

A little update on this topic.

The lostable size is indeed a performance issue, the cpu requirement increases quadratic with increased sightdistance and memory requirement for lostbale increases cubical. That means an tripple increase would require 9 times the cpu power for los calculations (if such sightdistance is used) and the table itself would require 27 times the memory.

Next version will have the lostable increased to 110 which will give a max sightdistance of 1760. Using a sightdistance of 1760 will allmost double the cpu usage for los calculation compared to 1280 though.

In next version you will however allso be able to set the resolution used by los calculations on a mod basis. If you want long range line of sight you can have that at the cost of precision, using the resolution currently used for radars for an example would give you a max sightdistance of 7040.


Los are cached when units are standing still, long los on buildings is free since they never move.
User avatar
Masse
Damned Developer
Posts: 979
Joined: 15 Sep 2004, 18:56

Post by Masse »

could we get the good old los back that is not affected by terrain ?
Post Reply

Return to “Engine”