caewok / fvtt-token-visibility

Advanced token visibility rules for Foundry VTT
MIT License
4 stars 8 forks source link

[Bug] Unable to see partially occluded target with any vision algorithm #88

Open mcabel opened 3 months ago

mcabel commented 3 months ago

A token behind 3/4 cover is completely occluded by the shadows, regardless of the vision mode.

Proposed solution (for dnd 5e) In dnd line of sight and cover are related to corners of tokens when playing on a grid. So to use vision to determine legal targets, tokens should be able to "see" from any corner of their tokens.

I propose that a hotkey, such as Shift 1-9, will displace the line of sight from the center to 1 of the 8 corners of a cube, with 1-4 being the lower 4, 5 the center, and 6-9 the top 4 corners.

Images attached for additional clarity. The first one has GM vision module enable just for illustration purposes(showing 1/4 of the target) while in the second I disabled it so it can show what the token sees (nothing).

EDIT: retested with fvtt-token-cover but there was no improvement to viewing creatures with partial cover.

vision 353327347-3eb72d70-0ae9-4f7b-9f96-dbe88f2196d4