LampLight - Global Illumination For Roblox (New v1.2)

LAMPLIGHT ALPHA VERSION

radiosityBake3
radiosityBake3

radiosityBake1

Lamplight is a studio plugin that can let you bake actual Global Illumination bounce lighting into your scenes.

Limitations:

  • Won’t work well in Future - use Shadowmap for best results
  • Not good for very finely-scaled scenes - roblox lighting is chunky!
  • No support for spotlights, coming soon
  • No support for surfacelights, coming soon
  • Really huge regions could take a while to light

Update v1.2

  • Massive performance improvements!
  • Now runs in studio mode correctly
  • You need to place Light Region objects to specify where to light
  • You need to click “Create Probes” manually now
  • Generated Lights are now attachments+pointlights

Update v1.1

  • Terrain supported, a few bug fixes

Plugin link here

Download here:
LampLight.rbxmx (369.7 KB)
(place this model file in your plugins folder)

How does it work:
It places probes on a regular grid in the scene, where each probe is also a pointlight. It then does some trickery with a bunch of rays, sampling the scene and averaging the results.

How does it run:
Obviously baking is slow, but once it’s baked, it should actually be cheap to free, even on mobile.
Roblox is surprisingly awesome at having a whole bunch of pointlights when you’re not in Future lighting mode, and this takes full advantage of it.

Credits:
Special thanks to Elttob for inspiring me to pick this back up, and helping me solve some of the problems I was having.

Please post screenshots if you get some nice results!


Update: If you are having trouble making this run, try enabling this feature in studio - seems to fix it.

image

209 Likes

I’m having some trouble opening this. Is this the correct location?

Thanks, after restarting Studio, it worked. I did not know Roblox automatically opens it for you.

4 Likes

Awesome idea for a plugin! Modifying the nodes during runtime will create some really cool effects.

4 Likes

It should be there once studio is open!

4 Likes

.rbxmx file? Might just be me but that sounds like an unsafe file?

2 Likes

Running some tests on free models…

13 Likes

As far as I know, that’s a file that is only used by Roblox Studio, so the worst that file can do is affect your game, not your computer.

7 Likes

You say future isn’t compatible with this, but what about shadowmap with PBR (SurfaceAppearance)?

3 Likes

You say future isn’t compatible with this, but what about shadowmap with PBR (SurfaceAppearance)?

Should be fine!

3 Likes

I tried testing this on the default village template, and it does not seem to be working.

  1. Everything is a point light

  2. I’m using shadow map.

  3. I’m playtesting.

3 Likes

Can confirm it’s not working on my end either.

Does the plugin require the user to start a test simulation or can it generate in studio?

Is there any way at this time to edit initial location of the nodes?

3 Likes

Seems like you spelled brightness wrong. :grin:

4 Likes

You need to have parallel lua beta feature turned on

3 Likes

I have all beta features enabled. Is there a diffferent menu?

2 Likes

what settings would you recommend

3 Likes


Pretty cool plugin, good results:

52 Likes

I cant get the plugin to work either. Tried it on a baseplate with some parts. The bake button thing actually did run, but all the probes it produced were black and all the lights had a brightness of 0 and were the default color.

Also, is there any reason why this plugin cant work in Run mode but only Play.

4 Likes

Hey, this looks really cool!
I made a fork of this that allows you to convert the baked parts into attachments and also clear your bake without having to re-bake everything
LampLight_Forked.rbxmx (305.5 KB)

5 Likes

An rbxm/rbxmx file refers to the Roblox Model format. The x at the end determines whether the model is encoded in XML or binary.

4 Likes

Nice, I’ll add those to the main branch shortly.

3 Likes