rgl.sprites               package:rgl               R Documentation

_a_d_d _s_p_r_i_t_e _s_e_t _s_h_a_p_e

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

     Adds a sprite set shape node to the scene.

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

     rgl.sprites(x, y, z, radius, ...)

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

 x, y, z : point coordinates

 radius : 

    ... : material properties, texture mapping is supported

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

     Sprites are rectangle planes that are directed towards the
     viewpoint. Its primary used for fast (and faked) atmospherical
     effects, e.g. particles and clouds using alpha blended textures.

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

     'rgl.material'

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

     rgl.sprites(rnorm(500), rnorm(500), rnorm(500), color=rainbow(100), lit=FALSE,
                 textype="alpha", texture=system.file("textures/particle.png", package="rgl"), 
                 alpha=.2)

