The Texture Command


Usage

Description

Note: this command requires build 305 or later of the Active Worlds Browser

The texture command paints a new texture onto the surface of an object. The texture is applied to every polygon on the object unless the tag= argument is specified.

The texture argument specifies the name of the texture to apply. The texture must be on the world's object path.

The optional mask argument specifies the name of a mask to apply to the texture.

The optional tag argument specifies the numeric tag of the polygon to apply the texture to. Note that using tags does not allow the simultaneous application of different textures to different polygons on the same object; only one "texture" command can be in effect at a time. It is, however, possible to effect multiple surfaces of an object with the same command using the tag parameter if the surfaces have the same tag value.

The optional name argument specifies the name of the object to apply the texture to. Object names are assigned via the name command.

Note that the texture command will not work predictably on objects that do not have proper UV texture values specified for the vertices of the object.

Examples

This applies the texture brick.jpg to all polygons of the current object.

When the object with this action is clicked, any objects in the scene which have been named "wall" will get the texture named brick applied to them.