Wormhole Effect

General discussion for players of Oolite.

Moderators: winston, another_commander

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

Wormhole Effect

Post by another_commander »

I was going through the wormhole code and found that for, like ever, we had the effect kind of wrong. There is a part in the code that does calculations and consumes cpu cycles only to output the result with an alpha of 0.0, i.e. completely transparent, i.e. invisible. I fixed that and made a few more changes to that and this is what I have in my test builds now:
Image
The Witchspace Eye

I think it looks kind of mesmerizing and I am considering defaulting to this effect for wormholes. This has the added bonus that it is visibly different to the q-bomb effect, which right now is coded in a very similar way.

Windows test executable available for a few days here if you want to experience it for yourself: https://we.tl/t-KCADD62Yry
User avatar
RobsterLeal
Competent
Competent
Posts: 41
Joined: Fri Sep 13, 2024 10:44 am

Re: Wormhole Effect

Post by RobsterLeal »

Tried it - like it, much better than the current one!

So +1 for making it default :)
Typhon
Average
Average
Posts: 10
Joined: Mon Jun 16, 2014 7:39 pm

Re: Wormhole Effect

Post by Typhon »

Looks a bit Goatse-ish, or is that just me?
another_commander
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 6700
Joined: Wed Feb 28, 2007 7:54 am

Re: Wormhole Effect

Post by another_commander »

Here is a different take on the effect.

Image

Temporary link to Windows test executable: https://we.tl/t-of3GBAgMxO
User avatar
Redspear
---- E L I T E ----
---- E L I T E ----
Posts: 2701
Joined: Thu Jun 20, 2013 10:22 pm
Location: On the moon Thought, orbiting the planet Ignorance.

Re: Wormhole Effect

Post by Redspear »

another_commander wrote: Fri Oct 25, 2024 11:56 am
Here is a different take on the effect.
I think I prefer this one... Not because it's less subtle but because it makes the edge of the circle less obvious (and therfore less obvious it's a flat circle).
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: Wormhole Effect

Post by hiran »

another_commander wrote: Fri Oct 25, 2024 11:56 am
Here is a different take on the effect.

Image

Temporary link to Windows test executable: https://we.tl/t-of3GBAgMxO
Looks fascinating.
But just not what a black hole should look like. I mean- since when is it transparent so the planet behind is visible?

I'd like a black hole to be black. If computational possible the rim may have a lens effect on the surrounding space, but that's it.

So would it be possible to at least render the effect on a solid black circle?
Sunshine - Moonlight - Good Times - Oolite
another_commander
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 6700
Joined: Wed Feb 28, 2007 7:54 am

Re: Wormhole Effect

Post by another_commander »

The wormholes in Oolite are definitely not black holes. They are soft sci-fi phenomena created by spaceships and powered by intense handwavium, therefore any cool looking effect is sufficient.
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: Wormhole Effect

Post by hiran »

Oops. This thread is about wormholes.
Yes it's cool with that effect.

Scrap my previous post... :oops:
Sunshine - Moonlight - Good Times - Oolite
User avatar
Wildeblood
---- E L I T E ----
---- E L I T E ----
Posts: 2472
Joined: Sat Jun 11, 2011 6:07 am
Location: Western Australia
Contact:

Re: Wormhole Effect

Post by Wildeblood »

another_commander wrote: Fri Oct 25, 2024 11:56 am
Here is a different take on the effect.
Are the colours loaded from planetinfo, so anyone can experiment? Are the colours changeable from JS, so they can be changed at any time?

I'm imagining an effect that starts an intense violet colour, changes several times through the colours of the rainbow until it reaches red, then goes to a very dim, dark red before finally disappearing.
another_commander
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 6700
Joined: Wed Feb 28, 2007 7:54 am

Re: Wormhole Effect

Post by another_commander »

Wildeblood wrote: Fri Oct 25, 2024 8:55 pm
Are the colours loaded from planetinfo, so anyone can experiment? Are the colours changeable from JS, so they can be changed at any time?

I'm imagining an effect that starts an intense violet colour, changes several times through the colours of the rainbow until it reaches red, then goes to a very dim, dark red before finally disappearing.
No, at the moment the color is hardcoded and not changeable neither from planetinfo nor from JS.

This of course could change in the future. It's not entirely straightforward, but should be doable.
User avatar
MrFlibble
---- E L I T E ----
---- E L I T E ----
Posts: 333
Joined: Sun Feb 18, 2024 12:13 pm

Re: Wormhole Effect

Post by MrFlibble »

Is this change for Windows only, or might it be getting blocked by BGS?
another_commander
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 6700
Joined: Wed Feb 28, 2007 7:54 am

Re: Wormhole Effect

Post by another_commander »

No, it is for Linux too and it shouldn't be blocked by BGS (I am running BGS here).

Note that the latest revision of the effect is not on github yet.
User avatar
MrFlibble
---- E L I T E ----
---- E L I T E ----
Posts: 333
Joined: Sun Feb 18, 2024 12:13 pm

Re: Wormhole Effect

Post by MrFlibble »

another_commander wrote: Fri Oct 25, 2024 9:23 pm
Note that the latest revision of the effect is not on github yet.
:lol:

The github pages say things like "Enhanced the wormhole effect. Also typo fix." and "Brightened up and further enhanced the appearance of the wormhole eff…", which might (did) lead one to think that the wormhole fluffing was effected on the github releases.
another_commander
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 6700
Joined: Wed Feb 28, 2007 7:54 am

Re: Wormhole Effect

Post by another_commander »

Yup, the latest version of the wormhole got into github master a couple of hours ago.
User avatar
MrFlibble
---- E L I T E ----
---- E L I T E ----
Posts: 333
Joined: Sun Feb 18, 2024 12:13 pm

Re: Wormhole Effect

Post by MrFlibble »

another_commander wrote: Sat Oct 26, 2024 12:47 pm
Yup, the latest version of the wormhole got into github master a couple of hours ago.
Ah! Misunderstanding my side. This is the wormholes left by NPCs, rather than the wormhole effect of the player jumping.

Is there anything that could be done to smooth the latter? I usually find it's lumpy mid warp, which hampers immersion.

Edit: PS.target.exitSystem() Oh nice!!!
Post Reply