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

222 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.

3 Likes

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

3 Likes

It should be there once studio is open!

3 Likes

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

1 Like

Running some tests on free models…

12 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.

6 Likes

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

2 Likes

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

Should be fine!

2 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.

2 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?

2 Likes

Seems like you spelled brightness wrong. :grin:

3 Likes

You need to have parallel lua beta feature turned on

2 Likes

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

1 Like

what settings would you recommend

2 Likes


Pretty cool plugin, good results:

54 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.

3 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)

4 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.

3 Likes

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

2 Likes