fatteneder / SVGMakie.jl

SVG backend for Makie
MIT License
1 stars 1 forks source link

Mesh rasterization #14

Open asinghvi17 opened 1 year ago

asinghvi17 commented 1 year ago

I want to add 2 features to mesh rasterization:

  1. Smooth interpolation across faces based on vertex values (if a colormap is provided) instead of interpolating between colors. This will push SVGMakie into alignment with GLMakie on this.
  2. Smooth and correct UV interpolation (so that we can show images on prewarped meshes - this will help rendering times for geographic plots, which routinely use large images (at minimum 3000x1500) on transformations which can effectively be linearized with quad meshes of size 200x200.

These could really help CairoMakie meshes as well, we could add e.g. a rasterize_meshes switch to the screen config.

asinghvi17 commented 1 year ago

Also @fatteneder, had a quick question on the way meshes are plotted. It seems like each mesh element gets its own small image now. Would it be possible to "batch" these images into one large image across the bounding box of the mesh? This would probably make things a lot more efficient for large meshes, otherwise we run into the same problems of huge file sizes.