Author Topic: Is there a way to make weapon trails opaque?  (Read 3149 times)

0 Members and 1 Guest are viewing this topic.

Offline redsniper

  • 211
  • Aim for the Top!
Is there a way to make weapon trails opaque?
I've been messing around with table editing trying to make a grappling hook-type weapon. I've got a primary with a negative mass, which does a pretty good job of sucking enemy ships towards the player, and I've given it a trail that looks sort of like a metal cable. The only problem is that even at full alpha, stars and such are visible through the trail. Do you fellows know any way to render a trail opaque? Or perhaps a better way to simulate a grappling hook?

While I'm at it, how customizable are countermeasures? I want to replace the default with flares or something a little more low tech, can countermeasures be given flags like fof or not?
"Think about nice things not unhappy things.
The future makes happy, if you make it yourself.
No war; think about happy things."   -WouterSmitssm

Hard Light Productions:
"...this conversation is pointlessly confrontational."

 

Offline DaBrain

  • Screensniper
  • 212
    • Shadows of Lylat board
Re: Is there a way to make weapon trails opaque?
Did you try using an alpha channel for the trail? (Compress as DXT5, or for testing, 32-Bit TGA)
--------------------------------------------------
SoL is looking for a sound effect artist
Please PM me in case you want to apply
---------------------------------
Shadows of Lylat - A Freespace 2 total conversion
(hosted by Game-Warden)
----------------------------------

 

Offline redsniper

  • 211
  • Aim for the Top!
Re: Is there a way to make weapon trails opaque?
Well, no, but I think this has to do with how all trails are rendered. I know for some effects, black is the transparent color, but the stars are showing through all parts of the trail. The effect is already a tga for now, I'll check the alpha channel, but I'm pretty sure it's fully opaque.

EDIT: added an alpha channel, no effect.
« Last Edit: August 02, 2008, 06:08:00 pm by redsniper »
"Think about nice things not unhappy things.
The future makes happy, if you make it yourself.
No war; think about happy things."   -WouterSmitssm

Hard Light Productions:
"...this conversation is pointlessly confrontational."

 
Re: Is there a way to make weapon trails opaque?
I totally want to see a video of this... :lol:

 

Offline redsniper

  • 211
  • Aim for the Top!
Re: Is there a way to make weapon trails opaque?
I mean, I've considered modeling the whole harpoon and cable, but then it would disappear as soon as it hit the target, right? I want it to at least sort of look like the cable is retracting and pulling the fighter towards you. Perhaps something in the scripting system could help, but I haven't even begun to learn how to use that, so I wouldn't know.
"Think about nice things not unhappy things.
The future makes happy, if you make it yourself.
No war; think about happy things."   -WouterSmitssm

Hard Light Productions:
"...this conversation is pointlessly confrontational."

 

Offline DaBrain

  • Screensniper
  • 212
    • Shadows of Lylat board
Re: Is there a way to make weapon trails opaque?
Well, no, but I think this has to do with how all trails are rendered. I know for some effects, black is the transparent color, but the stars are showing through all parts of the trail. The effect is already a tga for now, I'll check the alpha channel, but I'm pretty sure it's fully opaque.

EDIT: added an alpha channel, no effect.

Well, glowpoints for example can be rendered additive or alpha blended. The method is defined by the map. (24-Bit -> Additive 32-Bit Alpha).

If adding an alpha channel didn't work, this might be yet another issue which could be solved with the material system...
--------------------------------------------------
SoL is looking for a sound effect artist
Please PM me in case you want to apply
---------------------------------
Shadows of Lylat - A Freespace 2 total conversion
(hosted by Game-Warden)
----------------------------------

 

Offline redsniper

  • 211
  • Aim for the Top!
Re: Is there a way to make weapon trails opaque?
Could someone please move this to Freespace Modding? I think it's a little more suited to that board and will get more views there. Thanks.
"Think about nice things not unhappy things.
The future makes happy, if you make it yourself.
No war; think about happy things."   -WouterSmitssm

Hard Light Productions:
"...this conversation is pointlessly confrontational."

 

Offline redsniper

  • 211
  • Aim for the Top!
Re: Is there a way to make weapon trails opaque?
WRYYYYYYYYYYYY!!!
:bump:
"Think about nice things not unhappy things.
The future makes happy, if you make it yourself.
No war; think about happy things."   -WouterSmitssm

Hard Light Productions:
"...this conversation is pointlessly confrontational."

 
Re: Is there a way to make weapon trails opaque?
While I'm at it, how customizable are countermeasures? I want to replace the default with flares or something a little more low tech, can countermeasures be given flags like fof or not?
Well... create a flare model, texture it and replace the current one.
no.one

 

Offline redsniper

  • 211
  • Aim for the Top!
Re: Is there a way to make weapon trails opaque?
:blah:
"Think about nice things not unhappy things.
The future makes happy, if you make it yourself.
No war; think about happy things."   -WouterSmitssm

Hard Light Productions:
"...this conversation is pointlessly confrontational."