Hard Light Productions Forums
Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: MetalMilitia on November 16, 2011, 04:32:31 am
-
Hi,
Guys, any idea of how I can get the laser to have a "Head" glow only.. I just need that glowing halo around the head.
Thanks
[attachment deleted by a basterd]
-
By making the glow bitmap have a halo around the head.
-
Try this on for size, MM. I'm not sure how well it will work... and you'll have to change the format to .dds or a .tga :nervous:
[attachment deleted by a basterd]
-
Try this on for size, MM. I'm not sure how well it will work... and you'll have to change the format to .dds or a .tga :nervous:
No Z,, that didn't work.. I tried both formats in addition to pcx.. :rolleyes:
-
Make a round laser bitmap and a short trail?
-
Try this on for size, MM. I'm not sure how well it will work... and you'll have to change the format to .dds or a .tga :nervous:
No Z,, that didn't work.. I tried both formats in addition to pcx.. :rolleyes:
Could you get a lvlshot of what it looks like in game? I'll try it at home later today, but you might be able to beat me to it.
-
Here it is, after applying the laser glow and give it a blue color. different shots of the same bolt.. I reduced the length to get the glow effect, still, it is not what is in mind :sigh:
(http://img269.imageshack.us/img269/9871/laser2a.jpg)
-
Did a quick run through with it earlier today, here's what I found out:
@Laser Glow: laser_glow ;a bitmap that defines the shape of visible parts of the bolt. Can be any compatable format? (.pcx, .tga, .dds)
@Laser Color: R, G, B ;The R, G, B color value of the bolt itself (8-bit values, 0 to 255)
@Laser Color2: R, G, B ;The R, G, B color value of the omnilight that follows the bolt
@Laser Length: meters ;The length of the bolt (Green Bracket)
@Laser Head Radius: meters ;The width of the head of the bolt (Red Bracket)
@Laser Tail Radius: meters ;The width of the tail of the bolt (Blue Bracket)
The Length and radii comments go with the attached .jpeg. I'll see if I can check the Wiki to see what it has, and maybe update it with the parts that I know for sure.
Edit: To get what TTF has, try different things with the bitmaps like scaling the dot down, and adding a halo over the head of the bolt.
[Edit]: Corrected the orientation of the head and tail vs. the bitmap coordinates.
[attachment deleted by a basterd]
-
Shouldn't that be PCX not PCS format on the first line?
Otherwise a very nice description, I wish the whole wiki had graphical explanations.
-
Yes, it should be a .pcx, thanks :P
Corrected!
-
Bumped for new info:
@Laser Bitmap and @Laser Glow are both additive textures applied to a glowpoint plane.
-> Additive textures "add" their color value to whatever's covered up by it.
-> Black areas on either bitmap are effectively transparent
@Laser Glow is affected by the @Laser Color and Color2.
-> Glow is multiplied by Color and Color2, so if the Glow is B&W and Color is Red, then Red x White = Red
The bolt's tail is on the right of the bitmap, and the head is on the left. (I had that backwards before... :nervous:)
Size of the bolt is independent of the resolution of the bitmaps. So... they're effectively stretched (you knew that before, I just confirmed it.)
Color of the following omnilight is determined solely by Color and Color2
The color of the Glow and omnilight is linearly shifted from Color to Color2 during its lifetime (Color starts, Color2 ends), allowing for fadeout and "phase-shift" effects.
If Color2 is omitted, and only Color is used, the color stays the same as defined by Color
If Color is omitted, and only Color2 is used, the default color is used for the beginning.
The default color of the omnilight and glow multiplier is white. ( Unsure if this is defined elsewhere in the .tbl or if its hardcoded )
Any omitted @Laser option will be replaced by a default value. (Need to confirm this on the length, head, and tail, however)
Order of the @Laser group is important.
- The sizes of the glowmap vs. the bitmap are different. The glow map is approximately twice the size of the bitmap. I'm not sure which lengths apply to which plane, however.
I'll try to update the Wiki sometime by Monday.
-
Very good explanation. But, if the glowmap is effectively stretched over the bolt, then there's nothing I can do to get the results I'm seeking. Unless, there's some other way.. :doubt:
-
Give it a trail, like on the Shivan Super Laser.
-
Thanx everybody for the replies.. I will see what I can do and post the results