EditableImage Baked Lighting: (Raytraced Global Illumination + Soft Shadows)

could you upload it to roblox marketplace?

its like a mini blender within studio. I wish this would work when the player is playing :sob: Great job though!

1 Like

Thank you! It uses a lot of similar rendering methods that blender uses. It will eventually be useable in-game after EditableImage is released!

1 Like

yeah im just waiting for that lol

Some of the edges have seams on them, and some of the faces have really weird lighting?


2 Likes

I updated the code after I released the demo video so there may be some inaccuracies. Try editing the sizes of the patches to fix pixel positioning (you can find more info about this under Lighting Features). Weird cutoffs in lighting are caused by editable images not being able to blend between one another. I’ll make sure to work on improving the positioning with thin/small parts in the near future. Sorry about this issue!

1 Like

Studio is being weird. I have editable images and meshes beta enabled since the release and I’m getting the same error
imagem_2024-10-26_101507768
Error:

Analysing the code I found out why it was not woking. Roblox changed how EditableImages are built, and it’s much more complicated now.

See their post below for more information

Thank you for letting me know about this! I’ll work on an updated version with these changes.

2 Likes

I fixed it up for the new editable image update.
radiosity_engine_9-13-24_01.rbxl (859.5 KB)

4 Likes

Do you think this can ever be done in real-time? Also, it would be cool to add PBR textures and reflections.

Thank you so much! Can I upload this to the GitHub repo? Let me know if I can credit your user!

Yes, you can upload it to thr GitHub repository. You can give credit if you want to, but it was pretty straightforward so I don’t mind.

1 Like

The updated place file is now on the GIthub repository!

How are the “baked maps” stored? Could you for example use these in a procedurally generated map, placing the baked sections in in certain areas.

If you wanted to, yes! You can choose which parts/models and surfaces you want to bake. The light maps are stored in surface guis inside each part, along with image labels, where each label has an editable image to represent the Lightmap.

Oh so was this broken by the disabling of plug-ins creating editable images? Or are all of these calculations done at runtime

The baking process is designed to be executed in-studio then saved or it can also be done server-sided when a server is loading, (though I still need to work on a better process for saving lightmaps).

It was broken previously because Roblox rolled out EditableImage with some core changes. Before it was unusable in-game because EditableImage could only be enabled in Studio Beta Settings.

3 Likes

Since this is meant to bake lighting, and not be used during runtime, I think this would be better as a plugin.

8 Likes

hi, do we have a wally for this?

1 Like