LOS - Page 3

LOS

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
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: LOS

Post by Forboding Angel »

Forboding Angel wrote:We are talking fullbright (mapbright anyway) trees and grass when you aren't looking at them.
I meant to say, "When they aren't in LOS." Sorry about that.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: LOS

Post by Forboding Angel »

gajop wrote:what's the map fog effect?
why is the engine version better looking (i.e why is the gadget version limited), and how much faster is it?

without knowing the details, I'd rather have the LOS effect in the engine as it fits the description of being "something that a majority of RTS games have and is complex enough that they shouldn't have to implement it"

would it be possible to somehow mix the two, i.e by providing engine rendering, thus gaining speed and a larger variety of effects, but still having some sort of control and customization - expose a lua interface content devs can use
You have it backwards. Gadget is better looking, but slower. Interferes with mapfog (which autohosts don't use anyway).

Gadget version isn't limited in any meaningful way, engine version is.
gajop
Moderator
Posts: 3051
Joined: 05 Aug 2009, 20:42

Re: LOS

Post by gajop »

I'm reading this summary:
1. Through the terrain shader (previous attempt)
Pros:
- Faster
- Better looking effects (like desaturation, hue shifts, etc)

Cons:
- Static and hard to modify (because its engine shader, hard to plug new things into it)
- only effects terrain

2. Through a depth shader gadget as shown here
Pros:
- Each mod can easily customize the way it looks
- No significant engine code needed
- Effects everything (map, grass, water surface, features)
- Allows map border fog

Cons:
- Slower
- limited set of effects (basically a transparent image overlay)
- will interact badly with map fog effect
1) (ENGINE) is:
- Better looking effects (like desaturation, hue shifts, etc)
- Faster
thus those things can easily be seen as "cons" for the
2) (GADGET)
- Worse looking effects (like no desaturation, hue shifts, etc.)
- Slower
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: LOS

Post by Forboding Angel »

I'm not sure how lack of desaturation and hue shifts counts as "worse looking".
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: LOS

Post by Beherith »

limited set of effects (basically a transparent image overlay) != Worse looking effects (like no desaturation, hue shifts, etc.)
gajop
Moderator
Posts: 3051
Joined: 05 Aug 2009, 20:42

Re: LOS

Post by gajop »

*grumble* you need to figure out better wording otherwise !better=worse *grumble*

still, have you measured the speed difference?
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: LOS

Post by smoth »

behe can you take a screenshot of it both versions from a few differences for a side by side comparison? Include features and water please.
varikonniemi
Posts: 451
Joined: 03 Jul 2011, 11:54

Re: LOS

Post by varikonniemi »

Any update on this? The pictures in the first post look awesome and i think it would add a whole new level of detail to the engine if fog of war was available.
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: LOS

Post by Beherith »

No significant progress was made, sorry I only have a limited amount of energy and BAR is taking all of it, this thing got bumped down too low on the priority list. Ill try to make a best effort to get it included in .89
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: LOS

Post by Beherith »

Updated to add demo video (the static noise does not encode well on youtube)

http://www.youtube.com/watch?v=CzN5ZR8a ... e=youtu.be
User avatar
bobthedinosaur
Blood & Steel Developer
Posts: 2702
Joined: 25 Aug 2004, 13:31

Re: LOS

Post by bobthedinosaur »

on discussing for adoption: why cant mod options tell the engine when to use it or not. that way if they have a better alternative that fits the game/mod then they can provide it.
Last edited by bobthedinosaur on 30 May 2012, 22:12, edited 1 time in total.
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: LOS

Post by Beherith »

Bob, that is how I did it with Lua version.
User avatar
bobthedinosaur
Blood & Steel Developer
Posts: 2702
Joined: 25 Aug 2004, 13:31

Re: LOS

Post by bobthedinosaur »

nvm then :p
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: LOS

Post by Forboding Angel »

So is this a go in v89?
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: LOS

Post by Beherith »

After lots of tweaking and testing last night, I realized that two importatnt things are missing from my implementation:
Lack of minimap renderin support.
No sonar maps, which puts enderwater in a qwuite noisy environment.
The depth buffer does not get depth values for the water surface, but for the groud below, whch nakes this ugly for deep water.

So most likely no :(
User avatar
jK
Spring Developer
Posts: 2299
Joined: 28 Jun 2007, 07:30

Re: LOS

Post by jK »

Beherith wrote:The depth buffer does not get depth values for the water surface, but for the groud below, whch nakes this ugly for deep water.
This is easy to solve

edit:

Code: Select all

worldPos -= camDir * (worldPos.y / camDir.y);
Last edited by jK on 31 May 2012, 17:23, edited 1 time in total.
varikonniemi
Posts: 451
Joined: 03 Jul 2011, 11:54

Re: LOS

Post by varikonniemi »

Beherith wrote:No significant progress was made, sorry I only have a limited amount of energy and BAR is taking all of it, this thing got bumped down too low on the priority list. Ill try to make a best effort to get it included in .89
Don't you worry, just keep on working on it and release it when it is ready. Just wanted to check this will not be vapourware.

What comes to the video you posted, i almost jizzed in my pants :oops:

The only thing i am not sure about is the "static". Seems to me it would be nervous to have something flickering all the time like that. But as you said it might be a totally different experience when seen in-game.

ps. what are the odds that the two things in spring i am looking forward to most are being worked by the same guy :D mad props!
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: LOS

Post by Forboding Angel »

Behe, just treat sonar like los wrt the fuzz. Because, that's what spring does. You cannot have los without sonar, and underwater, los does nothing and sonar does everything. It's actually very strangely laid out.
User avatar
Jools
XTA Developer
Posts: 2816
Joined: 23 Feb 2009, 16:29

Re: LOS

Post by Jools »

Forboding Angel wrote:Behe, just treat sonar like los wrt the fuzz. Because, that's what spring does. You cannot have los without sonar, and underwater, los does nothing and sonar does everything. It's actually very strangely laid out.
I was gonna mention something about that, that's another big flaw in spring. Sonar should be treated like underwater radar and not like LOS.
User avatar
Pxtl
Posts: 6112
Joined: 23 Oct 2004, 01:43

Re: LOS

Post by Pxtl »

Well if you use the sea-floor to show sonar, then how do you show LOS *above* the water for hovers and air? Draw something on the water itself?
Post Reply

Return to “Engine”