public class SoVRMLMovieTexture extends SoVRMLTexture
SoVRMLMovieTexture
node defines a time-dependent texture map (contained in a movie file) and parameters for controlling the movie and the texture mapping.
<font color="#0000FF">NOTE:</font> This class does not exist in Open Inventor 10.0 and later.
This section describes the expected behavior of the node in a conforming VRML97 browser application. In some cases, the application is responsible for implementing portions of the expected behavior. Open Inventor viewer classes and IVF classes implement some of the application behaviors.
This section may reference portions of the VRML97 specification that are not present in this help file. The complete VRML97 spec is available at
The SoVRMLMovieTexture
node defines a time dependent texture map (contained in a movie file) and parameters for controlling the movie and the texture mapping. An SoVRMLMovieTexture
can also be used as the source of sound data for an SoVRMLSound
node, but in this special case is not used for rendering.
Texture maps are defined in a 2D coordinate system, (s,t), that ranges from 0.0 to 1.0 in both directions. The bottom edge of the image corresponds to the S-axis of the texture map, and left edge of the image corresponds to the T-axis of the texture map. The lower-left pixel of the image corresponds to s=0, t=0, and the top-right pixel of the image corresponds to s=1, t=1.
The url
field that defines the movie data must support MPEG1-Systems (audio and video) or MPEG1-Video (video-only) movie file formats. See "Concepts - URLS and URNs" for details on the url
field. It is recommended that implementations support grayscale or alpha transparency rendering if the specific movie format being used supports these features.
See "Concepts - Lighting Model" for details on lighting equations and the interaction between textures, materials, and geometries.
As soon as the movie is loaded, a duration_changed
eventOut is sent. This indicates the duration of the movie, in seconds. This eventOut value can be read (for instance, by a Script) to determine the duration of a movie. A value of -1 implies the movie has not yet loaded or the value is unavailable for some reason.
The loop
, startTime
, and stopTime
exposedFields and the isActive
eventOut, and their affects on the SoVRMLMovieTexture
node, are discussed in detail in the "Concepts - Time Dependent Nodes" section. The "cycle" of an SoVRMLMovieTexture
is the length of time in seconds for one playing of the movie at the specified speed
.
If an SoVRMLMovieTexture
is inactive when the movie is first loaded, then frame 0 is shown in the texture if speed
is nonnegative, or the last frame of the movie if speed
is negative. A SoVRMLMovieTexture
will always display frame 0 if speed
= 0. For positive values of speed
, the frame an active SoVRMLMovieTexture
will display at time
now corresponds to the frame at movie time (i.e., in the movie's local time system with frame 0 at time 0, at speed
= 1):
Iffmod (now - startTime, duration/speed)
speed
is negative, then the frame to display is the frame at movie time:
When anduration + fmod(now - startTime, duration/speed)
SoVRMLMovieTexture
becomes inactive, the frame corresponding to the time at which the SoVRMLMovieTexture
became inactive will remain as the texture.
The speed
exposedField indicates how fast the movie should be played. A speed
of 2 indicates the movie plays twice as fast. Note that the duration_changed
output is not affected by the speed
exposedField. set_speed events are ignored while the movie is playing. A negative speed
implies that the movie will play backwards. However, content creators should note that this may not work for streaming movies or very large movie files.
SoVRMLMovieTexture
can be referenced by an SoVRMLAppearance
node's texture field (as a movie texture) and by an SoVRMLSound
node's source field (as an audio source only). A legal implementation of the SoVRMLMovieTexture
node is not required to play audio if speed
is not equal to 1.
scaleTexCoord
field is true.
url
field and setVideoCaptureFormat()
).
alpha
, model
and blendColor
) and texture coordinates (scaleTexCoord
) were added. Note: These new fields are not compatible with VRML97. If you set these fields to non-default values and then write a VRML file, the VRML file will not be readable by standard VRML97 readers. Older versions of Open Inventor will not be able to read the file either and will generate an Inventor read error (unknown field).
File format/default:
VRMLMovieTexture {
loop | false |
speed | 1 |
startTime | 0 |
stopTime | 0 |
pauseTime | 0 |
resumeTime | 0 |
url | [] |
repeatS | true |
repeatT | true |
alpha | 1.0 |
model | MODULATE |
blendColor | 0 0 0 |
scaleTexCoord | true |
metadata | NULL |
SoSFBool | set_loop |
SoSFFloat | set_speed |
SoSFTime | set_startTime |
SoSFTime | set_stopTime |
SoSFTime | set_pauseTime (Note: Not implemented) |
SoSFTime | set_resumeTime (Note: Not implemented) |
SoMFFilePathString | set_url |
SoSFNode | set_metadata |
SoSFTime | duration_changed |
SoSFTime | elapsedTime (Note: Not implemented) |
SoSFBool | isPaused (Note: Not implemented) |
SoSFBool | isActive |
SoSFBool | loop_changed |
SoSFFloat | speed_changed |
SoSFTime | startTime_changed |
SoSFTime | stopTime_changed |
SoSFTime | pauseTime_changed (Note: Not implemented) |
SoSFTime | resumeTime_changed (Note: Not implemented) |
SoMFFilePathString | url_changed |
SoSFNode | metadata_changed |
Modifier and Type | Class and Description |
---|---|
static class |
SoVRMLMovieTexture.Models
Deprecated.
Model.
|
Inventor.ConstructorCommand
Modifier and Type | Field and Description |
---|---|
SoSFFloat |
alpha
Deprecated.
Alpha value used with the video.
|
static int |
BLEND
Deprecated.
Use
SoVRMLMovieTexture.Models.BLEND instead. |
SoSFColor |
blendColor
Deprecated.
Color used for BLEND model.
|
static int |
DECAL
Deprecated.
Use
SoVRMLMovieTexture.Models.DECAL instead. |
SoSFTime |
duration_changed
Deprecated.
Output event.
|
SoSFTime |
elapsedTime
Deprecated.
Output event.
|
SoSFBool |
isActive
Deprecated.
Output event.
|
SoSFBool |
isPaused
Deprecated.
Output event.
|
SoSFBool |
loop
Deprecated.
Controls whether the movie continues when it reaches the end as defined in the movie texture file.
|
SoSFEnum<SoVRMLMovieTexture.Models> |
model
Deprecated.
Specifies how to map the texture onto the surface.
|
static int |
MODULATE
Deprecated.
Use
SoVRMLMovieTexture.Models.MODULATE instead. |
SoSFTime |
pauseTime
Deprecated.
(Note: Not implemented) The pause time for the sound.
|
static int |
REPLACE
Deprecated.
Use
SoVRMLMovieTexture.Models.REPLACE instead. |
SoSFTime |
resumeTime
Deprecated.
(Note: Not implemented) The resume time for the sound.
|
SoSFBool |
scaleTexCoord
Deprecated.
Boolean value which controls the way the image is mapped in case of non power-of-two video size.
|
SoSFFloat |
speed
Deprecated.
Indicates how fast the movie should be played.
|
SoSFTime |
startTime
Deprecated.
The starting time for the movie.
|
SoSFTime |
stopTime
Deprecated.
The stopping time for the movie.
|
SoMFFilePathString |
url
Deprecated.
Specifies the movie data.
|
repeatS, repeatT
metadata
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
SoVRMLMovieTexture()
Deprecated.
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
allowPrequalifyFile(boolean name_31338)
Deprecated.
Sets the prequalify file flag.
|
void |
setVideoCaptureFormat(int width,
int height,
int framePerSec)
Deprecated.
</font> In case of video capture from a video input device (see
url ), this method allows you to configure the video capture settings (the video size format and the video capture rate expressed in frames per second). |
affectsState, callback, copy, copy, distribute, doAction, getAlternateRep, getBoundingBox, getByName, getMatrix, getPrimitiveCount, getRenderUnitID, GLRender, GLRenderBelowPath, GLRenderInPath, GLRenderOffPath, grabEventsCleanup, grabEventsSetup, handleEvent, isBoundingBoxIgnoring, isOverride, pick, rayPick, search, setOverride, touch, write
copyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, set, setToDefaults
dispose, getEXTERNPROTO, getName, getPROTO, isDisposable, isSynchronizable, setName, setSynchronizable
getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads
@Deprecated public static final int MODULATE
SoVRMLMovieTexture.Models.MODULATE
instead.@Deprecated public static final int DECAL
SoVRMLMovieTexture.Models.DECAL
instead.@Deprecated public static final int BLEND
SoVRMLMovieTexture.Models.BLEND
instead.@Deprecated public static final int REPLACE
SoVRMLMovieTexture.Models.REPLACE
instead.public final SoSFBool loop
loop
is false , execution is terminated. If true, the movie restarts.public final SoSFFloat speed
public final SoSFTime startTime
public final SoSFTime stopTime
public final SoSFTime pauseTime
SoVRMLAudioClip
node with loop
true at the end of every cycle pauses if current time >= pauseTime
>resumeTime
public final SoSFTime resumeTime
SoVRMLAudioClip
node with loop
true at the end of every cycle pauses if current time >= resumeTime
>pauseTime
public final SoMFFilePathString url
setVideoCaptureFormat()
method allows you to specify the format you want to obtain from your video input device.public final SoSFFloat alpha
public final SoSFEnum<SoVRMLMovieTexture.Models> model
Model
. Default is MODULATE.
public final SoSFColor blendColor
public final SoSFBool scaleTexCoord
public final SoSFTime duration_changed
public final SoSFBool isActive
public final SoSFBool isPaused
public final SoSFTime elapsedTime
public void allowPrequalifyFile(boolean name_31338)
public void setVideoCaptureFormat(int width, int height, int framePerSec)
url
), this method allows you to configure the video capture settings (the video size format and the video capture rate expressed in frames per second).
If no format is specified, the size and frame rate will be the last used by the capture device. Because video size formats are device specific, the requested size may not be available and a default size will be used instead.Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com