• Stars
    star
    178
  • Rank 214,046 (Top 5 %)
  • Language
    C++
  • License
    MIT License
  • Created over 5 years ago
  • Updated over 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

UE4 & Unity plugin to Automatically adjust lightmap scale for meshes in your scene

Auto-Lightmap-Adjuster

UE4 & Unity plugin to automatically adjust lightmap scale for meshes in your scene

header

In both Unity and Unreal, adjusting the lightmap scale of various meshes in your scene is a necessary yet always tedious process. With lightmap stitching and denoising algorithms like Optix coming in, lightmap resolutions required for good-looking lightmaps are a lot lower than they used to be, and as fast at the lightbakes are in a well-optmized game engine scene adjusting arcane numbers or resolutions to reduce noise isn't really the most productive use of one's time.

With this engine-agnostic plugin, correct lightmap resolution for your meshes is now one click away, with the package offering various resolutions depending on the engine use case.

Usage - Unity

unitysettings

The package installed, simply navigate to the new Tools/Adjust Lightmap Scale menu items and select your resolution:

  • Mobile is good for preview renders or mobile games (duh).
  • Desktop and Consoles is what's going to work best for probably most game or cutscene usecases, it's a good tradeoff between resolution and memory.
  • Film & TV rendering is for real-time render stuff or cutscenes - unless you're running an RTX rig you're going to have a bad time having this in a game.

unityresults

Usage - Unreal

unrealsettings

The plugin installed, simply navigate to the new Windows/Lightmap Scale menu bar items and select your resolution:

  • Performance is good for preview renders or mobile games (duh).
  • Balanced is what's going to work best for probably most game or cutscene usecases, it's a good tradeoff between resolution and memory.
  • Quality is for real-time render stuff or cutscenes - unless you're running an RTX rig you're going to have a bad time having this in a game.

unrealresults

Install process

The repository is split for the two engines: the Plugin folder's for Unreal and the Packages folder for Unity.

Unity 2019.2

packman

This is a plugin that makes use of Unity's Package Manager feature. Just drop the com.alexismorin.autolightmapadjuster folder into your packages folder (found at the same level as the Assets folder) and it should work out-of-the-box. If you're using a pre-packman version of Unity (maybe supported, can be made to work if you're courageous), take the stuff inside the com.alexismorin.autolightmapadjuster folder and then drag it anywhere into your regular project hierarchy.

Unreal 4.22

plugins

Just drag the AutoLightmapAdjuster folder into your project's Plugins folder (create it at the same level as your content folder if you don't have one already) and open your project - things should work out by themselves.

Per usual, this was whipped up in a couple of hours on my couch - bugs beware, tweak or fork as you wish.

Bugs

  • Unreal will sometimes not refresh the new lightmap sizes; just select all the static meshes in the scene and toggle on and off the override setting - that'll fix it.

More Repositories

1

floorplan

A Sims-Like Unity Level Design Plugin
C#
251
star
2

Greebler

UE4 and Unity plugin to automatically add rubble in the nooks and crannies of your scene
165
star
3

Light-Probe-Populator

Automatic Unity Light Probe Generation.
C#
152
star
4

Photosynthesizer

Unity plugin to procedurally sprout foliage throughout your scene.
ShaderLab
116
star
5

Editor-Physics-Simulation

Simulate Physics in the Unity Scene view
C#
70
star
6

A-Better-Actor

An Easily Directable AI Actor for Unreal & Unity Sequences
C#
54
star
7

OpenMocap

Roomscale VR Humanoid Motion Capture
C#
48
star
8

OpenFace-FACS-Unity-Facial-Animator

A Unity facial animation tool using the Facial Action Coding System
Python
43
star
9

Falloff-Customizer

Interactively adjust light falloff for Unity deferred rendering
HLSL
35
star
10

Simple-Unity-Sky

Simple Unity Sky Skybox with Clouds
35
star
11

Virtual-Filmback

An in-editor, Unity VR directing tool
C#
33
star
12

Salon

A Game-Ready Hair Authoring Tool
HLSL
33
star
13

Unity-VR-Hand-Tracking-Template

Unity Oculus Quest VR Hand Tracking Template
ShaderLab
33
star
14

Cityscaper

Unity Skybox Detail Geometry Tool
C#
31
star
15

Built-In-ISF

Inverse Square Falloff for Unity Default Lighting
HLSL
30
star
16

Screenwriter

Experimental Unity plugin to parse screenplays into sequences
C#
28
star
17

Spraypainter

Oculus Quest Graffiti
C#
18
star
18

Hydrogen-Bomb-Test-Dummy

Lighthearted Physics-Based Survival
C#
16
star
19

Pack-Vertex-Color-Data

One-click Maya solution to add useful vertex color data to your meshes
Python
16
star
20

maya-game-engine-autosetup

Maya one-command unit, axis and grid setup for Unreal & Unity
Python
15
star
21

Brickify

Maya script that turns geometry to bricks
Python
12
star
22

I-Just-Want-to-Play-Minigolf

Open Source Procedural VR Minigolf
C#
10
star
23

Experimental-Tool-Mondays-Facial-Motion-Capture

Facial Motion Capture Article and Sample Project
ShaderLab
10
star
24

Pavlov-Maps

Pavlov VR Custom Maps
9
star
25

Geosphere

A VR Love Letter to Event Horizon, Hellraiser and Zdzisław Beksiński
C#
8
star
26

EmguCV-Facial-Landmarks-for-Unity

EmguCV / OpenCV Face Tracking Sample
C#
8
star
27

Shoegazer

VR Guitar Jam Session
ShaderLab
7
star
28

MergeVolume

UE4.21 tool to automatically merge large meshes and instance smaller ones
4
star
29

Find-Me

A Procedural Where's Wally
Mathematica
4
star
30

Animation-Bindings

Customizeable system to puppeteer animation inside of Unity
ShaderLab
3
star
31

Photo-Op

Android Virtual Camera Game
ShaderLab
3
star
32

greenfields

procedural low-res countryside sandbox
C#
2
star
33

Hallowed

UE 4.22 testbed project
2
star
34

Unity-Template

My personal non-VR Unity template
1
star
35

wear-down

maya python script to wear down shapes into old concrete
Python
1
star
36

Dragstar

ShaderLab
1
star