Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Test Builds => Topic started by: Valathil on September 11, 2011, 09:06:39 pm

Title: Thruster Distortion Customization
Post by: Valathil on September 11, 2011, 09:06:39 pm
For MjnMixael: 
http://www.mediafire.com/?t9603wx93hma6yr

You can now define +Dist_Normal: and +Dist_Afterburn: in species_defs.tbl

and $Thruster Bitmap Distortion:, $Thruster Bitmap Distortion a:, $Thruster Distortion Radius factor:, $Thruster Distortion Length factor: and $Thruster Distortion: true / false in the ships.tbl

These come after their respective older counterparts in the table.

Please try if its working, if it is it goes to trunk
Title: Re: Thruster Distortion Customization
Post by: mjn.mixael on September 11, 2011, 10:22:24 pm
As mentioned on IRC, this all seems to be working as expected.  :yes:

Code: [Select]
<MjnMixael> I shall test
<Valathil> keep in mind default for length and rad is 2.0f
<MjnMixael> k
<MjnMixael> no specified options = On and using defaults?
<Valathil> indeed
<MjnMixael> ok, Radius and Length are self explanatory, what's $Thruster Bitmap Distortion?
<Valathil> thats the bitmap it uses to determine the shape of the distortion
<MjnMixael> oh nifty
<MjnMixael> a for afterburner
<Valathil> yes
<MjnMixael> and finally, +Dist_Normal in species_defs?
<Valathil> the same as $Thruster Bitmap Distortion only for the whole species
<MjnMixael> aha, great
* MjnMixael runs build
<Valathil> for example try using the terran secondary thruster as the shivan dist_normal and the shivan thrusters should look better
<MjnMixael> the toggle, true/false, doesn't seem to work.. radius seems good.. doing some other tests for length
<Valathil> found the toggle bugf
<MjnMixael> ok, first thoughts is that this is really awesome! You can really make these look great on all ships with Radius and Length (both work as expected)
<MjnMixael> ima test the bitmap alteration now
<MjnMixael> I haven't tested species_defs yet
<Valathil> wait ill upload a toggle fixed version
<MjnMixael> k
<Valathil> thread edited
<Eli2__> even using outwnd_printf directly does not work, i am totally clueless
<MjnMixael> so for changing the map used I can just put 'thruster02' (the map file in question should be in 'data/effects')?
<MjnMixael> (trying to understand so I can help field questions when this hits trunk
<Valathil> yes it takes the brightness of the bitmap multiplies it by 5 to get a better contrast and takes that as the alpha value of the thruster
<Valathil> by 10*
<MjnMixael> true/false fixed, and map switching works for both normal and a
<MjnMixael> lemme test a species_defs
<Valathil> ok
<Valathil> i probably should update the wiki in the meantime right?
<MjnMixael> probably
*** jg18 has left #scp: Leaving
*** jg18 has joined #scp
<IssMneur> Eli2__: are you getting a fs2_open.log generated?
<MjnMixael> hmm, seems I got the order wrong in species defs
<MjnMixael> seems like species_defs works too
<MjnMixael> nice work
Title: Re: Thruster Distortion Customization
Post by: Zacam on September 11, 2011, 10:56:07 pm

Complied clean on my end, and I can't imagine or see it causing any issues on any other platforms, so looks good to me.
Title: Re: Thruster Distortion Customization
Post by: Valathil on September 11, 2011, 10:59:57 pm
Commited per Revision 7703.

Wiki also updated with new Parameters for both tbl's
Title: Re: Thruster Distortion Customization
Post by: MetalDestroyer on September 12, 2011, 01:24:54 am
So, if the species_def.tbl doesn't have the 2 properties. What happens to distortion thruster ? Is it activated by default with the default hardcoded values ? or there is no thruster distortion ?
Title: Re: Thruster Distortion Customization
Post by: mjn.mixael on September 12, 2011, 08:10:08 am
It's activated and uses default. Which gives me the thought.. Should there be a species_defs toggle on/off option? I don't really need it, but chime in if you do.
Title: Re: Thruster Distortion Customization
Post by: swashmebuckle on September 12, 2011, 01:33:15 pm
Should there be a species_defs toggle on/off option? I don't really need it, but chime in if you do.
That would be great for FotG--the distortion look really out of place in the SW universe.  Very cool stuff though.
Title: Re: Thruster Distortion Customization
Post by: Dragon on September 12, 2011, 01:37:44 pm
Is that possible to somehow apply this effect to modeled thrusters?
Title: Re: Thruster Distortion Customization
Post by: BlasterNT on September 12, 2011, 04:45:18 pm
You should just be able to set the radius factor and length factor to 0 to disable them, right?

Although I guess it'll still try to render them, with the associated performance hit. 
Title: Re: Thruster Distortion Customization
Post by: mjn.mixael on September 12, 2011, 05:02:13 pm
Those two customizations are only in ships.tbl where you already have the on/off toggle.

To be fair, you can disable the effect across whole species by just adding the on/off toggle to each ship in your table.