Wall Vs. Light

Ask for help about creating mods and scripts for Grimrock 2 or share your tips, scripts, tools and assets with other modders here. Warning: forum contains spoilers!
Post Reply
NutJob
Posts: 426
Joined: Sun Oct 19, 2014 6:35 pm

Wall Vs. Light

Post by NutJob »

Light is winning.

So how do I stop this behavior on wall entities with a light behind it?

Image

Code: Select all

                             That  ^^^ is a secret door, btw.
                                                it has collision
                                                     is the reason
Last edited by NutJob on Sat Nov 08, 2014 10:56 pm, edited 4 times in total.
User avatar
germanny
Posts: 530
Joined: Sat Apr 07, 2012 10:52 pm
Location: Kiel, Germany

Re: Wall Vs. Light

Post by germanny »

if you place the lightsource in the field right behind that wall - no chance.
IMO it is because the wall mesh is single-sided, has no volume.
A custom wall element with backside and full closed mesh would prevent this - my guess, i haven´t tested that with LoG2 yet.
Dungeon Master Resource Pack worker and passionated Beer drinker
NutJob
Posts: 426
Joined: Sun Oct 19, 2014 6:35 pm

Re: Wall Vs. Light

Post by NutJob »

Well is it possible to make a 1px wide, black, opaque wall entity (opaque_wall) and you could just set a definition and use that when needed to block light? I don't Jack or Squat about doing that myself though.

edit: to elaborate (hopefully), set the wall entity of your choosing, then place a opaque_wall exactly at the same coordinates, facing as the textured wall?
User avatar
Aisuu
Posts: 61
Joined: Fri Oct 31, 2014 2:07 pm

Re: Wall Vs. Light

Post by Aisuu »

NutJob wrote:Well is it possible to make a 1px wide, black, opaque wall entity (opaque_wall) and you could just set a definition and use that when needed to block light? I don't Jack or Squat about doing that myself though.

edit: to elaborate (hopefully), set the wall entity of your choosing, then place a opaque_wall exactly at the same coordinates, facing as the textured wall?
I tryed that. Sadly it didnt help at all. There is alway light that come through the other side :(
But I could doing it all wrong..
SpoilerShow
Image
The dungeon wall next to black wall have black wall in middle and as you can see, there is still light.
I think it has something to do with texture?

This is corridor with black walls inside the secret walls where on other side ot the walls are torches..
SpoilerShow
Image
User avatar
Doridion
Posts: 256
Joined: Tue Jun 10, 2014 9:23 pm

Re: Wall Vs. Light

Post by Doridion »

I seen in some blockers and walls, the occluder class (don't actually refers in the scripting reference). Could it be a special class for these cases ?
Post Reply