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

Automatic Dynamic Lighting Lines Drawing / Deep Learning

My Background : I'm professional deep learning practitioner working in tech, and hard code D&D nerd DMing multiple campaigns on roll20. My Problem : I want a way to speed up drawing dynamic lighting boundaries on my maps. But I have no experience with the roll20 API. Idea : Use modern computer vision / deep learning algorithms to learn where the boundaries should be based on the image and suggest them. However, for a service like this to work, I would need to be able to have an outside service read the images and line vectors from roll20, and then allow roll20 to import new vectors.  Information Needed : I have no idea whether the current API supports the ability export / import the dynamic lighting lines that get drawn outside of roll20. Is this possible, or is this idea dead in the water?   
1590461797

Edited 1590462751
GM Michael
API Scripter
It is possible to draw lines and shift layers through the API, but as you suggest, it would be required to have an external program that you feed a background image to in order to get a configuration that you could then feed to an API script that would generate the lines. Something to keep in mind, if you're using machine learning, you'll probably need to coerce it to a grid. It's my understanding (though I could be wrong), that the dynamic lighting runs faster if lines are cardinal. I think The Aaron has some sort of dynamic lighting autogenerator already. Edit: found it. <a href="https://app.roll20.net/forum/post/1337473/script-walls-svg-path-importer-for-dynamic-lighting-revisited" rel="nofollow">https://app.roll20.net/forum/post/1337473/script-walls-svg-path-importer-for-dynamic-lighting-revisited</a> Out of curiosity, where would you get the training data for this? Just make lots of maps yourself?
I am a weekly (or more often) user of the walls API script. I could see the interest in exploring the deep learning AI path for creating dynamic lighting boundaries for battle maps as a thought exercise. The Aaron's walls script is elegant and very simple to use. As I have said in other posts here his script can cut hours of manual work down to a matter of minutes. I also archive my generated paths so that it is a matter of second to recreate the light boundaries if I ever have to rebuild my maps or recreate them in another game. Best of all, other than the cost of my Pro subscription, Aaron's script and the tools needed to use it are free to use. I would have a look at his work and get a feel for how it works. It would give you a way to quickly create a set of base line boundary sets to test your AI against or to feed into your AI as examples of work completed correctly.