https://github.com/dev7355608/perfect-vision
Foundry VTT Module: Lighting Drawings and Vision Limitation.
https://github.com/dev7355608/perfect-vision
foundry-vtt foundry-vtt-module
Last synced: about 2 months ago
JSON representation
Foundry VTT Module: Lighting Drawings and Vision Limitation.
- Host: GitHub
- URL: https://github.com/dev7355608/perfect-vision
- Owner: dev7355608
- License: mit
- Created: 2020-11-12T22:32:18.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-10-21T06:03:10.000Z (over 1 year ago)
- Last Synced: 2025-03-18T10:51:31.044Z (2 months ago)
- Topics: foundry-vtt, foundry-vtt-module
- Language: JavaScript
- Homepage: https://foundryvtt.com/packages/perfect-vision
- Size: 8.19 MB
- Stars: 54
- Watchers: 3
- Forks: 10
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/dev7355608/perfect-vision/releases/latest)

[](https://forge-vtt.com/bazaar#package=perfect-vision)
[](LICENSE)# Perfect Vision (Foundry VTT Module)
> Perfect Vision is _not_ going to be updated for V11.
> - **Enhanced Global Illumination**: You can configure `CONFIG.Canvas.globalLightConfig` in a world script.
> - **Daylight/Darkness Color**: You can set `CONFIG.Canvas.daylightColor` and `CONFIG.Canvas.darknessColor` in a world script.
> - **Improved GM Vision**: Replaced by the [GM Vision](https://foundryvtt.com/packages/gm-vision) module.
> - **Light Animation Resolution**: No replacement.
> - **Light Delimiters**: No replacement.
> - **Lighting Drawings**: No replacement.
> - **Reveal Fog of War**: You can reveal the fog of war with [this](https://gist.github.com/dev7355608/c5ae9c6ae472e5a9e91a44e728eb6590) macro.
> - **Vision Limitation**: Replaced by the [Limits](https://foundryvtt.com/packages/limits) module.
> - **Vision Range (In light)**: Replaced by the *Light Perception* detection mode of the [Vision 5e](https://foundryvtt.com/packages/vision-5e) module. No replacement for systems other than D&D 5e.Perfect Vision provides additional lighting and vision settings and lets allows you to control lighting and vision locally within the shape of a drawing.
It gives you the ability to control the maximum vision and detection ranges within the area of drawings, lights, templates, and scenes.Perfect Vision adds/exposes the following lighting and vision settings.
- **Global Illumination**: The global light source is fully configurable with all the usual light options.
- **Animation Resolution**: Controls the scale of the animation of the light source.
- **Daylight/Darkness Color**: The illumination colors at Darkness Level 0 and 1 respectively.
- **Reveal Fog of War**: Reveal the fog of war for all users. This does not override the saved fog exploration progress.
- **Vision Limitation**: Configure the maximum range that tokens can see.
- **Vision Range (In light)**: Controls the maximum distance a token can see in illuminated areas.A drawing allows you to change the lighting within the shape of the drawing; see *Lighting* tab of the drawing config. With the *Fit To Walls* option you can quickly fit the shape to the underlying wall structure; this is a lot faster than tracing the boundary of the structure with the polygon tool. For polygon drawings I recommend the [Advanced Drawing Tools](https://github.com/dev7355608/advanced-drawing-tools) module, which makes it possible to modify polygons in case you make a mistake or need to change the shape. Each roof/level tile inherits the lighting settings of the drawing linked to it; see the *Lighting* setting in the *Overhead* tab of the tile config. By default roofs/levels use the lighting settings of the scene.
Perfect Vision improves the token visibility test such that tokens close to a wall won't be visible through the wall on the other side it. It also includes multiple performance improvements; most notably fog exploration optimizations, which eliminate lags/freezes almost entirely that occur when the fog exploration is saved.