Author Topic: Moving wings...can this be done in BC, and if so done with scripts?  (Read 3106 times)

Offline Raven Night

  • Models/Textures
  • Posts: 360
  • Cookies: 532
  • Welcome to the Dark Side
    • Personal ModDB site
Im just curious. I am working on the Warhammer, and it is designed to have moving wings like the Brel. What I was wondering is can this be done in game, triggered by some event (like coming out of warp or going into warp) and is it done in scripting?

Thanks for the info.

Offline ACES_HIGH

  • BCC Roleplay Game Narrator
  • Moderator
  • Posts: 1678
  • Cookies: 54
  • while(!(succeed=try()));
    • BCC Roleplay Games
Re: Moving wings...can this be done in BC, and if so done with scripts?
« Reply #1 on: March 01, 2009, 02:11:28 AM »
yeah, if you've played with the intrepid that comes with KM1, that uses a script called submodels, which essentially uses separate models to "animate" the movement I believe it was designed by the folks at BCS.

Offline lint

  • Posts: 599
  • Cookies: 211
Re: Moving wings...can this be done in BC, and if so done with scripts?
« Reply #2 on: March 01, 2009, 06:47:16 AM »
Defiant did, If my memory serves me correctly.

Offline MLeo

  • Retired Staff
  • Posts: 3636
  • Cookies: 833
  • Software Simian
    • the Programming Pantheon
Re: Moving wings...can this be done in BC, and if so done with scripts?
« Reply #3 on: March 01, 2009, 07:01:43 AM »
I and Defiant (mostly Defiant though) created it for FoundationTechnologies, partly based on the same "tech" found in ATP3.

There is also a B'Rel with the same tech, except for Red Alert instead of Warp for the trigger.
And there is the initial test bed created by Adonis, another B'Rel type ship. Vash- something I believe.

You need 3 models + 1 model for each unique moving part. Unfortunately, we can't flip models (yet).
The 3 initial models are model in initial stage (before movement), model without moving parts, model in final stage (after movement).
I still can't read peoples minds, nor can I read peoples computers, even worse, I can't combine the two to read what is going wrong with your BC install...

"It was filed under 'B' for blackmail." - Morse, Inspector Morse - The dead of Jericho.

Offline Raven Night

  • Models/Textures
  • Posts: 360
  • Cookies: 532
  • Welcome to the Dark Side
    • Personal ModDB site
Re: Moving wings...can this be done in BC, and if so done with scripts?
« Reply #4 on: March 01, 2009, 11:08:08 PM »
Ok MLeo, this is what I have now...three distinct unattached meshes. Each wing and the main body. The pivot points have been altered on the wings so when rotated in the program they rotate at the proper point.

Each wing has 2 male pins sticking out inside each wing, the main body having 4 female sockets. The tolerance is very close, but the meshes do not touch.

In order to have a model that will move properly, what changes would I have to make?

I will post pics to show each piece.

So, if I understand what you are saying this model would serve as the +1...then I would create one piece meshes where the wings are in the up and down position, and one solid mesh? Is that correct?

Wings up would only be used at warp or when landing. Otherwise the ship usually operates in wings down mode.

Offline ACES_HIGH

  • BCC Roleplay Game Narrator
  • Moderator
  • Posts: 1678
  • Cookies: 54
  • while(!(succeed=try()));
    • BCC Roleplay Games
Re: Moving wings...can this be done in BC, and if so done with scripts?
« Reply #5 on: March 02, 2009, 01:34:22 AM »
not quite, you need one model for each of the wings and the main hull, these are the parts that will move, then you need models of the whole ship with the wings up and down.

Offline Raven Night

  • Models/Textures
  • Posts: 360
  • Cookies: 532
  • Welcome to the Dark Side
    • Personal ModDB site
Re: Moving wings...can this be done in BC, and if so done with scripts?
« Reply #6 on: March 02, 2009, 05:02:17 AM »
ah, well, actually each wing is a separate model, independent of the other. So there are three distinct parts to the mesh...the port wing, starboard wing and the main hull.

For the models with the wings up and down, do they have to be one complete mesh, or can they simply be the three models (2 wings and the main hull) posed properly? I can set up a complete one piece mesh with the wings in the proper positions if required.

Thanks for everyones help.

Offline KrrKs

  • Posts: 461
  • Cookies: 25
Re: Moving wings...can this be done in BC, and if so done with scripts?
« Reply #7 on: March 02, 2009, 12:19:30 PM »
As far as I remember it is enough to position the Parts properly.

Offline Adonis

  • Ze Meister xP
  • Posts: 670
  • Cookies: 84
  • Da Death Squad ???
    • Star Trek Excalibur
Re: Moving wings...can this be done in BC, and if so done with scripts?
« Reply #8 on: March 02, 2009, 02:04:53 PM »
The testbed I did is the Vas Kholhr.

Raven, it should be like this with the models:

You need models with the wings in all final positions you want (B'rel/K'vort has 3 of those), the hull and the wings separately.

The script works in a manner that it switches between the "whole" models into the 3 separate ones, does the animation to the new positions, and then switches to the appropriate "whole" model.
Easy is the path to wisdom for those not blinded by themselves.


Offline Raven Night

  • Models/Textures
  • Posts: 360
  • Cookies: 532
  • Welcome to the Dark Side
    • Personal ModDB site
Re: Moving wings...can this be done in BC, and if so done with scripts?
« Reply #9 on: March 02, 2009, 03:47:43 PM »
Ok. Eventually I am hoping to get fancy, like adding the overload plates in front of the cannons to the moving parts if possible...would be nice if they move down out of the way when the ship goes to red alert. Would be a nice touch.

Offline Bren

  • DS9FX Team
  • Posts: 750
  • Cookies: 33
  • 6EQUJ5
Re: Moving wings...can this be done in BC, and if so done with scripts?
« Reply #10 on: March 11, 2009, 08:02:55 PM »
I may be wrong, but I think the only movements that can be done are rotations...
So opening covers or anything on already moving components may be a total headache to make work...
"The sky calls to us, if we do not destroy ourselves, we will, one day, venture to the stars." - Carl Sagan

Klingon Academy now works on XP/Vista/Win 7 thanks to one dude's patches, click here for details. I highly recommend it!

Offline SMBW

  • Noob
  • Posts: 35
  • Cookies: 107
Re: Moving wings...can this be done in BC, and if so done with scripts?
« Reply #11 on: March 12, 2009, 01:06:44 AM »
I'm not sure where the problem is but if you need to have straight movements just use a very big radius and a small angle.
Don't part with your illusions. When they are gone you may still exist, but you have ceased to live.  - -  Mark Twain

Sorry for my bad English!

Offline Rob Archer

  • Posts: 163
  • Cookies: 545
  • New Frontier MKVI
Re: Moving wings...can this be done in BC, and if so done with scripts?
« Reply #12 on: March 12, 2009, 07:15:03 AM »
I'm almost sure you can Do movements...

Covers opening is possible but boy oh boy would it be a nightmare especially with all the models, Honestly I'm not sure that the effect would be worth the effort...

An Alternative may exist though...

If you Create the Base model with No covers then Have each individual cover modeled separately, they can be loaded into the game as individual ships then attached to the ships hull at the correct location. I know its similar to what Sub Models does but this would give you control over each individual Object and you wouldn't need as many models. you could probably do the same with the Wings too, You'd Only then Need The Base model (No Wings Or Covers), The Left Wing, Right Wing and each cover.

Offline Bren

  • DS9FX Team
  • Posts: 750
  • Cookies: 33
  • 6EQUJ5
Re: Moving wings...can this be done in BC, and if so done with scripts?
« Reply #13 on: March 12, 2009, 11:31:14 AM »
I thought the reason that submodels uses integrated models for the idle positions is that submodels tend to lose positional synchronisation over time, or distance from the origin...?

Wouldn't the same problem plague that idea? (Since you are effectively doing the exact same thing...)
"The sky calls to us, if we do not destroy ourselves, we will, one day, venture to the stars." - Carl Sagan

Klingon Academy now works on XP/Vista/Win 7 thanks to one dude's patches, click here for details. I highly recommend it!

Offline Rob Archer

  • Posts: 163
  • Cookies: 545
  • New Frontier MKVI
Re: Moving wings...can this be done in BC, and if so done with scripts?
« Reply #14 on: March 12, 2009, 05:58:46 PM »
Possibly, I'm just the idea guy, Never tested it out over a long period of time

Offline MLeo

  • Retired Staff
  • Posts: 3636
  • Cookies: 833
  • Software Simian
    • the Programming Pantheon
Re: Moving wings...can this be done in BC, and if so done with scripts?
« Reply #15 on: March 12, 2009, 07:07:39 PM »
Put the plates "far" away, and then let them move only a little bit, it will look as if they have slided.

@Bren, there are several problems with having seperate submodels all the time, for one, they don't stretch when warping, another is that they don't count for shield size, then there is power and weapons on them, and if they get damaged, should the systems they represent also be damaged, and how much. There is a whole slew of issue's that are all removed through this system with just one new problem, visible damage. Which, as MVAM has proven, is only minor.
I still can't read peoples minds, nor can I read peoples computers, even worse, I can't combine the two to read what is going wrong with your BC install...

"It was filed under 'B' for blackmail." - Morse, Inspector Morse - The dead of Jericho.

Offline Defiant

  • Posts: 398
  • Cookies: 1105
    • BC: Kobayashi Maru
Re: Moving wings...can this be done in BC, and if so done with scripts?
« Reply #16 on: March 15, 2009, 03:09:17 AM »
Thats correct. I played with half a dozen different options for moving parts and the submodel thing is the best compromise of them all.

Rotation and Translation are supported, but requires a lot time to find the right values.

Offline FourChan

  • Admiral Noel Vermillion
  • Posts: 608
  • Cookies: 4
  • Starfleet Technologies Development Center
    • Twitter Four Channel
Re: Moving wings...can this be done in BC, and if so done with scripts?
« Reply #17 on: March 25, 2009, 01:17:19 PM »
Has anyone mentioned that this looks like a Klingon Scimitar?

xxSWxxNinja

  • Guest
Re: Moving wings...can this be done in BC, and if so done with scripts?
« Reply #18 on: June 22, 2009, 12:38:56 PM »
Okay I know this topic is slightly old, however if any of the posters are about I was wondering if it would be feasable in using this method to impliment turret animations. Or is this simply not possible under any circumstances?

Offline MLeo

  • Retired Staff
  • Posts: 3636
  • Cookies: 833
  • Software Simian
    • the Programming Pantheon
Re: Moving wings...can this be done in BC, and if so done with scripts?
« Reply #19 on: June 22, 2009, 12:59:44 PM »
The script isn't designed for that. Only moving/rotating from one position to another on certain triggers (incidental triggers, not frequent triggers).
I still can't read peoples minds, nor can I read peoples computers, even worse, I can't combine the two to read what is going wrong with your BC install...

"It was filed under 'B' for blackmail." - Morse, Inspector Morse - The dead of Jericho.