More glowy lasers
Moderators: winston, another_commander
-
- Quite Grand Sub-Admiral
- Posts: 6680
- Joined: Wed Feb 28, 2007 7:54 am
More glowy lasers
I am looking for opinions on an improvement to the laser visuals. It's subtle, but I think it's definitely there. A more glowy laser appearance has been implemented on the laser_visuals branch on github. Builds for those with a github account available at the bottom of this page. Please test it if interested and let me know what you think of this proposal for the laser beams.
So looking behind the curtain, this is how the magic works. The default code puts a bright white stripe in the middle of the beam. It looks ok overall, but it could be improved. Rather than using a white stripe for the mid-beam area, what if we used a property of our tone mapper, ACES, instead? ACES by design desaturates colors as you increase their brightness in order to simulate a filmic appearance. We have already used this trick within the Tianve OXP; the pulsar has no whites at all in the latest version, it emits only blue color, but it is so strong that it desaturates towards white, which is how we get the nice blue-towards-white gradients for it.
So we are effectively doing the same for lasers. Rather than paint a (strong) white stripe in the middle, we paint a (very intense) stripe of the actual laser color instead. The tone mapper desaturates it as required the more intense it becomes and the end effect resembles a lot what we have now, but I think it looks a bit better overall.
Original laser effect
ACES based laser effect
In-game
So looking behind the curtain, this is how the magic works. The default code puts a bright white stripe in the middle of the beam. It looks ok overall, but it could be improved. Rather than using a white stripe for the mid-beam area, what if we used a property of our tone mapper, ACES, instead? ACES by design desaturates colors as you increase their brightness in order to simulate a filmic appearance. We have already used this trick within the Tianve OXP; the pulsar has no whites at all in the latest version, it emits only blue color, but it is so strong that it desaturates towards white, which is how we get the nice blue-towards-white gradients for it.
So we are effectively doing the same for lasers. Rather than paint a (strong) white stripe in the middle, we paint a (very intense) stripe of the actual laser color instead. The tone mapper desaturates it as required the more intense it becomes and the end effect resembles a lot what we have now, but I think it looks a bit better overall.
Original laser effect
ACES based laser effect
In-game
- hiran
- Theorethicist
- Posts: 2403
- Joined: Fri Mar 26, 2021 1:39 pm
- Location: a parallel world I created for myself. Some call it a singularity...
Re: More glowy lasers
Realistically I'd expect not to see a laser beam in empty space at all. Only if particles are on the way they would get roasted and may distribute/reflect/emit light - partly to the spectator's direction.
So if at all I'd expect a very weak line source to target.
Everything else is just effect added to our 'experience' of laser beams in atmospheric conditions.
So if at all I'd expect a very weak line source to target.
Everything else is just effect added to our 'experience' of laser beams in atmospheric conditions.
Sunshine - Moonlight - Good Times - Oolite
-
- Quite Grand Sub-Admiral
- Posts: 6680
- Joined: Wed Feb 28, 2007 7:54 am
Re: More glowy lasers
When did Oolite become realistic?
-
- Quite Grand Sub-Admiral
- Posts: 6680
- Joined: Wed Feb 28, 2007 7:54 am
- hiran
- Theorethicist
- Posts: 2403
- Joined: Fri Mar 26, 2021 1:39 pm
- Location: a parallel world I created for myself. Some call it a singularity...
Re: More glowy lasers
Ack. So it is argueable how a space adventure should look like.
Let's show off what the GPU can do...
Sunshine - Moonlight - Good Times - Oolite
- Redspear
- ---- E L I T E ----
- Posts: 2685
- Joined: Thu Jun 20, 2013 10:22 pm
- Location: On the moon Thought, orbiting the planet Ignorance.
Re: More glowy lasers
Rightanother_commander wrote: ↑Tue Sep 24, 2024 11:38 amRule of Cool says that it must look like Star Wars
Maybe something a little more in the middle for me but it likely is going to be a matter of personal preference I think.
Anyway, nice work
- Wildeblood
- ---- E L I T E ----
- Posts: 2453
- Joined: Sat Jun 11, 2011 6:07 am
- Location: Western Australia
- Contact:
Re: More glowy lasers
I believe that this is a non sequitur.another_commander wrote: ↑Tue Sep 24, 2024 11:38 amI guess it's not bad, but Rule of Cool says that it must look like Star Wars, so I'd stick to the bright version.
In your heart, you know it's flat.
Re: More glowy lasers
Could the brightness setting be a variable which an oxp (or a shipdata.plist ) could change?another_commander wrote: ↑Tue Sep 24, 2024 11:38 amHere is with the laser brightness all the way down. Could go actually even further if we so wished.
I guess it's not bad, but Rule of Cool says that it must look like Star Wars, so I'd stick to the bright version.
- hiran
- Theorethicist
- Posts: 2403
- Joined: Fri Mar 26, 2021 1:39 pm
- Location: a parallel world I created for myself. Some call it a singularity...
Re: More glowy lasers
Could a ship that is hit by laser flash up? As if it were in a strong spotlight?
Sunshine - Moonlight - Good Times - Oolite
-
- Quite Grand Sub-Admiral
- Posts: 6680
- Joined: Wed Feb 28, 2007 7:54 am
- hiran
- Theorethicist
- Posts: 2403
- Joined: Fri Mar 26, 2021 1:39 pm
- Location: a parallel world I created for myself. Some call it a singularity...
Re: More glowy lasers
I tried it, and it is very satisfying as that meets expectations quite well.
Even more than the sound that allows distinguishing a hit from a miss.
I think it should be part of one of the flavors.
Sunshine - Moonlight - Good Times - Oolite
-
- Quite Grand Sub-Admiral
- Posts: 6680
- Joined: Wed Feb 28, 2007 7:54 am
Re: More glowy lasers
Sorry to Hijack but... Is this not the latest version of the Give NPC's Shields type of OXZ: N-SHIELDS?
The Wiki is offline for some reason so the backup has been used. This also means no downloads at the moment, hopefully temporally. The Wiki's download entry is only for v1.0.1 but the Expansion Manager and the Main Page both list a v1.0.2.
As to the More Glowy Lasers, my agreement is with Redspear. Something a bit more middle of the road, not so dull but with no bright white or brighter colored area at all down the center. Perhaps just a solid bright color all around might be best. cbr's idea to make it a variable is also intriguing.
The Wiki is offline for some reason so the backup has been used. This also means no downloads at the moment, hopefully temporally. The Wiki's download entry is only for v1.0.1 but the Expansion Manager and the Main Page both list a v1.0.2.
As to the More Glowy Lasers, my agreement is with Redspear. Something a bit more middle of the road, not so dull but with no bright white or brighter colored area at all down the center. Perhaps just a solid bright color all around might be best. cbr's idea to make it a variable is also intriguing.
Humor is the second most subjective thing on the planet
Brevity is the soul of wit and vulgarity is wit's downfall
Good Night and Good Luck - Read You Soon
Brevity is the soul of wit and vulgarity is wit's downfall
Good Night and Good Luck - Read You Soon
-
- Quite Grand Sub-Admiral
- Posts: 6680
- Joined: Wed Feb 28, 2007 7:54 am
Re: More glowy lasers
I am thinking of letting go of this or maybe get it in the code in a disabled state in case anyone would want to revisit it in the future.
The problem I have is admittedly an unexpected one: lasers do not look the same between sdr and HDR game modes. They look distinctly different, with the sdr version showing raised yellows for the pulse laser beam, while in HDR it looks much more like what I would expect.
This difference comes from the slightly different tone mapping algorithms used between sdr and HDR. I would not want to start experiments with the tone mappers because they are very hard to get right for all colors and ard testing them is very time consuming.
If I get a bright idea (pun intended) I may get back to it, but for now I think I'll leave lasers alone.
The problem I have is admittedly an unexpected one: lasers do not look the same between sdr and HDR game modes. They look distinctly different, with the sdr version showing raised yellows for the pulse laser beam, while in HDR it looks much more like what I would expect.
This difference comes from the slightly different tone mapping algorithms used between sdr and HDR. I would not want to start experiments with the tone mappers because they are very hard to get right for all colors and ard testing them is very time consuming.
If I get a bright idea (pun intended) I may get back to it, but for now I think I'll leave lasers alone.
- Cholmondely
- Archivist
- Posts: 5364
- Joined: Tue Jul 07, 2020 11:00 am
- Location: The Delightful Domains of His Most Britannic Majesty (industrial? agricultural? mainly anything?)
- Contact:
Re: More glowy lasers
Could one craft an oxp which would detect the monitor used and tweak the laser appearance accordingly?
Comments wanted:
•Missing OXPs? What do you think is missing?
•Lore: The economics of ship building How many built for Aronar?
•Lore: The Space Traders Flight Training Manual: Cowell & MgRath Do you agree with Redspear?
•Missing OXPs? What do you think is missing?
•Lore: The economics of ship building How many built for Aronar?
•Lore: The Space Traders Flight Training Manual: Cowell & MgRath Do you agree with Redspear?