MovieTexture
MovieTexture applies a 2D movie image to surface geometry, or provides audio for a Sound node. First define as texture, then USE as Sound source to see it/hear it/save memory. Texture maps have a 2D coordinate system (s, t) horizontal and vertical, with (s, t) values in range [0.0, 1.0] for opposite corners of the image. Hint: insert Shape and Appearance nodes before adding texture.
Inheritance
Code
XML encoding
<MovieTexture logFeature='' triggerName='Timer' enabled='TRUE' resumeTime='0' pauseTime='0' stopTime='0' startTime='0' url='' speed='1.0' loop='FALSE' />
Classic encoding
MovieTexture { logFeature [""] triggerName "Timer" enabled TRUE resumeTime 0 pauseTime 0 stopTime 0 startTime 0 url [""] speed 1.0 loop FALSE }
Interface
Filter: X3D only | Avalon only | All
id | Name | DataType | PartType | Default | ValueType | Description |
---|---|---|---|---|---|---|
loop | SFBool | inputOutput | FALSE | Repeat indefinitely when loop=true, repeat only once when loop=false. | ||
speed | SFFloat | inputOutput | 1.0 | Factor for how fast the movie (or soundtrack) is played. | ||
url | MFString | inputOutput | Location and filename of image Multiple locations are more reliable, and Web locations let e-mail attachments work. Hint: Strings can have multiple values, so separate each string by quote marks [ 'http://www.url1.org' 'http://www.url2.org' 'etc.' ]. Hint: XML encoding for ' is ampersandquot; (a character entity). Warning: strictly match directory and filename capitalization for http links! Hint: can replace embedded blank(s) in url queries with %20 for each blank character. | |||
duration_changed | SFTime | outputOnly | Length of time in seconds for one cycle of movie. | |||
startTime | SFTime | inputOutput | 0 | Absolute time: number of seconds since Jan 1, 1970, 00:00:00 GMT. Hint: usually receives a ROUTEd time value. | ||
stopTime | SFTime | inputOutput | 0 | Absolute time: number of seconds since Jan 1, 1970, 00:00:00 GMT. Hint: usually receives a ROUTEd time value. | ||
pauseTime | SFTime | inputOutput | 0 | When time now greater then;= pauseTime, isPaused becomes true and TimeSensor becomes paused. Absolute time: number of seconds since Jan 1, 1970, 00:00:00 GMT. Hint: usually receives a ROUTEd time value. Warning: not supported in VRML97. | ||
resumeTime | SFTime | inputOutput | 0 | When resumeTime becomes less then;= time now, isPaused becomes false and TimeSensor becomes inactive. Absolute time: number of seconds since Jan 1, 1970, 00:00:00 GMT. Hint: usually receives a ROUTEd time value. Warning: not supported in VRML97. | ||
elapsedTime | SFTime | outputOnly | Current elapsed time since TimeSensor activated/running, cumulative in seconds, and not counting any paused time. Warning: not supported in VRML97. | |||
isPaused | SFBool | outputOnly | isPaused true/false events are sent when TimeSensor is paused/resumed. Warning: not supported in VRML97. | |||
isActive | SFBool | outputOnly | FALSE | isActive true/false events are sent when playback starts/stops. | ||
textureProperties | SFNode | initializeOnly | TextureProperties | Definition of a texture property set. When set, the corresponding fields like repeat etc of the texture itself are ignored. | ||
metadata | SFNode | inputOutput | MetadataObject | container for payload metadata inside MetadataSet element |