Sky outside / normal lighting inside?

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!
User avatar
petri
Posts: 1917
Joined: Thu Mar 01, 2012 4:58 pm
Location: Finland

Re: Sky outside / normal lighting inside?

Post by petri »

Oh, I think you meant modifying the wall to poke a hole in it...
minmay
Posts: 2790
Joined: Mon Sep 23, 2013 2:24 am

Re: Sky outside / normal lighting inside?

Post by minmay »

gambit37 wrote:Thanks for the input minmay, very helpful. I've realised however that I've not described my intentions clearly enough. There isn't actually an outside area on the map. The whole map is an interior dungeon. What I wanted to do was create windows that open onto say a single empty cell, and then apply a skybox effect to that cell, so that it would seem to be a complete sky that the player is looking at through a window.
If you don't mind the performance loss, SkyComponent with the lights disabled should work fine for that, surely?
Grimrock 1 dungeon
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.
User avatar
gambit37
Posts: 218
Joined: Fri Mar 02, 2012 3:40 pm

Re: Sky outside / normal lighting inside?

Post by gambit37 »

petri wrote:Oh, I think you meant modifying the wall to poke a hole in it...
Yep. The unused window model in the asset pack does have a hole in it, but the mesh needs redesigning at the back so that some sort of fake sky texture could be applied to it. I'm curious why this wasn't used in the main campaign?
User avatar
gambit37
Posts: 218
Joined: Fri Mar 02, 2012 3:40 pm

Re: Sky outside / normal lighting inside?

Post by gambit37 »

OK, I got this mostly working, using minmay's idea: turn off all the components of a sky, except the sky.
I then painted an area outside the edge of the map with a forest tile, which applies the skybox.
Castle wall decorations open up onto the forest area, and act as windows.
I also placed the mountain decoration outside and lit it with an orange light.
Finally, an orange spot light shines in through the window to make a nice shadow of the window shape on the floor.

I would need to write a script to change the light colours depending on time of day, but that should be straightforward.

Here's a shot of it in progress:
Image
User avatar
Isaac
Posts: 3192
Joined: Fri Mar 02, 2012 10:02 pm

Re: Sky outside / normal lighting inside?

Post by Isaac »

It's very nice. 8-)
MrChoke
Posts: 324
Joined: Sat Oct 25, 2014 7:20 pm

Re: Sky outside / normal lighting inside?

Post by MrChoke »

What does "nightSky" do though? On or off and I don't see any difference. Yes I am looking at night.
Azel
Posts: 808
Joined: Thu Nov 06, 2014 10:40 pm

Re: Sky outside / normal lighting inside?

Post by Azel »

gambit37 wrote:OK, I got this mostly working, using minmay's idea: turn off all the components of a sky, except the sky.
I then painted an area outside the edge of the map with a forest tile, which applies the skybox.
Castle wall decorations open up onto the forest area, and act as windows.
I also placed the mountain decoration outside and lit it with an orange light.
Finally, an orange spot light shines in through the window to make a nice shadow of the window shape on the floor.
Well done! But that is a lot of work for a window. I hope you put a super epic boss battle in that room or something :o
User avatar
gambit37
Posts: 218
Joined: Fri Mar 02, 2012 3:40 pm

Re: Sky outside / normal lighting inside?

Post by gambit37 »

Sure, experimenting to make things like this work does take time, but that's half the fun of modding :)

Anyway, the reason I do this is to create interesting atmosphere. Little details like this elevate the mood and sense of place, and they subconsciously affect the player and how immersed they are in the world. That's always been a goal of mine in the creative things I develop.
User avatar
FeMaiden
Posts: 290
Joined: Wed Jan 16, 2013 8:16 am

Re: Sky outside / normal lighting inside?

Post by FeMaiden »

Azel wrote:
gambit37 wrote:OK, I got this mostly working, using minmay's idea: turn off all the components of a sky, except the sky.
I then painted an area outside the edge of the map with a forest tile, which applies the skybox.
Castle wall decorations open up onto the forest area, and act as windows.
I also placed the mountain decoration outside and lit it with an orange light.
Finally, an orange spot light shines in through the window to make a nice shadow of the window shape on the floor.
Well done! But that is a lot of work for a window. I hope you put a super epic boss battle in that room or something :o

lol, I spent hours yesterday making custom assets to script what amounts to a "joke boss" battle
Post Reply