News:

Come Chat with us live! Learn how HERE!

Main Menu

How to make flare for lights with shader files

Started by BillyRazOr2014, September 14, 2014, 04:44:56 PM

BillyRazOr2014

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

/dev/humancontroller

Quote from: BillyRazOr2014 on September 14, 2014, 04:44:56 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

{
"classname" "misc_light_flare"
"origin" "0 0 0"
"radius" "16.5"
"targetShaderName" "models/weapons/prifle/flash"
}


1 not tested

Minder

#2
Quote from: BillyReazOr2014 on September 14, 2014, 04:44:56 PM
Guys, how to make flare for lights with shader files? I'm really want the instant knockout to make it for my mapping...


When I type misc_light_flare nothing happens for some reason. Am I missing something?

amz181

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.

CharlesWagner

Quote from: 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.

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