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

[Dynamic Lighting] Automatic or Uploaded Mapping

1474368240
Andrew C
Marketplace Creator
Is there a way to basically upload a Dynamic Lighting Map? I'm just wondering if for instance, I can create a Path in something like GIMP, and then drop it into a Dynamic Lighting Layer and have the Dynamic Lighting system recognise it, so that I can use some of the more power graphical tools I have at my disposal.
1474372307

Edited 1474372411
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Hey Andrew, while there's no way to upload it, you may find this script helpful:&nbsp; <a href="https://wiki.roll20.net/Script:Dynamic_Light_Recorder" rel="nofollow">https://wiki.roll20.net/Script:Dynamic_Light_Recorder</a> Edit: realized you were asking about using better tools to draw and not a way to link paths to a map tile. For that, the first part still stands tho.
1474377601
The Aaron
Pro
API Scripter
Actually.... Here ya go:&nbsp; <a href="https://app.roll20.net/forum/post/1337473/script-w" rel="nofollow">https://app.roll20.net/forum/post/1337473/script-w</a>... Does basically exactly what you're asking for. &nbsp;You create a Path in Gimp, save it as an SVG, Parse it through a website (<a href="http://roll20api.net" rel="nofollow">http://roll20api.net</a>), then use the corresponding commands and script to draw all the lines for you. &nbsp;=D
1474380604
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
gah, I need to revisit what I think the API is capable of.
1474380754

Edited 1474380988
Ziechael
Forum Champion
Sheet Author
API Scripter
The Aaron said: Actually.... Here ya go:&nbsp; <a href="https://app.roll20.net/forum/post/1337473/script-w" rel="nofollow">https://app.roll20.net/forum/post/1337473/script-w</a>... Does basically exactly what you're asking for. &nbsp;You create a Path in Gimp, save it as an SVG, Parse it through a website ( <a href="http://roll20api.net" rel="nofollow">http://roll20api.net</a> ), then use the corresponding commands and script to draw all the lines for you. &nbsp;=D How did I not already know about this?! Had tried various things similar but since SVG isn't a supported format didn't think it would work, was just missing the final piece of the puzzle it seems! Thanks :) Side note, does the created path act as one continuous line or a series of mini walls (in case you want to remove a portion of it). If the former then the&nbsp; path splitting script would be an awesome accompaniment to the budding map maker who doesn't think far enough ahead ;) Also, that tutorial in the script thread is awesome!
1474380942
The Aaron
Pro
API Scripter
MUAHAHAHAHAHAHA!!! &nbsp;The Aaron Strikes Again!!!!!!!
Having trouble with the dynamic lightining a new memeber to the pro effects, have line of sight boxes checked, have 140 degrees LoS set and 10ft for the test just trying to get it to work. I can see it lightining on my screen but my players just see black. can someone help me please ^.^
1474403589
The Aaron
Pro
API Scripter
The most common thing to check is that the Token has the checkbox marked for Has Sight on the second tab. &nbsp;Then make sure the token Represents a character that the Players control, or that the Token Itself has the players listed as controlling it. &nbsp;Finally, be certain that the light source (if it isn't the token in question) has All Players See Light checked.
1474445430
Andrew C
Marketplace Creator
The Aaron said: Actually.... Here ya go:&nbsp; <a href="https://app.roll20.net/forum/post/1337473/script-w" rel="nofollow">https://app.roll20.net/forum/post/1337473/script-w</a>... Does basically exactly what you're asking for. &nbsp;You create a Path in Gimp, save it as an SVG, Parse it through a website ( <a href="http://roll20api.net" rel="nofollow">http://roll20api.net</a> ), then use the corresponding commands and script to draw all the lines for you. &nbsp;=D So to summarise for others... As long as you have an SVG or similar 'vectorised' output, then your script there will just upload a suitable Dynamic Lighting Map? Cha-Ching! (Also, why by Isaac Newtons dessicated corpse is this NOT on the Wiki for Dynamic Lighting?!?!?!?!?)
1474452146
Andrew C
Marketplace Creator
Actually, from another moment... I've been loading most of my maps cut into quarters (or sometimes 8ths) so I can maintain prettiness... how does this deal with stitched images? Will it take say, 4 images on the Map Layer and import a Dynamic Lighting that matches a "Full Image"?
1474458329
The Aaron
Pro
API Scripter
Just to warn you, I've only got the GIMP and haven't tested it with some other methods of SVG creation. SVGs from other sources might not work as expected. (I've still got one Kevin sent me to look at, when I have a second). With split maps, you'd want to split in The GIMP, then make the SVG. It will scale the DL lines to the graphic when you run it, so just place them where you want for reassembly, then select each and import them in turn.&nbsp;
1474460006

Edited 1474460043
Andrew C
Marketplace Creator
So a four-way split image, needs a four-way split SVG too. As far as other SVGs, I'd suggest looking at Inkscape, since it is the "Vector Gimp"
1474466605
The Aaron
Pro
API Scripter
It's more a question of time and intent. &nbsp;If I wanted to create an SVG importer, that would be a different script and wouldn't be a problem. &nbsp;It would have different constraints than creating Dynamic Lighting lines. &nbsp;DL lines can't be scaled or rotated or they don't work correctly. &nbsp;That's why you have to select the token, so it knows where and what size to build them. &nbsp;At the time I wrote it, I didn't have an example of any other way people might want to create DL lines outside of Roll20. &nbsp;Kevin sent me another method which I need to incorporate, but that's only 2 now. &nbsp;I can't see anyone drawing their DL lines in Inkscape, but maybe there'd be an advantage there? &nbsp;=D &nbsp;Let me know if you have more questions.&nbsp;
1474494932
Andrew C
Marketplace Creator
Oh, the reason for suggesting Inkscape is because people might draw their maps in a Free Vector. &nbsp;I just wasn't sure how 'universal' the SVG format might be. Inkscape would probably be very solid for the old "boxes on graph paper" maps. &nbsp;But again, it was a thought.
1474497820
The Aaron
Pro
API Scripter
Ah, in a couple weeks, PM me and I can probably get a proof of concept for you. :)
1474523673
Andrew C
Marketplace Creator
I use GIMP. &nbsp;So it isn't a requirement, it was a tossed-out idea. &nbsp;If other people pester you about Inkscape then worry about it. :P