Repository navigation
When creating complex scenes for Location Based VR, optimizing the lightmaps is crucial. Usually the recomendation would be just having one lightmap of 2K, and if the scene is very big maybe 2 or 3 2k lightmaps, but never more than one 4K lightmap. So to make everything fit in one lightmap texture the artist has to adjust manually the lightmap scale of the different meshes so the objects far from the playable area get less resolution and the objects near to the user get the maximum resolution. To accelerate this procces, I created this tool, the logic is easy: You set a sphere where the game objects inside of it will have the maximum lightmap scale. Then you set another sphere where the game objects lightmap scale will be progressively adjusted from the maximum to the minimum in function of the distance. And finally the game objects outside the area will be considered as very far and will recive the minimum lightmap scale.