More glowy lasers

General discussion for players of Oolite.

Moderators: winston, another_commander

another_commander
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 6671
Joined: Wed Feb 28, 2007 7:54 am

More glowy lasers

Post by another_commander »

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
Image


ACES based laser effect
Image

In-game
Image
User avatar
hiran
Theorethicist
Posts: 2397
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

Post by hiran »

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.
Sunshine - Moonlight - Good Times - Oolite
another_commander
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 6671
Joined: Wed Feb 28, 2007 7:54 am

Re: More glowy lasers

Post by another_commander »

When did Oolite become realistic?
another_commander
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 6671
Joined: Wed Feb 28, 2007 7:54 am

Re: More glowy lasers

Post by another_commander »

Here is with the laser brightness all the way down. Could go actually even further if we so wished.
Image

Pilot's view:
Image

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.
User avatar
hiran
Theorethicist
Posts: 2397
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

Post by hiran »

another_commander wrote: Tue Sep 24, 2024 11:15 am
When did Oolite become realistic?
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
User avatar
Redspear
---- E L I T E ----
---- E L I T E ----
Posts: 2672
Joined: Thu Jun 20, 2013 10:22 pm
Location: On the moon Thought, orbiting the planet Ignorance.

Re: More glowy lasers

Post by Redspear »

another_commander wrote: Tue Sep 24, 2024 11:38 am
Rule of Cool says that it must look like Star Wars
Right :D

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 8)
User avatar
Wildeblood
---- E L I T E ----
---- E L I T E ----
Posts: 2446
Joined: Sat Jun 11, 2011 6:07 am
Location: Western Australia
Contact:

Re: More glowy lasers

Post by Wildeblood »

another_commander wrote: Tue Sep 24, 2024 11:38 am
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.
I believe that this is a non sequitur.
I thought the grey swan symbol was good, but when he said the new country's flag should be printed on "holographic" fabric, I began to doubt.
User avatar
cbr
---- E L I T E ----
---- E L I T E ----
Posts: 1420
Joined: Thu Aug 27, 2015 4:24 pm

Re: More glowy lasers

Post by cbr »

another_commander wrote: Tue Sep 24, 2024 11:38 am
Here 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.
Could the brightness setting be a variable which an oxp (or a shipdata.plist ) could change?
User avatar
hiran
Theorethicist
Posts: 2397
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

Post by hiran »

Could a ship that is hit by laser flash up? As if it were in a strong spotlight?
Sunshine - Moonlight - Good Times - Oolite
another_commander
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 6671
Joined: Wed Feb 28, 2007 7:54 am

Re: More glowy lasers

Post by another_commander »

hiran wrote: Wed Sep 25, 2024 4:44 am
Could a ship that is hit by laser flash up? As if it were in a strong spotlight?
Yes, that's part of what the Custom Shields OXP does.
User avatar
hiran
Theorethicist
Posts: 2397
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

Post by hiran »

another_commander wrote: Wed Sep 25, 2024 6:09 am
hiran wrote: Wed Sep 25, 2024 4:44 am
Could a ship that is hit by laser flash up? As if it were in a strong spotlight?
Yes, that's part of what the Custom Shields OXP does.
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
another_commander
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 6671
Joined: Wed Feb 28, 2007 7:54 am

Re: More glowy lasers

Post by another_commander »

hiran wrote: Wed Sep 25, 2024 7:26 pm
I think it should be part of one of the flavors.
If you intend to include it in a flavor, remember that in tis latest published form this OXP doubles the game difficulty. It gives shields to NPCs.
User avatar
Nite Owl
---- E L I T E ----
---- E L I T E ----
Posts: 556
Joined: Sat Jan 20, 2018 4:08 pm
Location: In The Dark

Re: More glowy lasers

Post by Nite Owl »

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.
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
another_commander
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 6671
Joined: Wed Feb 28, 2007 7:54 am

Re: More glowy lasers

Post by another_commander »

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.
User avatar
Cholmondely
Archivist
Archivist
Posts: 5345
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

Post by Cholmondely »

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?
Post Reply