Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

Circular Shapes not functioning for Dynamic Lighting

1496192552

Edited 1496193089
Problem: The issue I am currently having is that when using the (Alt+Shift) version of the shapes tool to produce a circle for circular rooms in dynamic lighting, I am running into graphical issues when testing it. Rather than the field of vision representing the geometry made by the circles and lines I made in the dynamic lighting layer, it's rendering a weird field of vision that looks box-y and cuts through the geometry set to block vision. Reproducing the Issue: For my pages, I have only the first four options listed in the dynamic lighting section (enabled, enforce line of sight, only update on drop, and restrict movement). In the dynamic lighting layer, I place a circle made by the shapes tool, then on the objects layer, place an object that has some form of sight (30 ft 15 ft normally, tried adjusting before with angles). The outcome has been poor rendering of the circle, or namely the light collision with the circle, resulting in odd, deformed fields of vision. Setup:  Google Chrome Version 58.0.3029.110 (64-bit), Windows 7 Professional 64-bit, AMD FX-9590 8 core processor, Radeon RX-480 gpu, 32 GB ram, DirectX 11
1496196453

Edited 1496196658
Circles don't play well with Dynamic Lighting. It is recommended that you use the Polygon tool to approximate a circle. See the notes in this section of the wiki: <a href="https://wiki.roll20.net/Dynamic_Lighting#How_to_Add_Light_Obstructions" rel="nofollow">https://wiki.roll20.net/Dynamic_Lighting#How_to_Add_Light_Obstructions</a>
1496196763

Edited 1496196932
I would readily accept that solution, but the map I created had ~30 circular rooms for the dungeon. If the drawn polygons you make could be interacted with like images (Rotated and snapped to grids), then I would have went with that bypass. I've known this bug existed nearly a year ago when I tried the same thing with circular pillars, but I hoped they had fixed it by now.
DL_layer_elipses.js is an API script that allows you draw circles in the dynamic lighting layer in the usual way and then automatically turns them into polygons, and you can specify the number of sides to get the roundness you want. &nbsp;API scripts are only available with a Pro subscription, though.
1496249958
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
From what I understand it's less bug than a mathematical limitation.
1496250920
Lithl
Pro
Sheet Author
API Scripter
keithcurtis said: From what I understand it's less bug than a mathematical limitation. It's a potentially surmountable one, however. Circles are stored as a series of points along the bounding box (specifically, they're a point and some Bézier control points, creating four curves which together form a circle/ellipse), but the representation is &nbsp;distinct from a polygon, so the DL calculation could certainly be adjusted to handle that case.
From what I understand and have read, the DL layer originally had the ability to do circles but was such a heavy performance hit that they took it out. FYI: Alt+Mousewheel will rotate a selected dynamic lighting segment or polygon and Alt+Shift+Mousewheel will rotate it by 1 degree increments. Make sure you have advanced keyboard shortcuts enables in your settings. Those keyboard shortcuts work with any selected object.
1496428775
Gid
Roll20 Team
Brian said: keithcurtis said: From what I understand it's less bug than a mathematical limitation. It's a potentially surmountable one, however. Circles are stored as a series of points along the bounding box (specifically, they're a point and some Bézier control points, creating four curves which together form a circle/ellipse), but the representation is &nbsp;distinct from a polygon, so the DL calculation could certainly be adjusted to handle that case. Ed S. said: From what I understand and have read, the DL layer originally had the ability to do circles but was such a heavy performance hit that they took it out. FYI: Alt+Mousewheel will rotate a selected dynamic lighting segment or polygon and Alt+Shift+Mousewheel will rotate it by 1 degree increments. Make sure you have advanced keyboard shortcuts enables in your settings. Those keyboard shortcuts work with any selected object. You both covered the extent of it. It's also why we removed the freehand drawing tool when working on the DL layer. The shapes and lines created with these two drawing tools do not play nice with the way DL works presently. When we do another pass of DL, this is likely something we can look into making perform better. (Like a circle to polygon conversion)