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 billboarded towards the viewpoint. Its primary used for fast faked atmospherical effects e.g. particles and clouds using alpha blending textures.

See Also

rgl.material

Examples

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

[Package Contents]