Raised This Month: $51 Target: $400
 12% 

HHow to create the effect of "the trail of tracer bullets"?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
tonline_kms65
Member
Join Date: Aug 2016
Location: Ru. Komsomol-on-Amur
Old 10-17-2017 , 11:40   HHow to create the effect of "the trail of tracer bullets"?
Reply With Quote #1

Hello everybody.
I want to create the effect of "the trail of tracer bullets", The same as in Half-Life2

How can I do that? Tell me please.
tonline_kms65 is offline
tonline_kms65
Member
Join Date: Aug 2016
Location: Ru. Komsomol-on-Amur
Old 11-28-2017 , 23:01   Re: HHow to create the effect of "the trail of tracer bullets"?
Reply With Quote #2

All ready, figured out and did.

Video
tonline_kms65 is offline
8guawong
AlliedModders Donor
Join Date: Dec 2013
Location: BlackMarke7
Old 11-28-2017 , 23:36   Re: HHow to create the effect of "the trail of tracer bullets"?
Reply With Quote #3

so are you going to show us how its done?
__________________
8guawong is offline
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 11-29-2017 , 14:58   Re: HHow to create the effect of "the trail of tracer bullets"?
Reply With Quote #4

Quote:
Originally Posted by rules
- Do not blank out posts. Additionally, if you solve your problem post the solution for others to find.
If you post asking for help and resolve your own post, shate it for others.
__________________
Neuro Toxin is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 11-29-2017 , 15:54   Re: HHow to create the effect of "the trail of tracer bullets"?
Reply With Quote #5

I believe there is temp ents for when the energy weapons hits the ground, and muzzle flash where you can define your own material.
HL2 would use a 'tracer' material which would have a fast speed and repeating pattern (configured in the .vmt) Using this material with a correctly configured TE_SetupBeamPoints it can look like tracers from bullets.
Mitchell is offline
tonline_kms65
Member
Join Date: Aug 2016
Location: Ru. Komsomol-on-Amur
Old 12-05-2017 , 02:22   Re: HHow to create the effect of "the trail of tracer bullets"?
Reply With Quote #6

This question is so interesting?
Approximate analogy with the plugin homingmissiles, author Blodia.
So not much to load the engine of the game, I went in a simple way:

1. Create 3D model ENT (trasser). My 3d model trasser, has the physical properties (phisbox, hitbox, animation, weight, gravity). My texture, alpha-channel, transparency..
2. Doing a trace to the point of sight.
3. Start created ENT (trasser), with a speed of 3000, the vector obtained tracking point.
4. At a distance of <= 70.0 end point to kill ENT (trasser).

Video
Attached Images
File Type: jpg trasser.jpg (49.0 KB, 268 views)
File Type: jpg trasser1.jpg (86.7 KB, 198 views)

Last edited by tonline_kms65; 12-05-2017 at 03:05.
tonline_kms65 is offline
tonline_kms65
Member
Join Date: Aug 2016
Location: Ru. Komsomol-on-Amur
Old 12-05-2017 , 03:49   Re: HHow to create the effect of "the trail of tracer bullets"?
Reply With Quote #7

Quote:
Originally Posted by Mitchell View Post
I believe there is temp ents for when the energy weapons hits the ground, and muzzle flash where you can define your own material.
HL2 would use a 'tracer' material which would have a fast speed and repeating pattern (configured in the .vmt) Using this material with a correctly configured TE_SetupBeamPoints it can look like tracers from bullets.
I tried to do a texture animation. But it's not.
tonline_kms65 is offline
andi67
Veteran Member
Join Date: Mar 2007
Location: Somewhere near you!!!
Old 12-05-2017 , 09:03   Re: HHow to create the effect of "the trail of tracer bullets"?
Reply With Quote #8

Than show your vmt.....
__________________
Waiting for HL3,Day of Defeat3 ,but will it ever come? So I'm gonna play COD WW2.>>>>SM_SKINCHOOSER<<<<
>>You need Models for DODS/CSS/CSGO , than click here!!!<<
andi67 is offline
tonline_kms65
Member
Join Date: Aug 2016
Location: Ru. Komsomol-on-Amur
Old 12-05-2017 , 09:46   Re: HHow to create the effect of "the trail of tracer bullets"?
Reply With Quote #9

Here's an example of my animated texture (shear and frame-by-frame animation).
The result was not pleasant to me, I refused that option.

Video
tonline_kms65 is offline
tonline_kms65
Member
Join Date: Aug 2016
Location: Ru. Komsomol-on-Amur
Old 12-05-2017 , 09:56   Re: HHow to create the effect of "the trail of tracer bullets"?
Reply With Quote #10

Shift texture:
Code:
"UnlitGeneric"
{
	"$basetexture" "weapons/tracers/tracer_light_midle2"
	"$translucent" 1
        "$additive" 1
	"$nocull" 1
	"$selfillum" 1
        "envmapmask" "weapons/tracers/tracer_light_midle2_ref"


"Proxies" 
	{
	 "TextureScroll"
	{
	"texturescrollvar" "$basetexturetransform"
	"texturescrollrate" 10.0
	"texturescrollangle" 180
	} 
	}
}
Animated texture:
Code:
"UnlitGeneric"
{
        "$baseTexture" "anim/trasser/trasser"
	"$additive" 1
	"$nocull" 1
	"$translucent" 1
	"$selfillum" 1
 
        "Proxies" 
        { 
                "AnimatedTexture" 
                { 
                        "animatedTextureVar" "$basetexture" 
                        "animatedTextureFrameNumVar" "$frame" 
                        "animatedTextureFrameRate" "1" 
                }
        } 
}
tonline_kms65 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:58.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode