Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: Black Wolf on October 17, 2006, 06:09:51 am

Title: Query - Autogenerated Shield Anis
Post by: Black Wolf on October 17, 2006, 06:09:51 am
Just curiopus - would these be considerably harder than autogenerating the top down icons currently used in ship selection?
Title: Re: Query - Autogenerated Shield Anis
Post by: Colonol Dekker on October 17, 2006, 08:24:00 am
Would it be a case of copying the Target window code and loking the view to top down?



Maybe :nervous:
Title: Re: Query - Autogenerated Shield Anis
Post by: Nuke on October 17, 2006, 12:15:13 pm
doesnt it do that already. mind you the autogened icons dont look very good. i think im gonna move on to scripted icons, because they could look better.
Title: Re: Query - Autogenerated Shield Anis
Post by: Turey on October 17, 2006, 02:14:42 pm
Just curiopus - would these be considerably harder than autogenerating the top down icons currently used in ship selection?


happens automatically already, you'll know it because the shields on the auto-generated ones are square instead of circular.
Title: Re: Query - Autogenerated Shield Anis
Post by: Wanderer on October 17, 2006, 02:22:12 pm
I just use 'GenericShield' for all the models... even retail ones...
Title: Re: Query - Autogenerated Shield Anis
Post by: WMCoolmon on October 18, 2006, 04:07:55 am
Autogenerated icons suck.

I should know, I spent awhile implementing them (lots of copy-pasted sort of code) and they still don't look that good. :p

If someone can do something better with scripting, I _might_ end up replacing the current effect with the C++ equivelant, if I get the time. But I would recommend a do-it-yourself approach for the time being, if it's feasible, either using Nuke's suggestion of scripting or ones cooked up by an artist.

All this is IMHO, of course, they may just be what you're looking for. They're toggleable via a ship-flag; it should be in the wiki, if not, PM me and I'll dig it up.
Title: Re: Query - Autogenerated Shield Anis
Post by: Nuke on October 18, 2006, 04:32:24 am
my plan was to just use a top-down image of the ship, and generate the shield quads procedurally. another way is to generate a ship icon, and render that ontop of the procedurally rendered shield quads. i could use a generic set of bitmap quads. and use gr.setOpacity() and gr.drawImage() to fade them in and out as they charge. it still calls for an image of the ship though, either created by the engine or from an image file.
Title: Re: Query - Autogenerated Shield Anis
Post by: Black Wolf on October 18, 2006, 03:29:24 pm
All this is IMHO, of course, they may just be what you're looking for. They're toggleable via a ship-flag; it should be in the wiki, if not, PM me and I'll dig it up.

I'm not actually "looking for" anything - I make my own shield anis. But I did notice a few screenies of... I think the Starfox mod, using generic Herc or whatever anis, and wondered if shield anis could be a autogenerated.