generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Grey scale?

Previous Thread :: Next Thread 
EgoMoose is not online. EgoMoose
Joined: 04 Feb 2009
Total Posts: 2896
06 Jul 2015 08:05 PM
I've been trying for the last few weeks to manipulate the lighting to get a grey scale effect. Unfortunately I haven't had much luck and I think I'm at my wits end on this one.

I know I can grey scale the parts if I really want that effect, but I'm also more or less curious if it can be done.

Any help or suggestions? Or is it just straight up impossible?
Report Abuse
mycheeze is not online. mycheeze
Joined: 27 Jun 2011
Total Posts: 6748
06 Jul 2015 08:06 PM
Try messing with the lighting service, if that doesn't work, move onto guis.

qwq
Report Abuse
AbstractMadness is not online. AbstractMadness
Joined: 22 Dec 2014
Total Posts: 20425
06 Jul 2015 08:06 PM
imposbil gtfo
Report Abuse
vacha is not online. vacha
Joined: 06 Jan 2011
Total Posts: 1993
06 Jul 2015 08:07 PM
hmm custom characters, messing with lighting objects. Should be possible, I've seen a game do it (dont remember the name though)

while true do the do
Report Abuse
EgoMoose is not online. EgoMoose
Joined: 04 Feb 2009
Total Posts: 2896
06 Jul 2015 08:07 PM
@ mycheeze

The lighting service is what I meant by lighting. Sorry for the confusion.

As for gui, what do you mean? A simple overlay wouldn't do much. Colour would seep through it like crazy!
Report Abuse
mycheeze is not online. mycheeze
Joined: 27 Jun 2011
Total Posts: 6748
06 Jul 2015 08:08 PM
I figure'd the gui would be as close as you'd get xdd
Report Abuse
EgoMoose is not online. EgoMoose
Joined: 04 Feb 2009
Total Posts: 2896
06 Jul 2015 08:31 PM
This is about as close as I can get to grey (even though this is blue and reflects red).

Anyone have any suggestive edits?

local shaders = {}
local lighting = game:GetService("Lighting")

function applyShader(shader)
lighting.Ambient = shader.ambient or lighting.Ambient
lighting.Brightness = shader.bright or lighting.Brightness
lighting.ColorShift_Top = shader.shiftT or lighting.ColorShift_Top
lighting.ColorShift_Bottom = shader.shiftB or lighting.ColorShift_Bottom
lighting.GlobalShadows = shader.gShadows or false
lighting.OutdoorAmbient = shader.oAmbient or lighting.OutdoorAmbient
lighting.ShadowColor = shader.shadow or lighting.ShadowColor
lighting.TimeOfDay = shader.tom or lighting.TimeOfDay
lighting.FogColor = shader.fog or lighting.FogColor
lighting.FogEnd = shader.fogF or lighting.FogEnd
lighting.FogStart = shader.fogB or lighting.FogStart
end

shaders.grey = {
ambient = Color3.new();
shiftT = Color3.new(1, 1, 1);
shiftB = Color3.new(1, 1, 1);
gShadows = true;
oAmbient = Color3.new();
fog = Color3.new(1e+7, 1e+6, 1e+6);
fogF = 1e+14;
fogB = 0;
}

applyShader(shaders.grey)
Report Abuse
mycheeze is not online. mycheeze
Joined: 27 Jun 2011
Total Posts: 6748
06 Jul 2015 08:33 PM
mayB becuz of the Blank e+ Blank
Report Abuse
vacha is not online. vacha
Joined: 06 Jan 2011
Total Posts: 1993
06 Jul 2015 08:34 PM
Wait do values even take e+?? Don't you have to go math.huge()

while true do the do
Report Abuse
EgoMoose is not online. EgoMoose
Joined: 04 Feb 2009
Total Posts: 2896
06 Jul 2015 08:35 PM
@ mycheeze

Sorry what? Is there something wrong with it? I don't understand...
Report Abuse
mycheeze is not online. mycheeze
Joined: 27 Jun 2011
Total Posts: 6748
06 Jul 2015 08:35 PM
@vacha, math.huge = infinity
>e+ = slapping on some characters, it has limit
Report Abuse
vacha is not online. vacha
Joined: 06 Jan 2011
Total Posts: 1993
06 Jul 2015 08:37 PM
@chez
Yeah but do roblox values take 1e7, ...

while true do the do
Report Abuse
mycheeze is not online. mycheeze
Joined: 27 Jun 2011
Total Posts: 6748
06 Jul 2015 08:42 PM
they do
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image