Request: Smoother (fake) LoS updates

Request: Smoother (fake) LoS updates

Discuss Lua based Spring scripts (LuaUI widgets, mission scripts, gaia scripts, mod-rules scripts, scripted keybindings, etc...)

Moderator: Moderators

Post Reply
User avatar
Caydr
Omnidouche
Posts: 7179
Joined: 16 Oct 2004, 19:40

Request: Smoother (fake) LoS updates

Post by Caydr »

Spring's LoS updating is slow and ugly, by necessity. Could a fake LoS be drawn which is more frequently updated?

It would function sort of like defense ranges, except swap the ranges with LoS and shade everything outside the circles with gray. Looking the defense range widget over, it looks like it's currently set up to shade the inside.

It could also dynamically adjust the update frequency by seeing how busy the CPU is.

Real, functional LoS calculations would go on as normal, units would show up and disappear exactly as they do now, it would just be nicer-looking because the range circles would be smoother and more frequently updated.

Finally an idea CA hasn't beaten me to? I can't search for "LOS widget" since LOS is under the minimum search size.
User avatar
lurker
Posts: 3842
Joined: 08 Jan 2007, 06:13

Re: Request: Smoother (fake) LoS updates

Post by lurker »

Are you just talking about the visual LOS overlay? There's no reason it has to update nearly as slowly as it does.
User avatar
Caydr
Omnidouche
Posts: 7179
Joined: 16 Oct 2004, 19:40

Re: Request: Smoother (fake) LoS updates

Post by Caydr »

Even if it updated faster, it's not very attractive compared to other RTSs. Rather than bothering the developers with something so trivial I figured there'd be a better possibility a LUA widget could be made to improve this.
Google_Frog
Moderator
Posts: 2464
Joined: 12 Oct 2007, 09:24

Re: Request: Smoother (fake) LoS updates

Post by Google_Frog »

SA has something like this but it has the side effect of disabling the radar view.
User avatar
lurker
Posts: 3842
Joined: 08 Jan 2007, 06:13

Re: Request: Smoother (fake) LoS updates

Post by lurker »

Rendering something as large as the entire map is tough to do fast, and I don't think lua has any fast calls to get los data either. But it would be nice to have a good-looking visualization. SA just has normal LOS view with different visual settings, screwing radar view is a side-effect of only being able to change coloration in advanced mode. It could be worked around, but that was up to Basic.
User avatar
Gota
Posts: 7151
Joined: 11 Jan 2008, 16:55

Re: Request: Smoother (fake) LoS updates

Post by Gota »

Indeed,it was.
I decided that having no radar coverage will not hurt gameplay since you can always estimate the radar coverage or hover over it and press shift to see where it extends to exactly.
The trade off was a nice looking los circle.
I'd still want it to be like in ota where the non los area is black and white and not just darker,which is disruptive and makes dark maps less pleasant to play on.
User avatar
lurker
Posts: 3842
Joined: 08 Jan 2007, 06:13

Re: Request: Smoother (fake) LoS updates

Post by lurker »

Except on moon maps. But it would be nice to widget that up.
Post Reply

Return to “Lua Scripts”