Tremulous Forum

Media => Mapping Center => Topic started by: BillyRazOr2014 on September 14, 2014, 04:44:56 pm

Title: How to make flare for lights with shader files
Post by: BillyRazOr2014 on September 14, 2014, 04:44:56 pm
Guys, how to make flare for lights with shader files? I'm really want to make it for my mapping...

http://effextures.com/wp-content/uploads/2013/08/Effextures-Light14.jpg
Title: Re: How to make flare for lights with shader files
Post by: /dev/humancontroller on September 15, 2014, 09:20:39 pm
how to make flare for lights with shader files? I'm really want to make it for my mapping...
flares aren't created by creating specific "flare shader" files. any shader (texture) can be used for flares. flares are placed on maps by spawning misc_light_flare entities. for example, the following entity definition creates a small, redish light flare:1
Code: [Select]
{
"classname" "misc_light_flare"
"origin" "0 0 0"
"radius" "16.5"
"targetShaderName" "models/weapons/prifle/flash"
}

1 not tested
Title: Re: How to make flare for lights with shader files
Post by: Minder on August 04, 2016, 07:46:38 am
Guys, how to make flare for lights with shader files? I'm really want the instant knockout (https://www.gabeba.com/instant-knockout-review-results) to make it for my mapping...


When I type misc_light_flare nothing happens for some reason. Am I missing something?
Title: Re: How to make flare for lights with shader files
Post by: amz181 on August 05, 2016, 04:14:54 pm
Have you correctly entered all of the fields listed in humancontrollers post? (classname, radius, targetShaderName (origin should be automatically entered, as should classname)).

Just copy what he's written exactly into a misc_light_flare entity, and it should work. You'll get a red flare if you use "models/weapons/prifle/flash"

To get other flares you have to change the path to a different lens flare texture, i.e. "textures/niveus/flare_red_01" is a red flare from niveus.
Title: Re: How to make flare for lights with shader files
Post by: CharlesWagner on June 15, 2019, 10:33:18 pm
Have you correctly entered all of the fields listed in humancontrollers post? (classname, radius, targetShaderName (origin should be automatically entered, as should classname)).

Just copy what he's written exactly into a misc_light_flare entity, and it should work. You'll get a red flare if you use "models/weapons/prifle/flash"

To get other flares you have to change the path to a different lens flare texture, i.e. "textures/niveus/flare_red_01" is a red flare from niveus.

It works for me. Needed for a project and all the flares are working fine.