instantreality 1.0

Component:
Texturing
Status:
partly implemented
Structure type:
concrete
Standard:
X3D2.0

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
SFBool loop SFBool inputOutput FALSE Repeat indefinitely when loop=true, repeat only once when loop=false.
SFFloat speed SFFloat inputOutput 1.0 Factor for how fast the movie (or soundtrack) is played.
MFString 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.
SFTime duration_changed SFTime outputOnly Length of time in seconds for one cycle of movie.
SFTime cycleTime SFTime outputOnly cycleTime sends a time outputOnly at startTime, and also at the beginning of each new cycle
SFFloat fraction_changed SFFloat outputOnly fraction_changed continuously sends value in range [0,1] showing time progress in the current cycle
SFTime 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.
SFTime startTime SFTime inputOutput 0 Absolute time: number of seconds since Jan 1, 1970, 00:00:00 GMT. Hint: usually receives a ROUTEd time value.
SFTime stopTime SFTime inputOutput 0 Absolute time: number of seconds since Jan 1, 1970, 00:00:00 GMT. Hint: usually receives a ROUTEd time value.
SFTime 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.
SFTime 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.
SFTime elapsedTime SFTime outputOnly Current elapsed time since TimeSensor activated/running, cumulative in seconds, and not counting any paused time. Warning: not supported in VRML97.
SFBool isPaused SFBool outputOnly isPaused true/false events are sent when TimeSensor is paused/resumed. Warning: not supported in VRML97.
SFBool isActive SFBool outputOnly FALSE isActive true/false events are sent when playback starts/stops.
SFBool enabled SFBool inputOutput TRUE Flag to enable/disable the update.
SFString 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.
SFTime 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.
SFImage image_changed SFImage outputOnly sends a singe image on change
SFNode textureProperties SFNode initializeOnly TextureProperties Definition of a texture property set. When set, the corresponding fields like repeat etc of the texture itself are ignored.
MFString 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
SFNode metadata SFNode inputOutput MetadataObject container for payload metadata inside MetadataSet element