Git Product home page Git Product logo

darker-vision-for-5e's Introduction

Darker Vision for 5e - Foundry VTT Module

This module attempts to replicate dnd5e darkvision rules more accurately, leveraging the existing dim vision setting on tokens' vision tabs.

The default Foundry VTT behavior when dim vision is set does the following:

  • Renders darkness within the dim vision radius as dim light
  • Renders dim light within the dim vision radius as dim light
  • Renders bright light within the dim vision radius as bright light

Darkvision rules as written for dnd5e actually increase each level of light below bright light by one step within the dim vision radius. The desired behavior is:

  • Renders darkness within the dim vision radius as dim light
  • Renders dim light within the dim vision radius as bright light
  • Renders bright light within the dim vision radius as bright light

Experimental Grey-Scale Mode

An experimental grey-scale mode can now be accessed on a per-user basis in module settings. Enabling this setting will desaturate anything that a dim vision token would see in areas of darkness. This comes at a cost, however:

  • performance: this grey-scale effect is a filter that is running any time a token with dim vision is selected and may cause performance issues
  • image fidelity: this filter can reduce token, background, and tile image quality when it is in effect for some (maybe all) browsers
  • personal space: something about the filter reacts poorly when you zoom in too much, causing the screen to go black. dim vision tokens like their personal space. Just zoom back out to see your token and the scene again.

Known issues

  • Selecting multiple tokens simultaneously will render lighting inconsistently.

darker-vision-for-5e's People

Contributors

voldemalort avatar

Watchers

 avatar

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.