Azgaars Blurry Map
Hey all. I'm taking a look at my importer for Azgaar's Fantasy Map Generator and wondering how I can improve the quality of the Map. In this case when I export an SVG from the tool and then import that SVG into Foundry it gets super blurry when I zoom in far, yet the base SVG doesn't. Any ideas? I'll post some pictures in a thread.
2 Replies
Zoomed really far in (in Foundry)
vs
Zoomed really far in (in Firefox)
My understanding of SVG is that since it's a vector it shouldn't be like this, so that leads me to believe I'm doing something wrong. Here's the relevant code.
https://github.com/Ethck/azgaar-foundry/blob/master/main.js#L272-L305
The FormApp gives a width x height and I take the width x height from the source map file (usually 1827x978) then create a scaling factor off of it in order to know what the new stretched size to be.
I have a feeling this is where I'm going wrong, but I'm unsure what exactly is causing this.
Should also note that the values
widthMultiplier
and heightMultiplier
are used for me to maintain a coordinate system for where to place map notes.