sprites {rgl}R Documentation

add sprite set shape

Description

Adds a sprite set shape node to the scene.

Usage

sprites3d(x, y, z, radius = 1, ...)
particles3d(x, y, z, radius = 1, ...)
rgl.sprites(x, y, z, radius = 1, ...)

Arguments

x, y, z point coordinates
radius
... material properties, texture mapping is supported

Details

Sprites are rectangle planes that are directed towards the viewpoint. Their primary use is for fast (and faked) atmospherical effects, e.g. particles and clouds using alpha blended textures. Particles are Sprites using an alpha-blended particle texture giving the illusion of clouds and gasses.

See Also

rgl.material

Examples

particles3d( rnorm(100), rnorm(100), rnorm(100), color=rainbow(100) )
# is the same as
sprites3d( rnorm(100), rnorm(100), rnorm(100), color=rainbow(100),
  lit=FALSE, alpha=.2,
  textype="alpha", texture=system.file("textures/particle.png", package="rgl") )

[Package rgl version 0.65 Index]