Author Topic: Shield ains?  (Read 1390 times)

0 Members and 1 Guest are viewing this topic.

Offline k19

  • 26
I've downloaded a fighter but its using the Ulysses shield ain. Just for practice i'd like to know how to make ains and the shield ain in particular.
Cheers 

 

Offline Galemp

  • Actual father of Samus
  • 212
  • Ask me about GORT!
    • Steam
    • User page on the FreeSpace Wiki
Hmm, there should be a tutorial in the wiki but there isn't.

What's the fighter? There might already exist a shield ani for it somewhere.
"Anyone can do any amount of work, provided it isn't the work he's supposed to be doing at that moment." -- Robert Benchley

Members I've personally met: RedStreblo, Goober5000, Sandwich, Splinter, Su-tehp, Hippo, CP5670, Terran Emperor, Karajorma, Dekker, McCall, Admiral Wolf, mxlm, RedSniper, Stealth, Black Wolf...

 

Offline blowfish

  • 211
  • Join the cult of KILL MY ROUTER!!!!!!!!!!1
There's this :nervous:

(found that through your SA badge, GalEmp :P)

 

Offline shiv

  • Don't forget Poland!
  • 211
  • FRED me!
    • http://freespace.pl
I've downloaded a fighter but its using the Ulysses shield ain. Just for practice i'd like to know how to make ains and the shield ain in particular.
Cheers 
Well, you might overlooked it and it could be somewhere in package with that fighter. What's the fighter that you downloaded? If there's still HUD ship ani you can easy add it via table editing.
http://www.sectorgame.com/vega
The Apocalypse Vega - Join the battle! A campaign for FreeSpace 2 Open

http://www.game-warden.com/earthdefence
Earth Defense project - Coming soon...

  

Offline Black Wolf

  • Twisted Infinities
  • 212
  • Hey! You! Get off-a my cloud!
    • Visit the TI homepage!
There are two ways. One is simple, the other more complicated. The simpler way, the way which, IMO, produces the best results, is to extract an existing [V] ani from the sparky.vp, find a ship that fairly closely matches the shape of your ship. Then extract the ani with aniview, replace the first image with a top down, high contrast image of your ship (remembering, of course, to reapply the existing pallette before saving in pcx) and recompile the ani with Anibuild. You may need to fiddle with the positions of the various elements, insert a few pixel rows here, remove them there, or, in some cases, completely flip or rotate the shield ani to fit the shape of your ship. But overall, 90% of the time, this method will produce a quick shield ani that looks just as good as the [V] ones.

On occasion though, you'll get an odd shape which requires a brand new shield ani be made. The easiest way I've found to do this is thus:

1. First, take a top down picture of your ship in PCS2 or modelview and paste it into your image editing program (I use PSP 9). Resize the ship to somewhere around two or three times bigger than it will appear on the icon (The enttire shield icon image is 112 pixels wide, 93 pixels tall. A wingless ship like an apollo or herc will normally be around 40 pixels wide and 65 pixels tall)

2. Next, create a new layer and draw a rough, curvy outline of the ship with the ellipse tool, filled in white, ideally with antialias on. Leave space between this and the edge of the hull, as the edge of this shape will be the outer edge of your shield ani.

3. Now, select the white outline you've created and use the selection contract tool to decrease the selection a few pixels, between 5 and 10 should be enough. Then invert the selection, and use the feather selection command to expand it again, another 10 or 15 pixels.

4. Invert the selection again and fill with black. You should now have your ship in the middle of a white halo that looks something like the [V] shield.

5. Resize to the appropriate scale (resizing will cover a multitude of sins, but fiddle the settings to get the best quality resize - there are a bunch of different ways PSP can do the resize maths, and some look better than others).

6. Now, draw 4 lines in black (3 pixels with anti aliasing tends to be about right for the width) to separate the four shield quadrants.

7. Now, separate the 4 shield arcs into 4 different pictures, all the same size as the icon you just created (i.er. 112x93), leaving the (high contrast, greyscale) image of your ship alone in the centre of a now blank black field.

8. The second last step is load the correct HUD Palette (which can be taken from any hud element when saved by aniview to pcx files) onto all five images.

9. Finally, you may need to clean up the antialiasing manually on the outer edge of your shield. Sometimes you can generate decent anialiasing, sometimes you don't. (See the attached picture, second row. The left hand version generated decent antialiasing, but had no internal fade-out gradient. The right hand image had an internal fade off, but all the external antialising is manual, hence the messy left shield bracket).

It's important to play around with these steps to get the best results, but basically all you need to be able to do is expland, contract and feather selections cleverly. Once you've got those tools mastered, they're relatively quick and easy to do.


The attached image are a couple of Shield anis I've done, with the top row using the simple extract and replace method, while the bottom two are two attempts using variants of the method I outlined above.

[attachment stolen by Slimey Goober]
« Last Edit: December 17, 2008, 08:54:10 am by Black Wolf »
TWISTED INFINITIES · SECTORGAME· FRONTLINES
Rarely Updated P3D.
Burn the heretic who killed F2S! Burn him, burn him!!- GalEmp