Author Topic: Thruster Distortion Customization  (Read 2875 times)

0 Members and 1 Guest are viewing this topic.

Offline Valathil

  • ...And I would have had a custom title if it wasn't for you meddling kids!
  • 29
  • Custom Title? Wizards need no Custom Title!
Thruster Distortion Customization
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
« Last Edit: September 11, 2011, 10:12:39 pm by Valathil »
┏┓╋┏┓╋╋╋╋╋╋╋╋╋┏┓
┃┃╋┃┃╋╋╋╋╋╋╋╋╋┃┃
┃┃┏┫┃┏┳━━┓┏━━┓┃┗━┳━━┳━━┳━━┓
┃┃┣┫┗┛┫┃━┫┃┏┓┃┃┏┓┃┏┓┃━━┫━━┫
┃┗┫┃┏┓┫┃━┫┃┏┓┃┃┗┛┃┗┛┣━━┣━━┃
┗━┻┻┛┗┻━━┛┗┛┗┛┗━━┻━━┻━━┻━━┛

 

Offline mjn.mixael

  • Cutscene Master
  • 212
  • Chopped liver
    • Steam
    • Twitter
Re: Thruster Distortion Customization
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
« Last Edit: September 11, 2011, 10:35:15 pm by mjn.mixael »
Cutscene Upgrade Project - Mainhall Remakes - Between the Ashes
Youtube Channel - P3D Model Box
Between the Ashes is looking for committed testers, PM me for details.
Freespace Upgrade Project See what's happening.

 

Offline Zacam

  • Magnificent Bastard
  • Administrator
  • 211
  • I go Sledge-O-Matic on Spammers
    • Minecraft
    • Steam
    • Twitter
    • ModDB Feature
Re: Thruster Distortion Customization

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.
Report MediaVP issues, now on the MediaVP Mantis! Read all about it Here!
Talk with the community on Discord
"If you can keep a level head in all this confusion, you just don't understand the situation"

¤[D+¬>

[08/01 16:53:11] <sigtau> EveningTea: I have decided that I am a 32-bit registerkin.  Pronouns are eax, ebx, ecx, edx.
[08/01 16:53:31] <EveningTea> dhauidahh
[08/01 16:53:32] <EveningTea> sak
[08/01 16:53:40] * EveningTea froths at the mouth
[08/01 16:53:40] <sigtau> i broke him, boys

 

Offline Valathil

  • ...And I would have had a custom title if it wasn't for you meddling kids!
  • 29
  • Custom Title? Wizards need no Custom Title!
Re: Thruster Distortion Customization
Commited per Revision 7703.

Wiki also updated with new Parameters for both tbl's
┏┓╋┏┓╋╋╋╋╋╋╋╋╋┏┓
┃┃╋┃┃╋╋╋╋╋╋╋╋╋┃┃
┃┃┏┫┃┏┳━━┓┏━━┓┃┗━┳━━┳━━┳━━┓
┃┃┣┫┗┛┫┃━┫┃┏┓┃┃┏┓┃┏┓┃━━┫━━┫
┃┗┫┃┏┓┫┃━┫┃┏┓┃┃┗┛┃┗┛┣━━┣━━┃
┗━┻┻┛┗┻━━┛┗┛┗┛┗━━┻━━┻━━┻━━┛

 

Offline MetalDestroyer

  • Starwars reborn!
  • 210
Re: Thruster Distortion Customization
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 ?

 

Offline mjn.mixael

  • Cutscene Master
  • 212
  • Chopped liver
    • Steam
    • Twitter
Re: Thruster Distortion Customization
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.
« Last Edit: September 12, 2011, 08:23:20 am by mjn.mixael »
Cutscene Upgrade Project - Mainhall Remakes - Between the Ashes
Youtube Channel - P3D Model Box
Between the Ashes is looking for committed testers, PM me for details.
Freespace Upgrade Project See what's happening.

 

Offline swashmebuckle

  • 210
  • Das Lied von der Turd
    • The Perfect Band
Re: Thruster Distortion Customization
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.

 

Offline Dragon

  • Citation needed
  • 212
  • The sky is the limit.
Re: Thruster Distortion Customization
Is that possible to somehow apply this effect to modeled thrusters?

 
Re: Thruster Distortion Customization
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. 

 

Offline mjn.mixael

  • Cutscene Master
  • 212
  • Chopped liver
    • Steam
    • Twitter
Re: Thruster Distortion Customization
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.
Cutscene Upgrade Project - Mainhall Remakes - Between the Ashes
Youtube Channel - P3D Model Box
Between the Ashes is looking for committed testers, PM me for details.
Freespace Upgrade Project See what's happening.