Canopy idea!

An area for discussing new ideas and additions to Oolite.

Moderators: winston, another_commander

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

Canopy idea!

Post by Kaks »

I just had a brainwave, and thought of a bit of a cheat for ships to have semi-transparent canopies: we could use frozen, dim flashers to give the idea of a glass like substance!

In order to make the 'glass' canopy behave a bit like a solid object, we'd have to do some trickery via oxp: we could add a proper riblike structure around it as another ship subentity, and turn off flashers when the ribs are destroyed...


Enabling frozen, dim flashers does require some code changes, but nowhere near as many as enabling true transparency. In fact, I'll stick my neck out & say it could be implemented in a few hours... :)

What do you guys think?
Hey, free OXPs: farsun v1.05 & tty v0.5! :0)
User avatar
Svengali
Commander
Commander
Posts: 2370
Joined: Sat Oct 20, 2007 2:52 pm

Post by Svengali »

Nice idea! Could be pretty for some entities (e.g. Ramirez AstroFactory) .-)
User avatar
DaddyHoggy
Intergalactic Spam Assassin
Intergalactic Spam Assassin
Posts: 8515
Joined: Tue Dec 05, 2006 9:43 pm
Location: Newbury, UK
Contact:

Re: Canopy idea!

Post by DaddyHoggy »

Kaks wrote:
I just had a brainwave, and thought of a bit of a cheat for ships to have semi-transparent canopies: we could use frozen, dim flashers to give the idea of a glass like substance!

In order to make the 'glass' canopy behave a bit like a solid object, we'd have to do some trickery via oxp: we could add a proper riblike structure around it as another ship subentity, and turn off flashers when the ribs are destroyed...


Enabling frozen, dim flashers does require some code changes, but nowhere near as many as enabling true transparency. In fact, I'll stick my neck out & say it could be implemented in a few hours... :)

What do you guys think?
Are you still here? Go! Go! Go! 8) :D
Selezen wrote:
Apparently I was having a DaddyHoggy moment.
Oolite Life is now revealed here
User avatar
ClymAngus
---- E L I T E ----
---- E L I T E ----
Posts: 2514
Joined: Tue Jul 08, 2008 12:31 am
Location: London England
Contact:

Post by ClymAngus »

You could make it flash incredibly slowly. say once every 2 hours or so. It's a bit of a fudge but it might work.
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:

Post by Commander McLane »

ClymAngus wrote:
You could make it flash incredibly slowly. say once every 2 hours or so. It's a bit of a fudge but it might work.
Also depends on whether a flasher starts in on- or off-state. If it's on, it's fine. If it's off, not so much. :?
User avatar
ADCK
---- E L I T E ----
---- E L I T E ----
Posts: 771
Joined: Thu Dec 24, 2009 12:30 am
Location: Sydney
Contact:

Post by ADCK »

couldnt you put two flashers in the exact same position and colour. and have it so while ones off, the others on? That would work wouldn't it? :P
User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Post by JensAyton »

Normal flashers start at 0.5 intensity, increasing, if the phase is zero. By manipulating the phase, you can select any starting value you want.

As a special case, as of 1.74 flashers with a zero frequency are always at full intensity.
User avatar
ClymAngus
---- E L I T E ----
---- E L I T E ----
Posts: 2514
Joined: Tue Jul 08, 2008 12:31 am
Location: London England
Contact:

Post by ClymAngus »

Ahruman wrote:
Normal flashers start at 0.5 intensity, increasing, if the phase is zero. By manipulating the phase, you can select any starting value you want.

As a special case, as of 1.74 flashers with a zero frequency are always at full intensity.
Flashers are always round aren't they?
User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Post by JensAyton »

Yes.

Because they’re billboards with no particular orientation pretending to be volumetric, only spherical profiles are possible.
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:

Post by JazHaz »

Ahruman wrote:
Because they’re billboards with no particular orientation pretending to be volumetric, only spherical profiles are possible.
Flashers are billboards?

I don't remember that from Your Ad Here!? :twisted:
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
DaddyHoggy
Intergalactic Spam Assassin
Intergalactic Spam Assassin
Posts: 8515
Joined: Tue Dec 05, 2006 9:43 pm
Location: Newbury, UK
Contact:

Post by DaddyHoggy »

JazHaz wrote:
Ahruman wrote:
Because they’re billboards with no particular orientation pretending to be volumetric, only spherical profiles are possible.
Flashers are billboards?

I don't remember that from Your Ad Here!? :twisted:
We all thought it - only JazHaz was brave enough to step up to the plate and swing wildly at the set up... :wink:
Selezen wrote:
Apparently I was having a DaddyHoggy moment.
Oolite Life is now revealed here
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

Post by Kaks »

Ahruman wrote:
Normal flashers start at 0.5 intensity, increasing, if the phase is zero. By manipulating the phase, you can select any starting value you want.

As a special case, as of 1.74 flashers with a zero frequency are always at full intensity.
Yep, I was thinking of finding an easy-ish way to allow zero frequency flashers to be dimmer than max intensity ( plus another minor tweak ) to make the 0 freq flashers look less flasher-like... Still, it looks like I won't be near a proper computer for a week or so, so don't hold your breath waiting for me to do the deed... :)
Hey, free OXPs: farsun v1.05 & tty v0.5! :0)
User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Post by JensAyton »

Kaks wrote:
Yep, I was thinking of finding an easy-ish way to allow zero frequency flashers to be dimmer than max intensity ( plus another minor tweak ) to make the 0 freq flashers look less flasher-like...
You can make them as dim as you want using dictionary-form subentity specifiers. The call to +brightColorWithDescription: seems to have disappeared somewhere along the way…

What you can’t do is make them not glow. If you make them very dim they’ll become invisible, not dark.
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:

Post by JazHaz »

Ahruman wrote:
If you make them very dim they’ll become invisible, not dark.
Oooh! A way of making transparent things! :wink: :twisted:
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

Post by Kaks »

Hey, job done, and I didn't even need to spend a single minute tweaking the code... That's what I call maaad skillz! :D
Hey, free OXPs: farsun v1.05 & tty v0.5! :0)
Post Reply