rgl.sprites {rgl}R Documentation

add sprite set shape

Description

Adds a sprite set shape node to the scene.

Usage

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

Arguments

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

Details

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.

See Also

rgl.material

Examples

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)

[Package rgl version 0.64-13 Index]