Disable/Neutral Lighting

A propose a option in Studio that easily lets you disable all lighting-related graphical features. Lights are disabled, shadows are disabled, and lighting is switched to a neutral type of style.

This is intended to make building easier at times that you aren’t concerned with lighting to make things easier to see and work with.

6 Likes

Turn of GlobalShadows and set Ambient to 127,127,127 and it will do just that. Use a plugin to toggle it on/off or something.

3 Likes

Interesting suggestion, but what about Point/Spot/Surface lights? if you have potentially tons of them in your game, disabling them 1 by 1 would be a hassle. I think all of this would be easier if a feature was made to disable/enable all of this on a renderer level. Something along the ones of “ShowDevelopmentGui” feature.

It’s not difficult to recurse through them and turn them off.

local previouslyEnabledLights = {}

function recurse(root,callback)
    for i,v in pairs(root:GetChildren()) do
        callback(i,v)
  
        if #v:GetChildren() > 0 then
            recurse(v,callback)
        end
    end
end

recurse(workspace, function(i,v)
    if v:IsA("Light") then
        if v.Enabled then
            previouslyEnabledLights[v] = true
        end
        v.Enabled = false
    end
end)

whenIDecideToTurnThemBackOn:

for light in next,previouslyEnabledLights do
    previouslyEnabledLights[light] = nil
    light.Enabled = true
end
2 Likes

[quote] It’s not difficult to recurse through them and turn them off.

[code]
local previouslyEnabledLights = {}

function recurse(root,callback)
for i,v in pairs(root:GetChildren()) do
callback(i,v)

    if #v:GetChildren() > 0 then
        recurse(v,callback)
    end
end

end

recurse(workspace, function(i,v)
if v:IsA(“Light”) then
if v.Enabled then
previouslyEnabledLights[v] = true
end
v.Enabled = false
end
end)

whenIDecideToTurnThemBackOn:

for light in next,previouslyEnabledLights do
previouslyEnabledLights[light] = nil
light.Enabled = true
end
[/code] [/quote]

It’s not difficult to recurse through GUIs and turn them all off yet we have a feature for it.

I’ve worked with other programs that use this feature and it proves quite useful. I believe it would make a great addition for studio as a simple checkbox option.

1 Like