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
We use cookies to offer you a better experience. By using Roblox.com, you are agreeing to our Privacy and Cookie Policy.
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Player-Only Lighting

Previous Thread :: Next Thread 
Candymaniac is not online. Candymaniac
Joined: 08 Oct 2009
Total Posts: 8985
07 Dec 2011 08:55 AM
Basically, client-side lighting. So lighting would be in the client, enabling it to manipulate ambients without distracting other people's lighting.

I want to make this kind of thing that, when a player gets closer to a light source, the lighting becomes brighter, but then, other players' lighting would be brighter too, since the lighting is not client-side, but server-side.

How would we make it that the Lighting can only be client-side?

~ Cows moo, ducks quack, I post. ~
Report Abuse
ArceusInator is not online. ArceusInator
Joined: 10 Oct 2009
Total Posts: 30553
07 Dec 2011 08:59 AM
Would changing the tint of a semi-transparent GUI work?
Report Abuse
Candymaniac is not online. Candymaniac
Joined: 08 Oct 2009
Total Posts: 8985
07 Dec 2011 09:00 AM
That wouldn't be realistic...
I tried that, and it worked perfectly, but it was too simple...

I wanted one that actually manipulates the color of the bricks, not just a black semi-transparent screen...

~ Cows moo, ducks quack, I post. ~
Report Abuse
ArceusInator is not online. ArceusInator
Joined: 10 Oct 2009
Total Posts: 30553
07 Dec 2011 09:11 AM
Then the GUI + local bricks?
Report Abuse
Candymaniac is not online. Candymaniac
Joined: 08 Oct 2009
Total Posts: 8985
07 Dec 2011 09:21 AM
I was thinking that, making the ambient darker if the player moves away, and making it lighter if the player moves closer. Checking for bricks and re-coloring them would be way to ineffective... and laggy too.

~ Cows moo, ducks quack, I post. ~
Report Abuse
ArceusInator is not online. ArceusInator
Joined: 10 Oct 2009
Total Posts: 30553
07 Dec 2011 09:24 AM
There's no easy way to do local lighting.
Report Abuse
Radioaktiivinen is not online. Radioaktiivinen
Joined: 25 Apr 2009
Total Posts: 18629
07 Dec 2011 09:34 AM
Also local bricks wont work because i think when changing the color of a brick using color3 it just picks the closest brickcolor...
Report Abuse
ArceusInator is not online. ArceusInator
Joined: 10 Oct 2009
Total Posts: 30553
07 Dec 2011 09:41 AM
@radio;

1] Put a white brick down
2] Make a black brick and CFrame it to the white brick's CFrame. Make it slightly larger and adjust transparency to get the tint you want.
3] Make a colored brick and CFrame it to the white brick's CFrame. Make it slightly larger than the black brick and adjust transparency to get the color you want.
4] ????
5] Profit.
Report Abuse
Candymaniac is not online. Candymaniac
Joined: 08 Oct 2009
Total Posts: 8985
07 Dec 2011 10:51 AM
Will this work?

function GetLighting()
Lighting = game.Lighting
Lighting.Parent = Instance.new("Message")
Lighting.Parent = game
return Lighting
end

local Lit = GetLighting()

-- Do Stuff with "Lit"



(I got it from mattchewy, but I'm not sure with if it's gonna work or not...)
Report Abuse
ArceusInator is not online. ArceusInator
Joined: 10 Oct 2009
Total Posts: 30553
07 Dec 2011 11:38 AM
What is that supposed to do?
Report Abuse
coplox is not online. coplox
Joined: 07 Jun 2008
Total Posts: 3252
07 Dec 2011 01:39 PM
I wonder what would happen if you post it on Forum 21.
Report Abuse
Legend26 is not online. Legend26
Joined: 08 Sep 2008
Total Posts: 10586
07 Dec 2011 03:57 PM
It used to be possible, but they locked lighting's parent.
Report Abuse
mew903 is not online. mew903
Joined: 03 Aug 2008
Total Posts: 22071
07 Dec 2011 05:09 PM
@function GetLighting()

I saw that while uberhaxering Anaminus' Virde Cova
Report Abuse
Quenty is not online. Quenty
Joined: 03 Sep 2009
Total Posts: 9316
07 Dec 2011 05:11 PM
Client side lighting has been removed. :( Me sad. Me wanted client side skyboxes. Anyway, it will come some day.

It's a love-hate relationship....
Report Abuse
Spectrumw is not online. Spectrumw
Joined: 04 Aug 2009
Total Posts: 13510
07 Dec 2011 07:08 PM
'Also local bricks wont work because i think when changing the color of a brick using color3 it just picks the closest brickcolor...'

1.- Add a part.
2.- Add a BlockMesh to it.
3.- Change the VertexColor of the BlockMesh.
4.- Profit?
Report Abuse
Quenty is not online. Quenty
Joined: 03 Sep 2009
Total Posts: 9316
07 Dec 2011 07:33 PM
Basically, dynamic lighting is too resource extensive. Find a new project or a new game, or... a new computer. With a lot of processors.

It's a love-hate relationship....
Report Abuse
PurpleKiwi is not online. PurpleKiwi
Joined: 26 Jul 2008
Total Posts: 4022
07 Dec 2011 07:36 PM
"1.- Add a part.
2.- Add a BlockMesh to it.
3.- Change the VertexColor of the BlockMesh.
4.- Profit?"

I thought you had to also make it have a pure white TextureId.
Report Abuse
Candymaniac is not online. Candymaniac
Joined: 08 Oct 2009
Total Posts: 8985
07 Dec 2011 09:06 PM
I have a 4 core processor with multi-threading and hyper-threading... Basically, i3.
xD

Too bad, dang stupid locked stuff. It makes our possibilities limited.
Report Abuse
JMan42064 is not online. JMan42064
Joined: 01 Feb 2010
Total Posts: 2978
07 Dec 2011 09:11 PM
@Candy
Yeah, like the user meshes and music being taken away. Major invention blocker there
Report Abuse
Candymaniac is not online. Candymaniac
Joined: 08 Oct 2009
Total Posts: 8985
07 Dec 2011 09:13 PM
ikr?
Report Abuse
MrgamesNwatch is not online. MrgamesNwatch
Joined: 02 Feb 2009
Total Posts: 7729
07 Dec 2011 09:14 PM
i think I'd actually be happier if sounds could be uploaded again apposed to meshes (i can live without :\)
Report Abuse
JulienDethurens is not online. JulienDethurens
Joined: 11 Jun 2009
Total Posts: 11046
07 Dec 2011 09:15 PM
"Yeah, like the user meshes and music being taken away. Major invention blocker there"

These were taken away for a reason.
Report Abuse
JMan42064 is not online. JMan42064
Joined: 01 Feb 2010
Total Posts: 2978
07 Dec 2011 09:16 PM
@Julien
Yeah, I know why they were removed, all because people were priviledge abusing and making "inappropriate" things. I know I'm a 10'er, but I know my ROBLOX :D
Report Abuse
TheSuperBloxxa is not online. TheSuperBloxxa
Joined: 02 Mar 2011
Total Posts: 4484
07 Dec 2011 09:48 PM
So wait, client side lighting? That's only possible with GUIs. I'm not an expert on GUIs, but I can try to help anyway.
Report Abuse
PurpleKiwi is not online. PurpleKiwi
Joined: 26 Jul 2008
Total Posts: 4022
07 Dec 2011 10:37 PM
^But that's not really lighting.
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