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. | |||
cycleTime | SFTime | outputOnly | cycleTime sends a time outputOnly at startTime, and also at the beginning of each new cycle | |||
fraction_changed | SFFloat | outputOnly | fraction_changed continuously sends value in range [0,1] showing time progress in the current cycle | |||
time | SFTime | outputOnly | duration of the movie, in seconds. This value is sent as soon as the movie is loaded. A value of -1 implies that the movie has not yet loaded. | |||
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. | ||
enabled | SFBool | inputOutput | TRUE | Flag to enable/disable the update. | ||
triggerName | SFString | initializeOnly | Timer | Name of the dynamic context-slot, which is used by the run-time environment (e.g. Jobs) to trigger the node. Life-Nodes will automatically connect the context-eventOutput to the triggerSlot-eventInput Slot. | ||
triggerSlot | SFTime | inputOnly | Slot which is used internally to connect a dynamic context-slot whose name is set by the triggerName value. It is used automatically to install a run-time environment trigger. | |||
image_changed | SFImage | outputOnly | sends a singe image on change | |||
textureProperties | SFNode | initializeOnly | TextureProperties | Definition of a texture property set. When set, the corresponding fields like repeat etc of the texture itself are ignored. | ||
logFeature | MFString | inputOutput | state, child, parent, route, eventIn, eventOut | controls the logging of changes, state: log state changes (e.g. live), child: log child add/remove, parent: log parent add/remove, route: log route add/remove; eventIn: log receiving of events, eventOut: log sending of events: guiView, runtime system should create node-view, guiEdit: runtime system should create node-editeverything: log everything | ||
metadata | SFNode | inputOutput | MetadataObject | container for payload metadata inside MetadataSet element |