[RELEASE] System Features: Sunspots and Rings OXPs

Discussion and information relevant to creating special missions, new ships, skins etc.

Moderators: another_commander, winston

User avatar
cim
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 4072
Joined: Fri Nov 11, 2011 6:19 pm

Re: [Proof of concept] Planetary Rings OXP

Post by cim »

Odd - I don't get that at all.
User avatar
Shipbuilder
---- E L I T E ----
---- E L I T E ----
Posts: 877
Joined: Thu May 10, 2012 9:41 pm
Location: Derby

Re: [Proof of concept] Planetary Rings OXP

Post by Shipbuilder »

Is it intended that a limited number of planets will have planetary rings in the next version of Oolite?
The GalTech Industries Corporation - Building ships to populate the galaxies.

Increase the variety of ships within your Ooniverse by downloading my OXPs

Flying the [wiki]Serpent_Class_Cruiser[/wiki] "Thargoid's Bane"
User avatar
submersible
Commodore
Commodore
Posts: 264
Joined: Thu Nov 10, 2011 7:49 am

Re: [Proof of concept] Planetary Rings OXP

Post by submersible »

Code: Select all

                        if (noise1+noise2+noise3 < threshold) {
                                discard;
                        } else {
                                float r = 0.1+(0.1*sin(r2*10000.0)*sin(r2*10000.0))+(noise3*0.5);
                                float g = r + noise2/18.0;
                                float b = g + noise1/33.0;
I noticed the magic number 10000.0 here in the fragment shader - because it was a magic constant I found worked in shady planets for some things, it also failed to work on the F7 view.

cim - is this an artifact of some GL scaling ? I cannot find it.
User avatar
cim
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 4072
Joined: Fri Nov 11, 2011 6:19 pm

Re: [Proof of concept] Planetary Rings OXP

Post by cim »

It's a scaling factor - basically to get the bands in the ring (r2 being the squared distance from the centre of the ring, in units of the size of the ring object - which is itself much bigger than the ring)

Since it's a squared distance, it comes to 100 bands across the entire radius of the ring object, which experimentally gave the right look for the visible part of the ring.
User avatar
cim
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 4072
Joined: Fri Nov 11, 2011 6:19 pm

Re: [RELEASE] System Features: Rings OXP

Post by cim »

Now 1.77 is out this is an officially released OXP, with a few extra tweaks to make the rings look better.
Duggan
---- E L I T E ----
---- E L I T E ----
Posts: 496
Joined: Sat Dec 31, 2011 2:58 pm

Re: [RELEASE] System Features: Rings OXP

Post by Duggan »

I do not seem to be able to get this oxp to work at all, I wonder, might it be in conflict with my currently installed oxp's (I'm thinking system redux,sensible suns BGS). I don't know :)

I have added the oxp to my add ons, but so far not even a feathering of astro dust surrounding a planet..I'm not unduly concerned, but I think this oxp would be a wonderful visual add on.
I'm running 64 bit windows 8 on i5 processor with intel(R) graphics, with 8 gig of RAM, not that I know what any of that means, but hey..it might be or might not be relevant :)
Flying Python Class Cruiser, Chapter & Verse IV
User avatar
CommRLock78
---- E L I T E ----
---- E L I T E ----
Posts: 1138
Joined: Sat Apr 07, 2012 7:35 pm
Location: US
Contact:

Re: [RELEASE] System Features: Rings OXP

Post by CommRLock78 »

Duggan wrote:
I do not seem to be able to get this oxp to work at all, I wonder, might it be in conflict with my currently installed oxp's (I'm thinking system redux,sensible suns BGS). I don't know :)

I have added the oxp to my add ons, but so far not even a feathering of astro dust surrounding a planet..I'm not unduly concerned, but I think this oxp would be a wonderful visual add on.
I'm running 64 bit windows 8 on i5 processor with intel(R) graphics, with 8 gig of RAM, not that I know what any of that means, but hey..it might be or might not be relevant :)
You have to be patient - they are a rare thing indeed. It probably took 4 or 5 days after installing before I saw my first ring system :D.
"I'll laser the mark all while munching a fistful of popcorn." - Markgräf von Ededleen, Marquess, Brutal Great One, Assassins' Guild Exterminator
---------------------------
At the helm of the Caduceus Omega, 'Murderous Morrígan'
User avatar
Eric Walch
Slightly Grand Rear Admiral
Slightly Grand Rear Admiral
Posts: 5536
Joined: Sat Jun 16, 2007 3:48 pm
Location: Netherlands

Re: [RELEASE] System Features: Rings OXP

Post by Eric Walch »

Duggan wrote:
I do not seem to be able to get this oxp to work at all,....
Like said above, be patience. The proof-of-concept version added one around every planet, but the download page of this oxp writes: "Adds rings to 1-4 systems in each galaxy."

That means that finding rings will be a rare event. Just a rare as level 14 systems. :) Peeking into the code, I see that only the biggest planets have rings, so you could select on the galactic map one of the biggest planets and travel to that system. You should see the rings there.
User avatar
onno256
---- E L I T E ----
---- E L I T E ----
Posts: 286
Joined: Thu Aug 12, 2010 11:31 am
Location: The Netherlands

Re: [RELEASE] System Features: Rings OXP

Post by onno256 »

Nice, gonna grab this one!
Wheeling an' dealing while cruisin' the galaxies
Duggan
---- E L I T E ----
---- E L I T E ----
Posts: 496
Joined: Sat Dec 31, 2011 2:58 pm

Re: [RELEASE] System Features: Rings OXP

Post by Duggan »

Yes.that was it... all I needed to do was look me up the big Planets.. Thanks for the help :)
Flying Python Class Cruiser, Chapter & Verse IV
User avatar
Commander McLane
---- E L I T E ----
---- E L I T E ----
Posts: 9520
Joined: Thu Dec 14, 2006 9:08 am
Location: a Hacker Outpost in a moderately remote area
Contact:

Re: [RELEASE] System Features: Rings OXP

Post by Commander McLane »

I am currently in Galaxy 8 and had to travel a long way in order to visit the only planet in the whole galaxy that sports a ring.
User avatar
cim
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 4072
Joined: Fri Nov 11, 2011 6:19 pm

Re: [RELEASE] System Features: Sunspots and Rings OXPs

Post by cim »

Sunspots is now also an officially released OXP, fixing the various reported bugs (and also the unreported but really annoying bug that the sunspots rarely matched the sun's colour) in the demonstration version.

Download link in first post and [EliteWiki] on the wiki
Switeck
---- E L I T E ----
---- E L I T E ----
Posts: 2412
Joined: Mon May 31, 2010 11:11 pm

Re: [RELEASE] System Features: Sunspots and Rings OXPs

Post by Switeck »

It would be really cool to add "shepherd" moons to the rings.
Basically random asteroid types at the various ring gaps, or at least 1 asteroid just outside the radius of all the rings.

This would help explain how the rings got there and stay there.

Are the rings always at a set distance from the planet?
User avatar
cim
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 4072
Joined: Fri Nov 11, 2011 6:19 pm

Re: [RELEASE] System Features: Sunspots and Rings OXPs

Post by cim »

Switeck wrote:
It would be really cool to add "shepherd" moons to the rings.
Basically random asteroid types at the various ring gaps, or at least 1 asteroid just outside the radius of all the rings.

This would help explain how the rings got there and stay there.

Are the rings always at a set distance from the planet?
I tried adding asteroids into the rings, and they don't really look right - it just emphasises the scale gap (rings on planetary scale, asteroids on ship scale). I even tried making the ring system out of asteroids and not bothering with the ring as such (okay, but 800 asteroids stretches the frame rate a bit, and still looks wrong for scale)

Adding a small moon as a planet might work, though I suspect again the scales might look very odd.
Switeck
---- E L I T E ----
---- E L I T E ----
Posts: 2412
Joined: Mon May 31, 2010 11:11 pm

Re: [RELEASE] System Features: Sunspots and Rings OXPs

Post by Switeck »

If an asteroid embedded in the rings looks wrong, one just outside the rings might not.
Or if they seems too large, how about boulders?
Post Reply