Light model problem

  • Site Migration: See bugs? Report them here. Want something changed or have an idea? Suggest it here.

Acclipse

L1: Registered
Oct 2, 2021
17
0
upload_2021-10-9_22-33-2.png


When i added a light entity near the prop it looks weird as the bulb glass isnt bright. I found 2 skins for it and the other one is just dark.This is kinda stupid but I need help.The model I used is models/props_2fort/lightbulb001.mdl.
 

Acclipse

L1: Registered
Oct 2, 2021
17
0
upload_2021-10-12_17-32-39.png

I found out that i need to add a env_sprite entity for the glow
but i didnt find how to add the glow as i just copy pasted it from a map
 

Acclipse

L1: Registered
Oct 2, 2021
17
0
upload_2021-10-12_17-33-33.png

whenever i open it it auto types sprites/ but nothing shows up
i tried to find a sprite named glow but i didnt find it anywhere
 

Lonely Author

L2: Junior Member
Aug 27, 2021
86
37
put it just outside of the lightbulb so it's not covered by the light bulb
 

Attachments

  • 20211010130833_1.jpg
    20211010130833_1.jpg
    225.1 KB · Views: 29

MOCOLONI

L6: Sharp Member
Dec 16, 2014
373
88
upload_2021-10-12_17-32-39.png

I found out that i need to add a env_sprite entity for the glow
but i didnt find how to add the glow as i just copy pasted it from a map
Hmmm i tried it but it looks like a block of glow
Remove "materials/" from the path. Also make sure the light bulb model isn't solid or else the env_sprite will have to be placed outside of its collisions (as otherwise the sprite will not render).

upload_2021-10-12_17-33-33.png

whenever i open it it auto types sprites/ but nothing shows up
i tried to find a sprite named glow but i didnt find it anywhere
Sprites are to be extracted from the .VPK files and then viewed through the game's developer mode ("-tools" launch option).
 

Acclipse

L1: Registered
Oct 2, 2021
17
0
upload_2021-10-13_14-38-14.png

Oof it looks like this. Thanks
Remove "materials/" from the path. Also make sure the light bulb model isn't solid or else the env_sprite will have to be placed outside of its collisions (as otherwise the sprite will not render).


Sprites are to be extracted from the .VPK files and then viewed through the game's developer mode ("-tools" launch option).

Hmmm how do u extract those anyway?
 

MOCOLONI

L6: Sharp Member
Dec 16, 2014
373
88
Hmmm how do u extract those anyway?
Nevermind, actually - I was thinking of 'particles' when I said that, which doesn't necessarily apply to sprites. However, if you still want to go for it: normally one would use 'vpk.exe' to pack and unpack these archives; however, it seems that you can only pack them as of late, whereas unpacking only generates the folder structure but won't extract the actual files.

GCFScape is currently one reliable way to go. You'll want to open tf2_textures_dir.vpk for the textures, and tf2_misc_dir.vpk for the configuration files associated to said textures, which you may customize and pack into your map. You'll also need VTFLib for that (though you can use a regular notepad (preferably Notepad++) for opening .vmt files)