Issue with planet texture for extra planets

For test results, bug reports, announcements of new builds etc.

Moderators: winston, another_commander, Getafix

User avatar
phkb
Impressively Grand Sub-Admiral
Impressively Grand Sub-Admiral
Posts: 4830
Joined: Tue Jan 21, 2014 10:37 pm
Location: Writing more OXPs, because the world needs more OXPs.

Re: Issue with planet texture for extra planets

Post by phkb »

another_commander wrote: Sun Aug 20, 2023 2:30 pm
Repro'd it and confirmed it.
Oh, that's a relief! I thought it was just me, and my PC was starting a long, slow death spiral. I mean, it could still be doing that, but at least I'm not going mad.

I mean, I still might be going mad, but at least it's not as obvious now. Right?

Right?
User avatar
Redspear
---- E L I T E ----
---- E L I T E ----
Posts: 2706
Joined: Thu Jun 20, 2013 10:22 pm
Location: On the moon Thought, orbiting the planet Ignorance.

Re: Issue with planet texture for extra planets

Post by Redspear »

phkb wrote: Sun Aug 20, 2023 2:53 pm
I mean, I still might be going mad, but at least it's not as obvious now. Right?
Don't worry, you can't go mad once you're already there :P

...pass the gravel would you?
another_commander
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 6705
Joined: Wed Feb 28, 2007 7:54 am

Re: Issue with planet texture for extra planets

Post by another_commander »

I think I got something. Please test this:

Open your oolite-default-atmosphere.fragment and change this code at the end

Code: Select all

gl_FragColor = vec4(totalColor, newOpacity);
to

Code: Select all

gl_FragColor = vec4(totalColor, clamp(newOpacity, 0.0, 1.0));
Keep the gas giant radius to 20000 as it originally is, Does the above change solve your issue? It did for me and I even set gg eadius to 30000 and it still was fine.
User avatar
Redspear
---- E L I T E ----
---- E L I T E ----
Posts: 2706
Joined: Thu Jun 20, 2013 10:22 pm
Location: On the moon Thought, orbiting the planet Ignorance.

Re: Issue with planet texture for extra planets

Post by Redspear »

I appreciate that last message likely wasn't for me but after applying the above change...

Image

Radius in excess of 20,000km combined with rescaling planet multiplier of 3.5, therefore > 70,000km equivalent.

Previously this would have either resulted in a 'black hole' or a crash.
another_commander
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 6705
Joined: Wed Feb 28, 2007 7:54 am

Re: Issue with planet texture for extra planets

Post by another_commander »

I already checked in the fix with commit 7d2efe0. The root cause was that, because of the extreme size of the planets, sometimes the atmosphere shader was generating NaN for the atmosphere opacity value. We now clamp the opacity between 0.0 and 1.0, so any NaN will automatically convert to 0.0 and the shader will be saved.
User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 16081
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

Re: Issue with planet texture for extra planets

Post by Cody »

Given that it's fixed, could that black hole be recreated as a one-off? I'm thinking of an OXP that plonks a small but massive black hole in a system.
I would advise stilts for the quagmires, and camels for the snowy hills
And any survivors, their debts I will certainly pay. There's always a way!
another_commander
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 6705
Joined: Wed Feb 28, 2007 7:54 am

Re: Issue with planet texture for extra planets

Post by another_commander »

Cody wrote: Sun Aug 20, 2023 7:41 pm
Given that it's fixed, could that black hole be recreated as a one-off? I'm thinking of an OXP that plonks a small but massive black hole in a system.
How about making a pllanet with a fully black texture?
User avatar
cbr
---- E L I T E ----
---- E L I T E ----
Posts: 1430
Joined: Thu Aug 27, 2015 4:24 pm

Re: Issue with planet texture for extra planets

Post by cbr »

So I darkened phkb's Charon V Giant3 and set out to find it again...

Image

It needs a few extra settings to work :wink:
User avatar
Redspear
---- E L I T E ----
---- E L I T E ----
Posts: 2706
Joined: Thu Jun 20, 2013 10:22 pm
Location: On the moon Thought, orbiting the planet Ignorance.

Re: Issue with planet texture for extra planets

Post by Redspear »

another_commander wrote: Sun Aug 20, 2023 7:47 pm
Cody wrote: Sun Aug 20, 2023 7:41 pm
Given that it's fixed, could that black hole be recreated as a one-off? I'm thinking of an OXP that plonks a small but massive black hole in a system.
How about making a pllanet with a fully black texture?
Almost certainly unbalanced but very simple and potentially interesting...

P = pull towards 'black hole', like it or not

r = km radius of 'black hole'
d = km distance from/to 'black hole'

P = r / k
User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 16081
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

Re: Issue with planet texture for extra planets

Post by Cody »

Very small, but massively massive, likely to mess with torus drives, wouldn't show on the compass or scanner (so very hard to not-see).
I would advise stilts for the quagmires, and camels for the snowy hills
And any survivors, their debts I will certainly pay. There's always a way!
User avatar
Cholmondely
Archivist
Archivist
Posts: 5409
Joined: Tue Jul 07, 2020 11:00 am
Location: The Delightful Domains of His Most Britannic Majesty (industrial? agricultural? mainly anything?)
Contact:

Re: Issue with planet texture for extra planets

Post by Cholmondely »

Cody wrote: Sun Aug 20, 2023 7:41 pm
Given that it's fixed, could that black hole be recreated as a one-off? I'm thinking of an OXP that plonks a small but massive black hole in a system.
This is something which I would love to see.
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?
User avatar
hiran
Theorethicist
Posts: 2415
Joined: Fri Mar 26, 2021 1:39 pm
Location: a parallel world I created for myself. Some call it a singularity...

Re: Issue with planet texture for extra planets

Post by hiran »

Cody wrote: Sun Aug 20, 2023 9:30 pm
Very small, but massively massive, likely to mess with torus drives, wouldn't show on the compass or scanner (so very hard to not-see).
Whatever the core of a star system is (I guess it would be the star as it is the biggest mass), the black hole would take over, right?

You would not place a black hole into a star system but a galaxy around a black hole...
Sunshine - Moonlight - Good Times - Oolite
User avatar
Cholmondely
Archivist
Archivist
Posts: 5409
Joined: Tue Jul 07, 2020 11:00 am
Location: The Delightful Domains of His Most Britannic Majesty (industrial? agricultural? mainly anything?)
Contact:

Re: Issue with planet texture for extra planets

Post by Cholmondely »

hiran wrote: Sun Aug 20, 2023 10:31 pm
Cody wrote: Sun Aug 20, 2023 9:30 pm
Very small, but massively massive, likely to mess with torus drives, wouldn't show on the compass or scanner (so very hard to not-see).
Whatever the core of a star system is (I guess it would be the star as it is the biggest mass), the black hole would take over, right?

You would not place a black hole into a star system but a galaxy around a black hole...
From what I've read there seem to be several - the witchpoint beacon, the sun (source of all in-game light), and the planet.



Reference: Distance units (Aegidian, 2006)



Edited to add: Black Hole - new wiki page with prototype OXP link
Last edited by Cholmondely on Tue Sep 03, 2024 8:38 am, edited 1 time in total.
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?
User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 16081
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

Re: Issue with planet texture for extra planets

Post by Cody »

I've a feeling that no texture would look more like a black hole than an all-black texture. Can't check that though.
I would advise stilts for the quagmires, and camels for the snowy hills
And any survivors, their debts I will certainly pay. There's always a way!
User avatar
hiran
Theorethicist
Posts: 2415
Joined: Fri Mar 26, 2021 1:39 pm
Location: a parallel world I created for myself. Some call it a singularity...

Re: Issue with planet texture for extra planets

Post by hiran »

Cody wrote: Mon Aug 21, 2023 2:24 pm
I've a feeling that no texture would look more like a black hole than an all-black texture. Can't check that though.
If you want to see a black hole in space you not only see a red 'sphere'. You also see the effect on the light. It is like a gravitational lens bending light that is passing too close. Through that effect you can partly see what is going on behind.

https://en.m.wikipedia.org/wiki/Gravitational_lens
Sunshine - Moonlight - Good Times - Oolite
Post Reply