Texture
From ActiveWiki
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. This command will not work predictably on objects that do not have proper UV texture values specified for its vertices.
Contents |
[edit] Usage
texture texture [mask=mask] [tag=tag] [name=name]
[edit] Description
[edit] Texture
The texture argument specifies the name of the texture to apply. The texture must reside on the world's object path.
[edit] Mask
The optional mask argument specifies the name of a mask to apply to the texture. The mask must also reside on the world's object path.
[edit] Tag
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.
[edit] Name
The optional name argument specifies the name of the object to apply the texture to. Object names are assigned via the name command.
[edit] Examples
create texture brick1
- This applies the texture brick1.jpg to all polygons of the current object (see picture).
create texture brick1 mask=booth1m
- This applies the texture brick1.jpg along with the booth1m mask (see picture).
activate texture name=wall brick
- 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.
|
|
|
|
Triggers: Create • Bump • Activate • Adone • Collide • Sdone • Enter Zone • Exit Zone Commands: Addforce • Addtorque • Animate • Astart • Astop • Camera • Collider • Colltag • Color • Corona • Envi • Examine • Frame • Group • Light • Link • Lock • Matfx • Media • Midi • Move • Name • Noise • Picture • Rotate • Say • Scale • Seq • Shadow • Sign • Solid • Sound • Tag • Teleport / Teleportx • Texture • URL • Velocity • Visible • Warp • Web |
|
