Author Topic: Thruster distortions without thruster glows?  (Read 2509 times)

0 Members and 1 Guest are viewing this topic.

Offline Shivan Hunter

  • 210
  • FRED needs lambdas!
Thruster distortions without thruster glows?
Is there any way to have a ship with a thruster distortion effect, but without a thruster glow? Possibly using these overrides?

If not, is there any other way to render a distortion effect?

 

Offline CKid

Re: Thruster distortions without thruster glows?
Yes, Dimensional Eclipse has a ship, the HAF Phoenix which uses the effect that you are looking for. How it was done, I got no clue.
If I agreed with you, we would both be wrong

 

Offline Droid803

  • Trusted poster of legit stuff
  • 213
  • /人 ◕ ‿‿ ◕ 人\ Do you want to be a Magical Girl?
    • Skype
    • Steam
Re: Thruster distortions without thruster glows?
Code: [Select]
$Thruster Bitmap 1: invisible
$Thruster Bitmap 2: invisible
$Thruster Bitmap 3: invisible

(and have an invisible texture called invisible)

That's what's on the HAF Phoenix.
(´・ω・`)
=============================================================

 

Offline Shivan Hunter

  • 210
  • FRED needs lambdas!
Re: Thruster distortions without thruster glows?
Odd. I'm doing virtually the same thing with a texture called "blank" and the distortion is rendered iff I don't override bitmap 2 with blank. I'll look at how your ship does it, though.

 

Offline Shivan Hunter

  • 210
  • FRED needs lambdas!
Re: Thruster distortions without thruster glows?
k I've got it working but I'm not entirely sure why, but I think I know. The effect that replaces thruster2 must have a fully transparent alpha channel to hide the effect, but have bright RGB values. Also apparently it can be in either maps or effects and it's read either way lol. Wonder if that works for other textures as well.

fs is odd

[EDIT] OK, how do I get a thruster to point in any direction other than backwards?!
« Last Edit: March 29, 2015, 01:06:32 am by Shivan Hunter »

 

Offline Droid803

  • Trusted poster of legit stuff
  • 213
  • /人 ◕ ‿‿ ◕ 人\ Do you want to be a Magical Girl?
    • Skype
    • Steam
Re: Thruster distortions without thruster glows?
Regarding the edit: You can't, as far as I know.
(´・ω・`)
=============================================================

 

Offline Shivan Hunter

  • 210
  • FRED needs lambdas!
Re: Thruster distortions without thruster glows?
damn.

 

Offline AdmiralRalwood

  • 211
  • The Cthulhu programmer himself!
    • Skype
    • Steam
    • Twitter
Re: Thruster distortions without thruster glows?
Or maybe you just can't yet.
Ph'nglui mglw'nafh Codethulhu GitHub wgah'nagl fhtagn.

schrödinbug (noun) - a bug that manifests itself in running software after a programmer notices that the code should never have worked in the first place.

When you gaze long into BMPMAN, BMPMAN also gazes into you.

"I am one of the best FREDders on Earth" -General Battuta

<Aesaar> literary criticism is vladimir putin

<MageKing17> "There's probably a reason the code is the way it is" is a very dangerous line of thought. :P
<MageKing17> Because the "reason" often turns out to be "nobody noticed it was wrong".
(the very next day)
<MageKing17> this ****ing code did it to me again
<MageKing17> "That doesn't really make sense to me, but I'll assume it was being done for a reason."
<MageKing17> **** ME
<MageKing17> THE REASON IS PEOPLE ARE STUPID
<MageKing17> ESPECIALLY ME

<MageKing17> God damn, I do not understand how this is breaking.
<MageKing17> Everything points to "this should work fine", and yet it's clearly not working.
<MjnMixael> 2 hours later... "God damn, how did this ever work at all?!"
(...)
<MageKing17> so
<MageKing17> more than two hours
<MageKing17> but once again we have reached the inevitable conclusion
<MageKing17> How did this code ever work in the first place!?

<@The_E> Welcome to OpenGL, where standards compliance is optional, and error reporting inconsistent

<MageKing17> It was all working perfectly until I actually tried it on an actual mission.

<IronWorks> I am useful for FSO stuff again. This is a red-letter day!
* z64555 erases "Thursday" and rewrites it in red ink

<MageKing17> TIL the entire homing code is held up by shoestrings and duct tape, basically.

 

Offline Shivan Hunter

  • 210
  • FRED needs lambdas!
Re: Thruster distortions without thruster glows?
I added 12 dockpoints in an icosahedral pattern around the sphere (it's a wormhole, or at least it's supposed to look a bit like one) and used a dummy model docked to it for the distortion effect. It looks odd but might look cool once I figure out how to customize the distortion effect itself. The wiki says I can, but $Thruster Bitmap Distortion: filename seems not to actually change the effect.

 
Re: Thruster distortions without thruster glows?
OK that sounds incredibly cool. And quite clever.

 

Offline Shivan Hunter

  • 210
  • FRED needs lambdas!
Re: Thruster distortions without thruster glows?
clever maybe, but not a good implementation. This way I have to deal with 13 ships in the mission for every wormhole I use, and docking them all is a bit of a pain if I want several wormholes in the mission. It would be much easier FRED-wise if the thrusters could be part of wormhole.pof itself.

Also, any ideas on customizing the distortion effect? Could I get an example texture that works as a replacement? No matter what I have in the file pointed to by "$Thruster Bitmap Distortion:", the effect seems to be the default FSO one.

  
Re: Thruster distortions without thruster glows?
Oh yeah, I realize it's a total hack - espacially since docked stuff tends to have rather wonky behavior, but then again that's half of what modding is about.