Fractal Softworks Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Starsector 0.97a is out! (02/02/24); New blog post: Simulator Enhancements (03/13/24)

Author Topic: Missile Bay/Animated Weapon Demo  (Read 8803 times)

Vinya

  • Captain
  • ****
  • Posts: 379
  • Vulgar at best...
    • View Profile
    • Mykyria Scifi/Zombie writing blog (Old site)
Missile Bay/Animated Weapon Demo
« on: April 16, 2013, 08:12:06 PM »

After fiddling around with animated weapons for a while, I decided to try making one from scratch that would be unique to my ship.

(gif is pretty low quality, online converters fail badly)



Essentially what I did was..

- Cut/paste panel from ship into a new .PNG

- Make red outline of the area being animated

- For the first couple frames, lightly shadow the edges of the panel, to simulate it retracting into the hull

- For the rest of the frames, moved the panel back one pixel each time while trimming anything that stuck out of the outline off (At the last few pixels let it stay for a few seconds, as to allow missiles to get out and so the hole isn't completely black)

- (Out of laziness) colored the part where the panel is on the ship black. You could also re-color the outline in each frame of the animation, but I realized I hadn't made a hole under the panel yet.

- Did the animation again backwards (file copy/paste/rename)

- Made the .wpn file (look at existing animated weapons for reference on how to set them up.)

- Timed the weapon data with the animation so that the bay was open while it was actually firing: chargeup = (# of frames / framerate) / 2, chargedown should at least be the same value as chargeup.

- Positioned weapon mounts correctly on ship. TurnRate must be 0.

- Test until perfect!

All done with Paint.net, I'm sure any other image editor capable of Alpha Channels would work. One main drawback to this particular bay is that it's one-sided- I had to flip each image to make the left bay, not to mention make a separate .wpn, .csv line, and animation folder. Meh, payoff was worth it.

Screenshots (Large images):
Spoiler
Stopping to ready missiles (and steady the mystical screenshot camera)
Bay half-open. The charge-up and charge-down for each bay is 0.5
Bay fully open, missile about to fire.
Bay beginning to close, missile launched.
Missile away, bay safely closed.
Two missiles fired in tandem- one bay is closed, the other is just about to lock in place.
Refit screen. Notice small offset- Hardpoints are tricky sometimes for positioning.
[close]


To see the ship this weapon is implemented on, check out the Starfighter: Legacy mod! This ship will be coming in the next release.




Please also let me know if you found this demo helpful, and any other tips on making these kind of things better for the next time. Yeah, screenshots. Does Starsector have a built-in screenshot thingy?


Next demo: Retracting weapon pods!
« Last Edit: April 16, 2013, 09:51:08 PM by Vinya »
Logged
If by "good guys" you mean "elitist regime that suppresses colonial independence and thrives off of an overwhelmingly deep gap in wealth between social classes," then yes.

phyrex

  • Admiral
  • *****
  • Posts: 751
    • View Profile
Re: Missile Bay/Animated Weapon Demo
« Reply #1 on: April 16, 2013, 09:19:50 PM »

i have no clue what i should be looking for in the gif...

you should make a video. im too lazy to check the whole mod but the concept itself seems really cool
Logged

Sproginator

  • Admiral
  • *****
  • Posts: 3592
  • Forum Ancient
    • View Profile
Re: Missile Bay/Animated Weapon Demo
« Reply #2 on: April 16, 2013, 09:22:48 PM »

i have no clue what i should be looking for in the gif...

you should make a video. im too lazy to check the whole mod but the concept itself seems really cool

Aye, vid please
Logged
A person who's never made a mistake, never tried anything new
- Albert Einstein

As long as we don't quit, we haven't failed
- Jamie Fristrom (Programmer for Spiderman2 & Lead Developer for Energy Hook)

Vinya

  • Captain
  • ****
  • Posts: 379
  • Vulgar at best...
    • View Profile
    • Mykyria Scifi/Zombie writing blog (Old site)
Re: Missile Bay/Animated Weapon Demo
« Reply #3 on: April 16, 2013, 09:33:22 PM »

What software would you recommend?

My laptop isn't very powerful.

I'll try to get some screenshots right away.
Logged
If by "good guys" you mean "elitist regime that suppresses colonial independence and thrives off of an overwhelmingly deep gap in wealth between social classes," then yes.

phyrex

  • Admiral
  • *****
  • Posts: 751
    • View Profile
Re: Missile Bay/Animated Weapon Demo
« Reply #4 on: April 16, 2013, 09:42:30 PM »

What software would you recommend?

My laptop isn't very powerful.

I'll try to get some screenshots right away.

fraps ? its a pretty easy to find and use program and theres always a free version lying around on the net or a demo (i forgot exactly)

but please, do make the extra effor tto pull out a vid, you might be laying down the first steps of complex built-in weapon animations  ;D
Logged

Vinya

  • Captain
  • ****
  • Posts: 379
  • Vulgar at best...
    • View Profile
    • Mykyria Scifi/Zombie writing blog (Old site)
Re: Missile Bay/Animated Weapon Demo
« Reply #5 on: April 16, 2013, 09:52:23 PM »

Eh, I hate using Youtube, and I'd rather not spam my Vimeo with random stuff like this. I'll see about video. For the next Demo I'll take screenshots of the actual image editing for some more reference.. This post is more showing off :D

Updated OP with screenshots.

EDIT: I'm waiting on a new sprite to do the next one. If you want moar, harass Doogie to get things done :)
« Last Edit: April 16, 2013, 09:54:22 PM by Vinya »
Logged
If by "good guys" you mean "elitist regime that suppresses colonial independence and thrives off of an overwhelmingly deep gap in wealth between social classes," then yes.