Code Monkey home page Code Monkey logo

simple-light-probe-placer's Introduction

This repository has been deprecated.

Simple Light Probe Placer

About

Simple Light Probe Placer

Simple Light Probe Placer it is simple tool for Unity3d and it help you easily place Light Probes in your scene. It's provides two new components: Light Probe Volume and Light Probe Group Control, on which you can read below.

Link to AssetStore

Version Description
1.0.12 Update to Unity 5.6.2 (This is a last update).
1.0.11 Small fix on MergeClosestPositions, for preventing error.
1.0.10 Some fixes.
1.0.9.1

Light Probe Volume

Light Probe Volume it’s important part of Simple Light Probe Placer and can help you easily place your probes all over the scene. Provides simple volume (or bounding box) with density settings, which you can use for determine where probes should be.

Create

You can create new instance, just using create menu on top of Hierarchy tab or add new Light Probe Volume component to your GameObject using Add Component menu.

Create Light Probe Volume
Path: Create > Light > Light Probe Volume
Add Light Probe Volume component
Path: Add Component > Rendering > Light Probe Volume

After when you add in scene new Light Probe Volume, you should see this (without 3d gimzo). Yellow squares it is handles for changing size of volume and small white squares represents places in scene, where it will create Light Probe.

Note: If you want hide 3d gizmos see here.

Light Probe Volume in scene
Light Probe Volume in scene.

Inspector

Light Probe Volume in inspector
It’s how it looks in inspector.
Name Description
Volume Parameters for volume (or bounding box).
Origin Position of center of volume.
Size Size of volume.
Type Type of density, which can be: Fixed or Float. Possible values: Fixed 1-100, Float 0.1-50.
DensityX Control density by x axis.
DensityY Control density by y axis.
DensityZ Control density by z axis.

Note: Volume parameters almost the same as in another components (like Collider). You can manually change origin position and size.

Density

Light Probe Volume has two types of density: Fixed and Float.

Density type
Type of density.

Fixed

Fixed density depend on how much it should divide space inside volume by specified axis for placing probes. And density always will be fixed, regardless of volume size.

Fixed density settings
Example of different fixed density settings.
Fixed density size
Example of how is changing density with fixed type, depend on volume size.

Float

Float density depend on distance between each probe in specified axis. It will fills space inside volume, so density always will be float and will depend on volume size.

Flaot density settings
Example of different float density settings.
Float density size
Example of how is changing density with float type, depend on volume size.

Light Probe Group Control

Light Probe Group Control is second part of Simple Light Probe Placer and controls Light Probe Group, attached to the same GameObject. It will finds all Light Probe Volume and using them settings for creating Light Probe positions, for future scene baking.

Note: Light Probe Group Control require Light Probe Group component.

Create

You can create new instance, just using create menu on top of Hierarchy tab or add new Light Probe Group Control component to your GameObject using Add Component menu.

Note: After add new Light Probe Group Control component, it will automatically add Light Probe Group to the same GameObject.

Create Light Probe Group Control
Path: Create > Light > Light Probe Group Control
Add Light Group Control component
Path: Add Component > Rendering > Light Probe Group Control

In scene it will looks like this (without 3d gimzo).

Note: If you want hide 3d gizmos see here.

Light Group Control in scene
Light Group Control in scene.

Inspector

Light Group Control in inspector
Light Group Control in inspector.
Name Description
Delete All Light Probes It will delete all Light Points positions in Light Probe Group attached to this GameObject.
Information Provides some information, about how many light probe position you have and how many positions was merged.
Create Light Probes Create probe positions using all Light Probe Volume found in scene and merge closest positions, depend on merge distance option.
Merge Closest Light Probes Merge closest positions depending on merge distance.
Merge distance The minimal distance between probe positions for merging.
Point Light Settings Provides settings for Point Lights.
Use Point Lights Determines whether it will use Light Points for creating probes positions.
Range Distance from Point Light for create probe positions around.

Point Lights

Using this options, you can create Light Probes around Point Lights and control distance to it, using Range option (see above in table).

Light in scene
How it’s look like in scene.
Worked example
Worked example.

Example usage

It is example how it's worked. Scroll down to see steps.

Step 1: We have scene without any baked data.
Step 2: Now we should place everywhere where it's need Light Probe Volume and set up size and density for each.

Note: Don't forget add Light Probe Group Control.

Step 3: After you finish setup all Light Probe Volume, in Light Probe Group Control press a Create Light Probes button.
Step 4: And finally bake you scene data.

Also

If you have some problems with annoying 3d gizmos of all Light Probe Volume, it's help you. It is very simple, on the top-right corner of Scene tab, will button with name Gizmos, here you can find list of all gizmos for showing in Scene window. After open it, you should see something similar with what shows in first column on image below and you can just press on icon of what you want to hide or show in Scene. That's all and Good Luck!

How turn of scene gimzos
How turn off scene gizmos. From right to left.

Move up


simple-light-probe-placer's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.