Variable-geometry ships?
Moderators: winston, another_commander
- hiran
- Theorethicist
- Posts: 2403
- Joined: Fri Mar 26, 2021 1:39 pm
- Location: a parallel world I created for myself. Some call it a singularity...
Variable-geometry ships?
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?
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
- Redspear
- ---- E L I T E ----
- Posts: 2685
- Joined: Thu Jun 20, 2013 10:22 pm
- Location: On the moon Thought, orbiting the planet Ignorance.
Re: Variable-geometry ships?
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!
moving bits!
video of said moving bits!
- hiran
- Theorethicist
- Posts: 2403
- 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?
This is pretty close! The ship changes it's shape, and it does so depending on the ship's status.Redspear wrote: ↑Wed Jun 09, 2021 7:34 pmI 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!
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
- Redspear
- ---- E L I T E ----
- Posts: 2685
- Joined: Thu Jun 20, 2013 10:22 pm
- Location: On the moon Thought, orbiting the planet Ignorance.
Re: Variable-geometry ships?
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.
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.
- hiran
- Theorethicist
- Posts: 2403
- 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?
I am not sure if the actual model data in the oxp.dat file can be altered et al after it is loaded.
- Redspear
- ---- E L I T E ----
- Posts: 2685
- Joined: Thu Jun 20, 2013 10:22 pm
- Location: On the moon Thought, orbiting the planet Ignorance.
Re: Variable-geometry ships?
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?
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?
- montana05
- ---- 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?
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.
Scars remind us where we've been. They don't have to dictate where we're going.
- Cody
- Sharp Shooter Spam Assassin
- Posts: 16081
- Joined: Sat Jul 04, 2009 9:31 pm
- Location: The Lizard's Claw
- Contact:
Re: Variable-geometry ships?
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!
And any survivors, their debts I will certainly pay. There's always a way!
- Redspear
- ---- E L I T E ----
- Posts: 2685
- Joined: Thu Jun 20, 2013 10:22 pm
- Location: On the moon Thought, orbiting the planet Ignorance.
Re: Variable-geometry ships?
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.
- Cody
- Sharp Shooter Spam Assassin
- Posts: 16081
- Joined: Sat Jul 04, 2009 9:31 pm
- Location: The Lizard's Claw
- Contact:
Re: Variable-geometry ships?
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!
And any survivors, their debts I will certainly pay. There's always a way!
- Redspear
- ---- E L I T E ----
- Posts: 2685
- Joined: Thu Jun 20, 2013 10:22 pm
- Location: On the moon Thought, orbiting the planet Ignorance.
Re: Variable-geometry ships?
Exactly what I was getting at above:
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.
- hiran
- Theorethicist
- Posts: 2403
- 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?
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
- montana05
- ---- 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?
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.
Re: Variable-geometry ships?
I believe some time ago, the thargoids had butterflies