[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

[RELEASE] System Features: Sunspots and Rings OXPs

Post by cim »

Now as official releases - sunspots and planetary rings for Oolite 1.77.

Image Image
Download Rings - requires good shader support. Adds rings to 1-4 systems in each galaxy. Improved texture in 1.1 provided by ZygoUgo.

Image
Download Sunspots - requires shader support.

Thanks also to another_commander, Diziet Sma, Eric Walch, El Viejo and Commander McLane for testing and bug fixes.
Last edited by cim on Sat May 11, 2013 5:01 pm, edited 6 times in total.
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 »

cim - This looks great (Something that I'd hoped to see for a while).

Excellent work :wink:
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"
Kasero
Dangerous
Dangerous
Posts: 81
Joined: Tue Sep 18, 2012 9:38 pm
Location: Rich Agricultural - Mainly Liquors/wines - Burgondy France

Re: [Proof of concept] Planetary Rings OXP

Post by Kasero »

Looks very nice and promising 8)
User avatar
JazHaz
---- E L I T E ----
---- E L I T E ----
Posts: 2991
Joined: Tue Sep 22, 2009 11:07 am
Location: Enfield, Middlesex
Contact:

Re: [Proof of concept] Planetary Rings OXP

Post by JazHaz »

Well done. This was something I was thinking about only the other day.

Can you collide with the rings or fly right through them? Going to try anyway! :)
JazHaz

Gimi wrote:
drew wrote:
£4,500 though! :shock: <Faints>
Cheers,
Drew.
Maybe you could start a Kickstarter Campaign to found your £4500 pledge. 8)
Thanks to Gimi, I got an eBook in my inbox tonight (31st May 2014 - Release of Elite Reclamation)!
another_commander
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 6547
Joined: Wed Feb 28, 2007 7:54 am

Re: [Proof of concept] Planetary Rings OXP

Post by another_commander »

I'm getting this error on an Intel HD graphics:

08:29:59.182 [shader.compile.failure]: ***** ERROR: GLSL fragment shader compilation failed for vedemo-rings.fragment:
>>>>> GLSL log:
ERROR: 2:74: 'dot' : no matching overloaded function found - implicit conversion not allowed


08:29:59.182 [shader.load.fullModeFailed]: ----- WARNING: Could not build shader vedemo-rings.vertex/vedemo-rings.fragment in full complexity mode, trying simple mode.
08:29:59.183 [shader.compile.failure]: ***** ERROR: GLSL fragment shader compilation failed for vedemo-rings.fragment:
>>>>> GLSL log:
ERROR: 2:74: 'dot' : no matching overloaded function found - implicit conversion not allowed
User avatar
JazHaz
---- E L I T E ----
---- E L I T E ----
Posts: 2991
Joined: Tue Sep 22, 2009 11:07 am
Location: Enfield, Middlesex
Contact:

Re: [Proof of concept] Planetary Rings OXP

Post by JazHaz »

another_commander wrote:
Intel HD graphics
Thats your problem right there!! :twisted:
another_commander
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 6547
Joined: Wed Feb 28, 2007 7:54 am

Re: [Proof of concept] Planetary Rings OXP

Post by another_commander »

Actually the HD is quite a much improved card/drivers system, compared to the quality I was used to from Intel. Now that I have seen what the problem is, it appears that the Intel drivers seem to be just stricter, not necessarily buggy.

Anyway, the solution here is to go to vedemo-rings.fragment, line 74 and change it from

Code: Select all

float dist = dot(uDist, offset);
to

Code: Select all

float dist = dot(vec3(uDist), offset);
User avatar
JazHaz
---- E L I T E ----
---- E L I T E ----
Posts: 2991
Joined: Tue Sep 22, 2009 11:07 am
Location: Enfield, Middlesex
Contact:

Re: [Proof of concept] Planetary Rings OXP

Post by JazHaz »

JazHaz wrote:
Can you collide with the rings or fly right through them? Going to try anyway! :)
Yes you can fly right through them. If you stop when you enter the plane of the rings, they disappear completely, but reappear if you leave the plane. The rings are 2D in that respect.

It works nicely on my NVIDIA card, with no errors in my log. Here's my screenshots:

Image
Rings Demo 1 by JazHaz, on Flickr

Image
Rings Demo 2 by JazHaz, on Flickr

Image
Rings Demo 3 by JazHaz, on Flickr
Last edited by JazHaz on Thu Sep 20, 2012 9:42 am, edited 1 time in total.
JazHaz

Gimi wrote:
drew wrote:
£4,500 though! :shock: <Faints>
Cheers,
Drew.
Maybe you could start a Kickstarter Campaign to found your £4500 pledge. 8)
Thanks to Gimi, I got an eBook in my inbox tonight (31st May 2014 - Release of Elite Reclamation)!
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 »

another_commander wrote:
Anyway, the solution here is to go to vedemo-rings.fragment, line 74 and change it from

Code: Select all

float dist = dot(uDist, offset);
to

Code: Select all

float dist = dot(vec3(uDist), offset);
Thanks - will fix. The Nvidia card I have is annoyingly lax about even reporting implicit type conversions like that, so I have to get them all correct by eye.
User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 16055
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

Re: [Proof of concept] Planetary Rings OXP

Post by Cody »

<grumbles> I can't get trunk to run, so I can't look at the rings... and now the latest nVidia drivers are giving me a small problem... grr!
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
Rxke
Retired Assassin
Retired Assassin
Posts: 1757
Joined: Thu Aug 12, 2004 4:54 pm
Location: Belgium

Re: [Proof of concept] Planetary Rings OXP

Post by Rxke »

:oops: been very enthusiastic about this in the thread 'screenshots'

this is grrrrrrrrrrrrreat!
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 »

I don't know if this would be possible but it would add yet another layer of immersion if their was a chance of sustaining different degrees of damage, or sometimes no damage, if you fly through the rings.
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
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 »

Collisions themselves would be relatively easy to simulate with a frame callback, since the visible part of the rings takes up a well-defined region of space.

If you wanted to do the same for NPC ships you would need to consider efficiency of collision detection and providing AI support for going around the rings at least some of the time.
El Viejo wrote:
<grumbles> I can't get trunk to run
I have a Win XP/Nvidia combination that I can boot up when I get a bit more time, to see if I can get the same crashes. Can you remember what the revision number of the last trunk version to work for you was?
User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 16055
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

Re: [Proof of concept] Planetary Rings OXP

Post by Cody »

cim wrote:
Can you remember what the revision number of the last trunk version to work for you was?
Heh... there's a question. In a word, no... but it would've been prior to me installing the deployment trial build (Aug 16-17), I think.
First trunk version that I got crashes with (that I can recall) was the nightly v5287.
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
Kaks
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 3009
Joined: Mon Jan 21, 2008 11:41 pm
Location: The Big Smoke

Re: [Proof of concept] Planetary Rings OXP

Post by Kaks »

cim wrote:
Collisions themselves would be relatively easy to simulate with a frame callback, since the visible part of the rings takes up a well-defined region of space.
or you could put a low density, physically weak real oolite entity in exactly the same place, with a transparent shader as texture. All you'd need then is a script that recreates it every time it's destroyed... ;)
Hey, free OXPs: farsun v1.05 & tty v0.5! :0)
Post Reply