Light emmiting textures

Light emmiting textures

Postby Fracture » Fri Jan 19, 2018 2:56 am

okay so i looked into trying to make a texture create radiant glowing light. More specifically i am trying to create a radioactive rod

Image

thus far i tried failed several methods:

-using existing light materials, which are not mobile and thus do mot travel with the brush or model
-using sprites which only look good at a certain angle
-making new textures with selfillum which has inconsistent results; dev_interiorlight02b versus indicator_unchecked
Just when I think I understand the system, it changes on me.
User avatar
Fracture
Logical Paradox
 
Posts: 809
Joined: Feb 10, 2012

Registered users don't see ads! Register now!
 

Re: Light emmiting textures

Postby ChickenMobile » Thu Apr 19, 2018 12:04 am

Necro:

Only way to render a light after compilation is to use a dynamic light source https://developer.valvesoftware.com/wiki/Lighting#Dynamic_light_sources.
Please note that some dynamic lighting entities can only have one active at one time.

Edit: If the item doesn't need a large light effect, it might be better to use a sprite to mock a glow instead.
                             TWP Releases | My Workshop
User avatar
ChickenMobile
Senior Stalemate Associate
 
Posts: 2,470
Joined: May 9, 2011
Location: Canberra, Australia

Re: Light emmiting textures

Postby Kwinten06 » Thu Apr 19, 2018 4:20 pm

Did you try to use a custom rad. file ? That could work
User avatar
Kwinten06
Defective Turret
 
Posts: 40
Joined: Sep 9, 2015
Location: France

Re: Light emmiting textures

Postby Fracture » Tue Dec 11, 2018 1:16 am

hi, i just crawled out of the briney deep of hell and now i know even less about whatever the hell your talking about.

please explain it to me like i just crawled out of the womb ten seconds ago, because i am nowhere closer to making a texture light up an entire room like a lamp
Just when I think I understand the system, it changes on me.
User avatar
Fracture
Logical Paradox
 
Posts: 809
Joined: Feb 10, 2012

Re: Light emmiting textures

Postby ChickenMobile » Tue Dec 11, 2018 3:06 am

Here's some explaination for glowing textures:

Brushes can be applied with light-emitting textures but they can only alter the lightmaps (explained here) and therefore categorised as 'static' lighting. You can alter the some states of these lights, like turning them on and off, but ultimately cannot be moved.

If you wanted to create a moveable object that emits light, you will need to use a dynamic light.

Your best bet to make a glowing fuel-rod, would be to create a $selfillum or unlitgeneric texture for your model. Pair this with a parented light_dynamic and glowing sprite (env_sprite or env_sprite_clientside) and you should be right.

Please note that dynamic lights are expensive to render and in some cases can only render one dynamic light at a time (e.g. env_projected_texture).
                             TWP Releases | My Workshop
User avatar
ChickenMobile
Senior Stalemate Associate
 
Posts: 2,470
Joined: May 9, 2011
Location: Canberra, Australia

Re: Light emmiting textures

Postby Fracture » Tue Dec 11, 2018 5:47 am

I dont wanna use entities, i am trying to cut down on them to save space for everything else in the map.

I already mentioned there are textures ingame that emit light such as dev_interiorlight02b which do not use entities.

But all $selfillum and unlitgeneric do is make the texture itself bright, not the rest of the world

WHAT THE FUCK AM I MISSING?

I need instructions on how to make it do, not an enclyclopedia explaining why it do
Just when I think I understand the system, it changes on me.
User avatar
Fracture
Logical Paradox
 
Posts: 809
Joined: Feb 10, 2012

Re: Light emmiting textures

Postby ChickenMobile » Tue Dec 11, 2018 5:53 am

Is the object static (like a wall) or moveable (like a cube)?
Physics objects unfortunately cannot self-emit light and the VMT properties are there just to mock a glow.

EDIT: If you are using a model, might be a great idea to fiddle with the $phong attributes. They can produce some cool glow-like effects on your textures.

Relevant video: https://www.youtube.com/watch?v=ItsklE7VRPk
                             TWP Releases | My Workshop
User avatar
ChickenMobile
Senior Stalemate Associate
 
Posts: 2,470
Joined: May 9, 2011
Location: Canberra, Australia

Re: Light emmiting textures

Postby Fracture » Tue Dec 11, 2018 2:41 pm

i am getting the sense you are not even trying to help me here
Last edited by Fracture on Tue Dec 11, 2018 3:34 pm, edited 1 time in total.
Just when I think I understand the system, it changes on me.
User avatar
Fracture
Logical Paradox
 
Posts: 809
Joined: Feb 10, 2012

Re: Light emmiting textures

Postby Fracture » Tue Dec 11, 2018 3:18 pm

Image
Image
Image
Image
Image
Last edited by Fracture on Tue Dec 11, 2018 4:53 pm, edited 2 times in total.
Just when I think I understand the system, it changes on me.
User avatar
Fracture
Logical Paradox
 
Posts: 809
Joined: Feb 10, 2012

Re: Light emmiting textures

Postby Fracture » Tue Dec 11, 2018 3:34 pm

JUST TELL ME HOW TO MAKE MY CUSTOM TEXTURE DO WHAT THIS TEXTURE IS DOING
Image
Just when I think I understand the system, it changes on me.
User avatar
Fracture
Logical Paradox
 
Posts: 809
Joined: Feb 10, 2012

Re: Light emmiting textures

Postby ChickenMobile » Tue Dec 11, 2018 6:02 pm

Kwinten06 wrote:
Did you try to use a custom rad. file ? That could work

VDC wrote:
.rad file, mainly used for glowing textures on brushes. rad files are the only form of glowing textures that generate any light. The file is processed line per line; on each line is simply the name of the texture, the RGB value of the light, and then the brightness of the light.

^ Essentially this means it is a text file with the name of your texture. e.g. fractures_textures/light 255 0 0 200

Get GFCScape and open the pak_dir file, looking for materials/lights/white011.vmt. Glowing textures are a mix of making the texture bright so it appears like it's glowing and the parameter in your lights.rad file that actually makes the texture glow. The lights.rad file will need to added into parameters in your vrad compile otherwise they wont emit light.

See this video for a full tutorial by TopHattWaffle:
https://www.youtube.com/watch?v=x_koza7Ut_I

I'm not sure why you thought I wasn't trying to help. Here I am still thinking you want to make a glowing rod.
                             TWP Releases | My Workshop
User avatar
ChickenMobile
Senior Stalemate Associate
 
Posts: 2,470
Joined: May 9, 2011
Location: Canberra, Australia

Re: Light emmiting textures

Postby Fracture » Wed Dec 12, 2018 2:42 am

you literally sent me a video of SFM with my little pony, what even the fuck was that?

also this .rad thing sounds exactley like the kind of file I cannot pakrat, doesnt it. Why the hell cant I just make my own .rad? also how do I make a .rad?
Just when I think I understand the system, it changes on me.
User avatar
Fracture
Logical Paradox
 
Posts: 809
Joined: Feb 10, 2012

Re: Light emmiting textures

Postby ChickenMobile » Wed Dec 12, 2018 4:26 am

SFM also uses the Source engine, the pony video was essentially a demo of what parameters in the vmt can mock 'glow' in models.

Follow the tutorial by TopHatt I linked above, it literally shows you step by step how to make a rad file and compile your map with it.
                             TWP Releases | My Workshop
User avatar
ChickenMobile
Senior Stalemate Associate
 
Posts: 2,470
Joined: May 9, 2011
Location: Canberra, Australia

Re: Light emmiting textures

Postby portal2tenacious » Fri Dec 14, 2018 12:49 am

I missed this guy so much. God bless you chickenmobile you're a saint.
Big Mood
User avatar
portal2tenacious
Your Old Friend, Deadly Neurotoxin
 
Posts: 391
Joined: May 7, 2012

Re: Light emmiting textures

Postby ChickenMobile » Fri Dec 14, 2018 8:34 am

portal2tenacious wrote:
I missed this guy so much. God bless you chickenmobile you're a saint.
:potd:
Fracture needs a bowl full of snickers for shure. Too bad they're full of NUTS.
                             TWP Releases | My Workshop
User avatar
ChickenMobile
Senior Stalemate Associate
 
Posts: 2,470
Joined: May 9, 2011
Location: Canberra, Australia

Registered users don't see ads! Register now!
 

Return to Hammer and Modding



Who is online

Users browsing this forum: No registered users and 4 guests

Search the Forums

User Menu

Register
Login

Login