anglr icon indicating copy to clipboard operation
anglr copied to clipboard

allow texture map of a raw array

Open mdsumner opened this issue 5 years ago • 2 comments

We could default to [0,1, 0, 1] but more generally the underlying mapping functions should accept an array, raster-palette, or raster-RGB (and allow set xmin,xmax,ymin,ymax) - see FIXME in texture_mapping

mdsumner avatar Mar 25 '20 01:03 mdsumner

Notes from #89

not sure about these

  • [ ] mesh_plot() should not include crs and coords args
  • [ ] as.mesh3d() should NOT accept coords or crs we just force use of copy_down()
  • [ ] all reprojection should be done with reproj() (which means mesh3d needs crs, or we have a reproj_to_mesh() workflow, which might be the go)

mdsumner avatar Mar 26 '20 01:03 mdsumner

Note that the way Textures work is now documented:

https://github.com/rforge/rgl/blob/master/pkg/rgl/vignettes/rgl.Rmd

e.g.

  • The color in the figure above was specified to be white. By default, the colors in the bitmap will modify the colour of the quad. If col is black (a common default), you won't see anything.
  • On the other hand, you usually don't want specular reflections (which show up as glare). Setting specular to black prevents those.

w00t

mdsumner avatar Mar 26 '20 23:03 mdsumner