Variable-geometry ships?

General discussion for players of Oolite.

Moderators: another_commander, winston

User avatar
hiran
Theorethicist
Posts: 2063
Joined: Fri Mar 26, 2021 1:39 pm
Location: a parallel world I created for myself. Some call it a singularity...

Variable-geometry ships?

Post by hiran »

A question going through my mind is actually:

All the ships in Oolite have a model for the ship structure, then some material and shading information so they can be rendered. I am absolutely not into 3d rendering so forgive if I did not use the right terms. What I am after is slightly different:

All these ship shapes seem to be static. Even the Andromeda, which looks really awesome has one shape and that's it. Would it be possible in Oolite to have a ship that changes it's shape during flight? For example variable-sweep wings? Or a ship like jellyfish or a manta in water?
Sunshine - Moonlight - Good Times - Oolite
User avatar
Redspear
---- E L I T E ----
---- E L I T E ----
Posts: 2644
Joined: Thu Jun 20, 2013 10:22 pm

Re: Variable-geometry ships?

Post by Redspear »

I THINK... that such a thing can be done via subentities (effectively models stuck to the main model). In fact dertien (who hasn't been around these parts for a while) did it years ago if I recall...

moving bits!

video of said moving bits!
User avatar
hiran
Theorethicist
Posts: 2063
Joined: Fri Mar 26, 2021 1:39 pm
Location: a parallel world I created for myself. Some call it a singularity...

Re: Variable-geometry ships?

Post by hiran »

Redspear wrote: Wed Jun 09, 2021 7:34 pm
I THINK... that such a thing can be done via subentities (effectively models stuck to the main model). In fact dertien (who hasn't been around these parts for a while) did it years ago if I recall...

moving bits!

video of said moving bits!
This is pretty close! The ship changes it's shape, and it does so depending on the ship's status.

That would be good enough for different flight modes. A bit more vanilla would be an animated transition. Such as you could watch the gears retracing/extending, or the lasers coming out. :-)

Was dertien the only one working in that direction?
Sunshine - Moonlight - Good Times - Oolite
User avatar
Redspear
---- E L I T E ----
---- E L I T E ----
Posts: 2644
Joined: Thu Jun 20, 2013 10:22 pm

Re: Variable-geometry ships?

Post by Redspear »

There are other ships with rotating elements like some versions of the Imperial Courier I think.

Don't forget however that if it can 'change shape' then it can be animated. The rest is just a matter of sufficient frames and appropriate timing.
User avatar
hiran
Theorethicist
Posts: 2063
Joined: Fri Mar 26, 2021 1:39 pm
Location: a parallel world I created for myself. Some call it a singularity...

Re: Variable-geometry ships?

Post by hiran »

Redspear wrote: Wed Jun 09, 2021 7:52 pm
There are other ships with rotating elements like some versions of the Imperial Courier I think.

Don't forget however that if it can 'change shape' then it can be animated. The rest is just a matter of sufficient frames and appropriate timing.
Nice!
Sunshine - Moonlight - Good Times - Oolite
User avatar
cbr
---- E L I T E ----
---- E L I T E ----
Posts: 1390
Joined: Thu Aug 27, 2015 4:24 pm

Re: Variable-geometry ships?

Post by cbr »

I am not sure if the actual model data in the oxp.dat file can be altered et al after it is loaded.
User avatar
Redspear
---- E L I T E ----
---- E L I T E ----
Posts: 2644
Joined: Thu Jun 20, 2013 10:22 pm

Re: Variable-geometry ships?

Post by Redspear »

Subentites can be lost and therefore changed.
Whilst not normally restored/replaced 'in flight', I don't yet see why they couldn't be.

Multipe subentities with the same model location data only active/present one at a time?
User avatar
montana05
---- E L I T E ----
---- E L I T E ----
Posts: 1166
Joined: Mon May 30, 2016 3:54 am
Location: lurking in The Devils Triangle (G1)

Re: Variable-geometry ships?

Post by montana05 »

Image

It is possible, if you look at the Lambda Liner on top you can see it got 6 docked fighters. All of them could launch. I remove the subentity of the fighter and spawn an actual fighter at the liners position. :wink:
Scars remind us where we've been. They don't have to dictate where we're going.
User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 16063
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

Re: Variable-geometry ships?

Post by Cody »

montana05 wrote: Wed Jun 09, 2021 11:45 pm
I remove the subentity of the fighter and spawn an actual fighter at the liners position.
Griff does something similar with his Cobra III missile subents.
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
Redspear
---- E L I T E ----
---- E L I T E ----
Posts: 2644
Joined: Thu Jun 20, 2013 10:22 pm

Re: Variable-geometry ships?

Post by Redspear »

montana05 wrote: Wed Jun 09, 2021 11:45 pm
It is possible, if you look at the Lambda Liner on top you can see it got 6 docked fighters. All of them could launch. I remove the subentity of the fighter and spawn an actual fighter at the liners position. :wink:
Cody wrote: Thu Jun 10, 2021 9:57 am
Griff does something similar with his Cobra III missile subents.
Please correct me if I'm wrong but both of those examples are an on/off state of affairs (i.e. subentity is present or subentity is not).

Animation of the kind mentioned (and I believe requested) above on the other hand, would require the ability for a subentity model (or orientation) to change rather than for it to simply be removed.
User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 16063
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

Re: Variable-geometry ships?

Post by Cody »

Redspear wrote: Thu Jun 10, 2021 10:12 am
... would require the ability for a subentity model (or orientation) to change rather than for it to simply be removed.
Or be replaced by another subent? Beyond my ken, anyway!
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
Redspear
---- E L I T E ----
---- E L I T E ----
Posts: 2644
Joined: Thu Jun 20, 2013 10:22 pm

Re: Variable-geometry ships?

Post by Redspear »

Cody wrote: Thu Jun 10, 2021 10:19 am
Redspear wrote: Thu Jun 10, 2021 10:12 am
... would require the ability for a subentity model (or orientation) to change rather than for it to simply be removed.
Or be replaced by another subent?
Exactly what I was getting at above:
Redspear wrote: Wed Jun 09, 2021 9:36 pm
Multipe subentities with the same model location data only active/present one at a time?
The shipdata file may need the data for them all but given that subentities are not always displayed (the data doesn't go anywhere when they are removed/destroyed) then as long as only the relevant subentries were labeled as present at the appropriate time...

Theory isn't always the same as practice of course.
User avatar
hiran
Theorethicist
Posts: 2063
Joined: Fri Mar 26, 2021 1:39 pm
Location: a parallel world I created for myself. Some call it a singularity...

Re: Variable-geometry ships?

Post by hiran »

Cody wrote: Thu Jun 10, 2021 10:19 am
Redspear wrote: Thu Jun 10, 2021 10:12 am
... would require the ability for a subentity model (or orientation) to change rather than for it to simply be removed.
Or be replaced by another subent? Beyond my ken, anyway!
To the player it would hardly be noticeable if huge amounts of static subentities would replace each other or one subentity (or even the original ship) were changing their structure. This is more a matter of what the Oolite engine can do and what workarounds can be applied if it does not.

I can imagine the original game would show wireframes rather than perfectly rendered raytracing images just for sheer compute capacity limitations. Oolite has evolved a lot from there. And might continue in the future.

Imagine hangar bays opening, docking pylons extracting or the pilot just decides to open the sunroof of his 'convertible' spacecraft.
https://www.youtube.com/watch?v=1G13KzEJqBw
Sunshine - Moonlight - Good Times - Oolite
User avatar
montana05
---- E L I T E ----
---- E L I T E ----
Posts: 1166
Joined: Mon May 30, 2016 3:54 am
Location: lurking in The Devils Triangle (G1)

Re: Variable-geometry ships?

Post by montana05 »

For a kind of animation, lets say moving wings, we would need multiple subentities simulating the entire process. Remove one and add another one until the new position is reached. Possible but honestly I don't think worth the effort.
Scars remind us where we've been. They don't have to dictate where we're going.
User avatar
cbr
---- E L I T E ----
---- E L I T E ----
Posts: 1390
Joined: Thu Aug 27, 2015 4:24 pm

Re: Variable-geometry ships?

Post by cbr »

I believe some time ago, the thargoids had butterflies :P
Post Reply