Page 1 of 1

Underground draw distance

Posted: Fri Oct 31, 2014 5:13 am
by Lmaoboat
I want to make a huge, open Blackreach-esque underground area, but the solid fog that simulates darkness makes it hard to look open, and using a skybox is too bright, and has other annoying side effects, any suggestions?

Edit:
Changed title because I was very sleepy and couldn't remember the phrase "draw distance" when I made this thread.

Re: Underground "fog" of darkness

Posted: Fri Oct 31, 2014 5:59 am
by sps999

Code: Select all

defineObject{
	name = "cave_light",
	baseObject = "mine_ceiling_pit_light",
	components = {
		{
			class = "Light",
			enabled = true,
			range = 1500,
			color = vec(0.01, 0.01, 0.01),
			brightness = 7,
			castShadow = false,
		},
	},
}
You can put this light in your level; just copy this code into objects.lua or wherever you put your scripts. Then put the light down and raise its height up.

The level will still have a draw distance but it is much larger than before. You can also adjust the brightness if you want (I think the range is large enough to cover the whole map as long as the object is near the middle.)

Re: Underground "fog" of darkness

Posted: Sat Nov 01, 2014 9:21 pm
by Lmaoboat
Thanks for the help, but the draw distance still seems to be a problem. Maybe once the asset pack is released, a custom sky entity could be used.