You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+25-19Lines changed: 25 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,27 +3,33 @@ Create a grid of Lightmap Probes and cut unwanted ones!
3
3
4
4
LightmapProbeGrid is an extension for [Godot Engine](https://godotengine.org/) that helps on the demanding task of placing Lightmap Probes where LightmapGI fails to do it.
5
5
6
-
**Disclaimer:** If you are getting the error `scene/3d/lightmap_gi.cpp:529 - Inconsistency found in triangulation...` is because [Godot Issue 82642](https://github.com/godotengine/godot/issues/82642) which cause probes to not be connected correctly resulting in inconsistencies on character lighting.
6
+
**Disclaimer:** If you are getting the error `scene/3d/lightmap_gi.cpp:529 - Inconsistency found in triangulation...` is because [Godot Issue 82642](https://github.com/godotengine/godot/issues/82642). If you have the knowledge, would you kindly contrubute to fix the issue please? \o/
7
7
8
8
### Video Tutorial
9
-
https://www.youtube.com/watch?v=IdpsFQpvp2I
9
+
https://www.youtube.com/watch?v=HzZSQ0BPpuk
10
10
11
11
# Index
12
+
*[What's new](#whats-new)
12
13
*[How to install](#how-to-install)
13
14
*[Making a grid of Light Probes](#making-a-grid-of-light-probes)
14
-
*[Cut Probes Based on Colliders](#cut-probes-based-on-colliders)
*[Cut probes far from objects](#cut-probes-far-from-objects)
18
18
*[Limitations](#limitations)
19
19
*[Compatibility](#compatibility)
20
20
*[Ending notes](#ending-notes)
21
21
*[Changelog](#changelog)
22
22
23
+
# What's New
24
+
Thanks to [dwarfses](https://twitter.com/dwarfses/status/1731691097263362513), LightmapProbeGrid v2.0 now uses GPU raycast instead of the regular Physics raycast. It may be slower but means that colliders are not needed anymore! If the camera can see, it should work!
25
+
26
+
NOTE: The Cull Mask from v1.0 is not compatible with v2.0.
27
+
23
28
# How to install
24
-
1) Extract the `addons` folder on the root of your project (`res://`). Other files/folders are optional.
25
-
2) Go to Godot's "Project" menu -> "Project Settings" -> "Plugins" tab -> enable "LightmapProbeGrid".
26
-
3) Restart Godot.
29
+
1) Download the file `LightmapProbeGrid_v2.0.zip` from the [Download Page](https://github.com/SpockBauru/LightmapProbeGrid/releases)
30
+
2) Extract the `addons` folder on the root of your project (`res://`). Other files/folders are optional.
31
+
3) Go to Godot's "Project" menu -> "Project Settings" -> "Plugins" tab -> enable "LightmapProbeGrid".
32
+
4) Restart Godot.
27
33
28
34
You can also open the `DemoScene` to see how it works.
29
35
@@ -34,40 +40,40 @@ You can also open the `DemoScene` to see how it works.
34
40
35
41
Now you can cut unwanted probes with the methods bellow.
36
42
37
-
# Cut Probes Based on Colliders
38
-
You can only cut probes based on objects that have colliders attached. This is because the tool relies on Raycast.
39
-
40
-
## Cut Obstructed
41
-
This method is designed to cut probes that are placed beyond collider limits such as the ground or the walls of a cave.
43
+
## Cut Obstructed Probes
44
+
This method is designed to cut probes that are placed beyond visual limits such as the ground or the walls of a cave.
42
45
43
-
On LightmapProbeGrid Inscpector click on "Cut Obstructed Probes". It will test each Light Probe from the center of the grid to the probe and see if the line intercepts an collision object. The probe will be cut if there's something blocking the line.
46
+
On LightmapProbeGrid Inscpector click on "Cut Obstructed Probes". It will test each Light Probe from the center of the grid to the probe and see if the line intercepts an object. The probe will be cut if there's something blocking the line.
44
47
45
48
## Cut probes inside objects
46
-
This method is designed to delete probes that are inside objects with colliders. It will test all 6 axis of each Light Probes: Up, Down, Left, Right, Forward and Backward by the distance indicated in `Max Object Size`.
49
+
This method is designed to delete probes that are inside objects. It will test all 6 axis of each Light Probe: Up, Down, Left, Right, Forward and Backward by the distance indicated in `Max Object Size`.
47
50
48
-
If at least 4 of these hit the same object the probe will be cut. It considers only 4 hits to cut probes on long objects like pillars and trees.
51
+
If at least 4 of these lines hit something the probe will be cut. It considers only 4 hits to cut probes on long objects like pillars and trees.
49
52
50
53
## Cut probes far from objects
51
-
This method is designed to delete probes that are far away from any collider. Normally these probes don't contain any relevant light information but use with care in places that have a high usage of spotlights.
54
+
This method is designed to delete probes that are far away from any object. Normally these probes don't contain any relevant light information but use with care in places that have a high usage of spotlights.
52
55
53
56
When you click the button the area around the Light Probe is tested on various directions by the distance indicated in `Max Distance`. The probe will be cut if none of the rays intercept an object.
54
57
55
58
## Using masks
56
-
You can select which layers the rays will interact on the Collision Mask section. Only selected layers will be used on detection for the Cut methods above.
59
+
You can select which 3D render layers LightmapProbeGrid will interact on the section Visual Cull Mask. Only selected layers will be used on detection for the Cut methods above.
57
60
58
61
Use masks to filter out objects to not interact with the rays, like characters or moving objects.
59
62
60
63
# Limitations
61
64
LightmapProbeGrid is not designed to work with a huge number of Light Probes at once covering a vast area. It is designed to be placed multiple times in a scene with relatively small grids (less than 1,000 probes).
62
65
63
-
Cutting probes relies on raycast which only works on object that have a collider. If the object doesn’t have a collider, it will not be tested for the cut.
64
-
65
66
# Compatibility
66
67
LightmapProbeGrid is compatible with Godot 4.2 and there are plans to continue supporting onward.
67
68
68
69
# Ending notes
69
70
This tool was entirely made on my free time. If you want to support me, please make an awesome asset and publish for free to the community!
70
71
71
72
# Changelog
73
+
v2.0:
74
+
- Major changes: now uses GPU Raycast instead of Physics raycast
75
+
- This means that colliders are not needed anymore!
76
+
- The Cull Mask from v1.0 is not compatible with v2.0
Copy file name to clipboardExpand all lines: addons/lightmap_probe_grid/README.md
+25-19Lines changed: 25 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,27 +3,33 @@ Create a grid of Lightmap Probes and cut unwanted ones!
3
3
4
4
LightmapProbeGrid is an extension for [Godot Engine](https://godotengine.org/) that helps on the demanding task of placing Lightmap Probes where LightmapGI fails to do it.
5
5
6
-
**Disclaimer:** If you are getting the error `scene/3d/lightmap_gi.cpp:529 - Inconsistency found in triangulation...` is because [Godot Issue 82642](https://github.com/godotengine/godot/issues/82642) which cause probes to not be connected correctly resulting in inconsistencies on character lighting.
6
+
**Disclaimer:** If you are getting the error `scene/3d/lightmap_gi.cpp:529 - Inconsistency found in triangulation...` is because [Godot Issue 82642](https://github.com/godotengine/godot/issues/82642). If you have the knowledge, would you kindly contrubute to fix the issue please? \o/
7
7
8
8
### Video Tutorial
9
-
https://www.youtube.com/watch?v=IdpsFQpvp2I
9
+
https://www.youtube.com/watch?v=HzZSQ0BPpuk
10
10
11
11
# Index
12
+
*[What's new](#whats-new)
12
13
*[How to install](#how-to-install)
13
14
*[Making a grid of Light Probes](#making-a-grid-of-light-probes)
14
-
*[Cut Probes Based on Colliders](#cut-probes-based-on-colliders)
*[Cut probes far from objects](#cut-probes-far-from-objects)
18
18
*[Limitations](#limitations)
19
19
*[Compatibility](#compatibility)
20
20
*[Ending notes](#ending-notes)
21
21
*[Changelog](#changelog)
22
22
23
+
# What's New
24
+
Thanks to [dwarfses](https://twitter.com/dwarfses/status/1731691097263362513), LightmapProbeGrid v2.0 now uses GPU raycast instead of the regular Physics raycast. It may be slower but means that colliders are not needed anymore! If the camera can see, it should work!
25
+
26
+
NOTE: The Cull Mask from v1.0 is not compatible with v2.0.
27
+
23
28
# How to install
24
-
1) Extract the `addons` folder on the root of your project (`res://`). Other files/folders are optional.
25
-
2) Go to Godot's "Project" menu -> "Project Settings" -> "Plugins" tab -> enable "LightmapProbeGrid".
26
-
3) Restart Godot.
29
+
1) Download the file `LightmapProbeGrid_v2.0.zip` from the [Download Page](https://github.com/SpockBauru/LightmapProbeGrid/releases)
30
+
2) Extract the `addons` folder on the root of your project (`res://`). Other files/folders are optional.
31
+
3) Go to Godot's "Project" menu -> "Project Settings" -> "Plugins" tab -> enable "LightmapProbeGrid".
32
+
4) Restart Godot.
27
33
28
34
You can also open the `DemoScene` to see how it works.
29
35
@@ -34,40 +40,40 @@ You can also open the `DemoScene` to see how it works.
34
40
35
41
Now you can cut unwanted probes with the methods bellow.
36
42
37
-
# Cut Probes Based on Colliders
38
-
You can only cut probes based on objects that have colliders attached. This is because the tool relies on Raycast.
39
-
40
-
## Cut Obstructed
41
-
This method is designed to cut probes that are placed beyond collider limits such as the ground or the walls of a cave.
43
+
## Cut Obstructed Probes
44
+
This method is designed to cut probes that are placed beyond visual limits such as the ground or the walls of a cave.
42
45
43
-
On LightmapProbeGrid Inscpector click on "Cut Obstructed Probes". It will test each Light Probe from the center of the grid to the probe and see if the line intercepts an collision object. The probe will be cut if there's something blocking the line.
46
+
On LightmapProbeGrid Inscpector click on "Cut Obstructed Probes". It will test each Light Probe from the center of the grid to the probe and see if the line intercepts an object. The probe will be cut if there's something blocking the line.
44
47
45
48
## Cut probes inside objects
46
-
This method is designed to delete probes that are inside objects with colliders. It will test all 6 axis of each Light Probes: Up, Down, Left, Right, Forward and Backward by the distance indicated in `Max Object Size`.
49
+
This method is designed to delete probes that are inside objects. It will test all 6 axis of each Light Probe: Up, Down, Left, Right, Forward and Backward by the distance indicated in `Max Object Size`.
47
50
48
-
If at least 4 of these hit the same object the probe will be cut. It considers only 4 hits to cut probes on long objects like pillars and trees.
51
+
If at least 4 of these lines hit something the probe will be cut. It considers only 4 hits to cut probes on long objects like pillars and trees.
49
52
50
53
## Cut probes far from objects
51
-
This method is designed to delete probes that are far away from any collider. Normally these probes don't contain any relevant light information but use with care in places that have a high usage of spotlights.
54
+
This method is designed to delete probes that are far away from any object. Normally these probes don't contain any relevant light information but use with care in places that have a high usage of spotlights.
52
55
53
56
When you click the button the area around the Light Probe is tested on various directions by the distance indicated in `Max Distance`. The probe will be cut if none of the rays intercept an object.
54
57
55
58
## Using masks
56
-
You can select which layers the rays will interact on the Collision Mask section. Only selected layers will be used on detection for the Cut methods above.
59
+
You can select which 3D render layers LightmapProbeGrid will interact on the section Visual Cull Mask. Only selected layers will be used on detection for the Cut methods above.
57
60
58
61
Use masks to filter out objects to not interact with the rays, like characters or moving objects.
59
62
60
63
# Limitations
61
64
LightmapProbeGrid is not designed to work with a huge number of Light Probes at once covering a vast area. It is designed to be placed multiple times in a scene with relatively small grids (less than 1,000 probes).
62
65
63
-
Cutting probes relies on raycast which only works on object that have a collider. If the object doesn’t have a collider, it will not be tested for the cut.
64
-
65
66
# Compatibility
66
67
LightmapProbeGrid is compatible with Godot 4.2 and there are plans to continue supporting onward.
67
68
68
69
# Ending notes
69
70
This tool was entirely made on my free time. If you want to support me, please make an awesome asset and publish for free to the community!
70
71
71
72
# Changelog
73
+
v2.0:
74
+
- Major changes: now uses GPU Raycast instead of Physics raycast
75
+
- This means that colliders are not needed anymore!
76
+
- The Cull Mask from v1.0 is not compatible with v2.0
0 commit comments