Path to textures.

e_map_texture(convert = TRUE)

e_globe_texture(convert = TRUE)

e_composite_texture(convert = TRUE)

e_globe_dark_texture(convert = TRUE)

e_stars_texture(convert = TRUE)

e_convert_texture(file)

Arguments

convert

Converts image to JSON formatted arrays.

file

Path to file.

Details

Due to browser "same origin policy" security restrictions, loading textures from a file system in three.js may lead to a security exception, see https://github.com/mrdoob/three.js/wiki/How-to-run-things-locally. References to file locations work in Shiny apps, but not in stand-alone examples. The *texture functions facilitates transfer of image texture data from R into textures when convert is set to TRUE.

Functions

  • e_map_texture globe texture

  • e_stars_texture starts texture

  • e_mconvert_texture convert file to JSON formatted array

Examples

# NOT RUN {
e_map_texture(FALSE) # returns path to file
e_convert_texture("path/to/file.png") # converts file
# }