CarlosFdez / world-explorer

Foundry VTT Module for manual hexcrawl revealing
17 stars 5 forks source link

Image too large? #8

Open bjornsundell opened 3 years ago

bjornsundell commented 3 years ago

I've done several maps using the module. Love it. But there seems to be something funny going on with the image size. Currently I have an image that is 11000x7868 and the overlay doesn't load.

CarlosFdez commented 3 years ago

Are there any errors in the console when this happens?

I can't check yet cause I'm really busy with some projects, but with some more to go off I can take a look at it a bit sooner hopefully.

kalak commented 2 years ago

I am having this issue too, and am happy to help. Maybe a race condition?



WebGL warning: clear: Framebuffer not complete. (status: 0x8cd6) COLOR_ATTACHMENT0: Attachment has no width or height.

WebGL warning: clear: Framebuffer must be complete.

WebGL warning: drawElementsInstanced: Framebuffer not complete. (status: 0x8cd6) COLOR_ATTACHMENT0: Attachment has no width or height.

WebGL warning: drawElementsInstanced: Framebuffer must be complete.

WebGL warning: clear: Framebuffer not complete. (status: 0x8cd6) COLOR_ATTACHMENT0: Attachment has no width or height.

WebGL warning: clear: Framebuffer must be complete.

WebGL warning: drawElementsInstanced: Framebuffer not complete. (status: 0x8cd6) COLOR_ATTACHMENT0: Attachment has no width or height.

WebGL warning: drawElementsInstanced: Framebuffer must be complete.

WebGL warning: clear: Framebuffer not complete. (status: 0x8cd6) COLOR_ATTACHMENT0: Attachment has no width or height.

WebGL warning: clear: Framebuffer must be complete.

WebGL warning: drawElementsInstanced: Framebuffer not complete. (status: 0x8cd6) COLOR_ATTACHMENT0: Attachment has no width or height.

WebGL warning: drawElementsInstanced: Framebuffer must be complete.

WebGL warning: clear: Framebuffer not complete. (status: 0x8cd6) COLOR_ATTACHMENT0: Attachment has no width or height.

WebGL warning: clear: Framebuffer must be complete.

WebGL warning: drawElementsInstanced: Framebuffer not complete. (status: 0x8cd6) COLOR_ATTACHMENT0: Attachment has no width or height.

WebGL warning: drawElementsInstanced: Framebuffer must be complete.

WebGL warning: clear: Framebuffer not complete. (status: 0x8cd6) COLOR_ATTACHMENT0: Attachment has no width or height.

WebGL warning: clear: Framebuffer must be complete.

WebGL warning: drawElementsInstanced: Framebuffer not complete. (status: 0x8cd6) COLOR_ATTACHMENT0: Attachment has no width or height.

WebGL warning: drawElementsInstanced: Framebuffer must be complete.

WebGL warning: clear: Framebuffer not complete. (status: 0x8cd6) COLOR_ATTACHMENT0: Attachment has no width or height.

WebGL warning: clear: Framebuffer must be complete.

WebGL warning: drawElementsInstanced: Framebuffer not complete. (status: 0x8cd6) COLOR_ATTACHMENT0: Attachment has no width or height.

WebGL warning: drawElementsInstanced: Framebuffer must be complete.

WebGL warning: clear: Framebuffer not complete. (status: 0x8cd6) COLOR_ATTACHMENT0: Attachment has no width or height.
WebGL warning: clear: Framebuffer must be complete.

WebGL warning: drawElementsInstanced: Framebuffer not complete. (status: 0x8cd6) COLOR_ATTACHMENT0: Attachment has no width or height.

After reporting 32, no further warnings will be reported for this WebGL context.```

it looks like maybe it's trying to do some calls before the image fully loads. If i try the same thing on a smaller map, it works. However, my world map is quite large, and the only one I want an overlay on.
Vlfberth commented 1 year ago

I have the same problem, very large scenes (13.000px+) will not load the fog at all, and large scenes (11.000ish px) will load it partially, leaving some parts showing to the sides...