rgl.bg                  package:rgl                  R Documentation

_s_e_t_u_p _B_a_c_k_g_r_o_u_n_d

_D_e_s_c_r_i_p_t_i_o_n:

     Setup the background environment in the scene.

_U_s_a_g_e:

     rgl.bg( sphere = FALSE, fogtype = "none", color=c("black","white"), back="lines", ...)

_A_r_g_u_m_e_n_t_s:

 fogtype: fog type:

             *  `"none"'   no fog

             *  `"linear"' linear fog function

             *  `"exp"'    exponential fog function

             *  `"exp2"'   squared exponential fog function

  sphere: logical, if true, an environmental sphere geometry is used
          for background decoration 

   color: Primary color is used for background clearing. Secondary
          color is used for sphere geometry. See `\line{rgl.material}'
          for details. 

    back: Specifies the fill style of the sphere geometry. See
          `\line{rgl.material}' for details. 

    ... : Material properties. See `rgl.material' for details.

_D_e_t_a_i_l_s:

     If sphere is set TRUE, an environmental sphere enclosing the whole
     scene is drawn.

_S_e_e _A_l_s_o:

     `rgl.material'

_E_x_a_m_p_l_e_s:

       # the holo-globe (inspired by star trek):

       rgl.bg(sphere=TRUE, color=c("black","green"), lit=FALSE, back="lines" )

       # an environmental sphere with a nice texture.

       rgl.bg(sphere=TRUE, texture= system.file("textures/sunsleep.png",package="rgl"), back="filled" )

