[SOLVED] Lighting Glitch: Textures Appear Blackened

[SOLVED] Lighting Glitch: Textures Appear Blackened

Postby Orinji Neko » Sun Mar 24, 2019 8:36 am

Hello everyone!
I have encountered another issue, and this time I am very confused... :/


After texturing my map, and adding props, suddenly, many textures became black/partially black.
Here are some screenshots from in-game:

[Note: Cubemaps have been put in]
Hammer View: https://ibb.co/Ms3jSVL
Inner View: https://ibb.co/ZVfqttm
Window 2: (Blackened floor) https://ibb.co/8Nm6D4s
Corridor 2: (Normal): https://ibb.co/tD9f79g
Player Spawn Corridor: (Black) https://ibb.co/cJ13k12
Player Spawn View: (Black) https://ibb.co/D8T52kZ
Corridor 1: (Blackened) https://ibb.co/NZQG5s8
Corridor 1 Curve: (Blackened) https://ibb.co/StR4MyP
Corridor 1 End: (Blackened) https://ibb.co/GkhYRRr


Here's the compile log [Full compile]:
https://pastebin.com/yUgk0urz

Also, the lighting is very temporary (as in colour and brightness) xD I know it looks bad right now :/ And I'm no expert too xD
Thanks!
Last edited by Orinji Neko on Wed Mar 27, 2019 2:06 pm, edited 1 time in total.
User avatar
Orinji Neko
I was told I would get $60 if I posted on the forum
 
Posts: 8
Joined: Feb 14, 2019

Registered users don't see ads! Register now!
 

Re: Lighting Glitch: Textures Appear Blackened

Postby ChickenMobile » Sun Mar 24, 2019 11:06 pm

You are getting 'too many light styles on face at' errors. This means you are using too many named lights or lights with appearance effects (see https://developer.valvesoftware.com/wik ... ppearances).
Brush faces can only support up to 4 different light styles before it will produce this error and ignore any extra lights. So it is likely this is the reason why some parts seem black.

You can easily find named lights by going to Map -> Entity Report and filter 'by Class' to 'light'.

I highly suggest you look at the example maps Valve provides in the Portal 2/sdk_content/maps folder to see how they create their lighting effects. Your map currently seems very dark - and one-coloured. This tutorial by Topphattwaffle is great for beginners.

As an extra note: sometimes textures can seem dark around physics props because it is lacking a full 'final' compile. A final compile specifically has the staticproplighting vrad parameter set. When final compiling: go to the advanced button and choose 'final (slow)' from the dropdown.
                             TWP Releases | My Workshop
User avatar
ChickenMobile
Senior Stalemate Associate
 
Posts: 2,454
Joined: May 9, 2011
Location: Canberra, Australia

Re: Lighting Glitch: Textures Appear Blackened

Postby Orinji Neko » Mon Mar 25, 2019 4:49 am

Thanks! I thought that had something to do with it, but I didn't know what that error message really meant.
I always use the full compile (which probably isn't wise xD) to get the best results.
I'll try that later today, and I'll post my answer.

I think what happened is that I have a light sequence action (light_1,light_2 etc) because before I put that effect, there we no lighting glitches.

I just really wanna do something like that where the lights progressively turn on (similar to where GLaDOS turns them off during the escape sequence).

But thanks!! I really hope this works XDD

PS: if you do have any comments on how I could do this light sequence, it's really help! Or maybe it's in one of those example maps you talked about..?
User avatar
Orinji Neko
I was told I would get $60 if I posted on the forum
 
Posts: 8
Joined: Feb 14, 2019

Re: Lighting Glitch: Textures Appear Blackened

Postby ChickenMobile » Mon Mar 25, 2019 6:53 am

The part where GLaDOS turns off the light is at the start of sp_a2_bts3. Looks like it's a mix between turning off some beam_spotlight (dynamic lights) and point_spotlight (normal lighting).
I'm not getting any light-style errors when compiling so it's just likely they were smart about their placements so there wasn't any overlap.

Wheatley also turns off the lights at the beginning of sp_a2_bts1 when you first escape. This one is interesting because Valve has two rooms that look exactly the same and just teleport the player to the second room when the lights turn off.

Use a tool like bspsource or VMEX to decompile maps.
                             TWP Releases | My Workshop
User avatar
ChickenMobile
Senior Stalemate Associate
 
Posts: 2,454
Joined: May 9, 2011
Location: Canberra, Australia

Re: Lighting Glitch: Textures Appear Blackened

Postby Orinji Neko » Mon Mar 25, 2019 1:15 pm

Yeah I have VMEX, just never really used it because I have an old version xD
Thank you for your help though! I'll try putting way less light entities but have them more spread out, so sort sadly removing the more realistic feel (as in light entity per light model)

Also I'll change the lighting and add some lighting effects! I'll post some screenshots if that interests you.
And I'll confirm everything works!

Thank you again so much!!
User avatar
Orinji Neko
I was told I would get $60 if I posted on the forum
 
Posts: 8
Joined: Feb 14, 2019

Re: Lighting Glitch: Textures Appear Blackened

Postby ChickenMobile » Mon Mar 25, 2019 5:40 pm

Glad I could be of help. And yes, please do send screenshots! You have no idea how helpful that can be to people who have the same problem. :thumbup:

Perhaps you don't have to remove the single light source from each model, just change the light name to be the same as another so they share the same light-style (and turn off at the same time).
                             TWP Releases | My Workshop
User avatar
ChickenMobile
Senior Stalemate Associate
 
Posts: 2,454
Joined: May 9, 2011
Location: Canberra, Australia

Re: Lighting Glitch: Textures Appear Blackened

Postby Orinji Neko » Tue Mar 26, 2019 12:34 pm

Myeah. So I guess I can't make then light up one at a time then? I tried spacing them out but it looks awful xD
User avatar
Orinji Neko
I was told I would get $60 if I posted on the forum
 
Posts: 8
Joined: Feb 14, 2019

Re: [SOLVED] Lighting Glitch: Textures Appear Blackened

Postby Orinji Neko » Wed Mar 27, 2019 2:19 pm

Aha! Everything works!

I kept the light sequence, but i made 3 areas;
-The first corridor
-The office
-the second corridor

so they light up consecutively.

Here are some pictures:

https://ibb.co/L5F5Xys
https://ibb.co/4VBnnPw
https://ibb.co/Sm3nYGD
https://ibb.co/YXk2Txm

Thanks!!!

[Solution] Lights with different names were in close proximity to each other; this was removed.
User avatar
Orinji Neko
I was told I would get $60 if I posted on the forum
 
Posts: 8
Joined: Feb 14, 2019

Re: [SOLVED] Lighting Glitch: Textures Appear Blackened

Postby ChickenMobile » Thu Mar 28, 2019 1:08 am

:thumbup: :thumbup: :thumbup:
Keep at it friend.
                             TWP Releases | My Workshop
User avatar
ChickenMobile
Senior Stalemate Associate
 
Posts: 2,454
Joined: May 9, 2011
Location: Canberra, Australia

Re: [SOLVED] Lighting Glitch: Textures Appear Blackened

Postby DaMaGepy » Thu Mar 28, 2019 8:40 am

You can tweak a light's 50 an 0 percent fallof distance to make sure that their range is smaller than normally to prevent reaching that 4 named lightsource per face limit, thats what I usually use, even sometimes on non-named lights to finetune the light's distance, for example having bright lights not to go too far. In hammer you can turn on to see the this 2 sphere. Lights can bounce additionally so thats just a guide. Check light viki about Hard falloff property
https://developer.valvesoftware.com/wiki/Light
-= Check out my maps: workshop, and their .vmf sources: homepage =-
User avatar
DaMaGepy
Community Contributor
 
Posts: 382
Joined: Oct 26, 2007
Location: Hungary

Re: [SOLVED] Lighting Glitch: Textures Appear Blackened

Postby Orinji Neko » Sat Mar 30, 2019 9:55 am

ChickenMobile wrote:
:thumbup: :thumbup: :thumbup:
Keep at it friend.

Thanks for the AMAZING help!!!
User avatar
Orinji Neko
I was told I would get $60 if I posted on the forum
 
Posts: 8
Joined: Feb 14, 2019

Re: [SOLVED] Lighting Glitch: Textures Appear Blackened

Postby Orinji Neko » Sat Mar 30, 2019 9:56 am

DaMaGepy wrote:
You can tweak a light's 50 an 0 percent fallof distance to make sure that their range is smaller than normally to prevent reaching that 4 named lightsource per face limit, thats what I usually use, even sometimes on non-named lights to finetune the light's distance, for example having bright lights not to go too far. In hammer you can turn on to see the this 2 sphere. Lights can bounce additionally so thats just a guide. Check light viki about Hard falloff property
https://developer.valvesoftware.com/wiki/Light

Thanks! I'll try that when I'll do another similar light sequence (I found the "lights-per-region" thing quite good in this map), but thanks!!!
User avatar
Orinji Neko
I was told I would get $60 if I posted on the forum
 
Posts: 8
Joined: Feb 14, 2019

Registered users don't see ads! Register now!
 

Return to Hammer and Modding



Who is online

Users browsing this forum: No registered users and 0 guests