User Tools

Site Tools


gamedev:canvassystem:video

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
gamedev:canvassystem:video [2020/04/03 10:20] – url move dragonlordgamedev:canvassystem:video [2024/03/14 16:50] (current) dragonlord
Line 5: Line 5:
  
 ====== Canvas Video Player ====== ====== Canvas Video Player ======
-Video player canvas display a [[http://developer.dragondreams.ch/docs/dragengine/latest/classdeVideo.html|video resource]] using a [[http://developer.dragondreams.ch/docs/dragengine/latest/classdeVideoPlayer.html|video player resource]]. Video players can be shared if required allowing to show the same video frame in different places including 3D dynamic skin renderables. To play the video call the update function on the video player resources during game frame updating. This is not done automatic to allow individual advancing of video frames. This can be used to use videos as image animations selecting individual images.+Video player canvas display a #@LinkApiDocDE2_HTML~classdeVideo.html,video resource~@# using a #@LinkApiDocDE2_HTML~classdeVideoPlayer.html,video player resource~@#. Video players can be shared if required allowing to show the same video frame in different places including 3D dynamic skin renderables. To play the video call the update function on the video player resources during game frame updating. This is not done automatic to allow individual advancing of video frames. This can be used to use videos as image animations selecting individual images.
  
 The video is scaled to fill the entire canvas. This requires the canvas size to be set to the video size for proper 1-on-1 pixel matching. A transformation matrix can be used to apply effects like stretching if required. Canvas video players have a **repeat-x** and **repeat-y** parameter. The default value for both repeat parameters is 1 displaying the stretched video frame exactly once. Using repetition values larger than 1 duplicates the video frame along the respective axis. The repeated video frames are stretched to fill the entire canvas. Thus increasing the repetition does not enlarge the canvas but simply tiles the video frame in the respective direction fitting into the same canvas content area as with no repetition used. The video is scaled to fill the entire canvas. This requires the canvas size to be set to the video size for proper 1-on-1 pixel matching. A transformation matrix can be used to apply effects like stretching if required. Canvas video players have a **repeat-x** and **repeat-y** parameter. The default value for both repeat parameters is 1 displaying the stretched video frame exactly once. Using repetition values larger than 1 duplicates the video frame along the respective axis. The repeated video frames are stretched to fill the entire canvas. Thus increasing the repetition does not enlarge the canvas but simply tiles the video frame in the respective direction fitting into the same canvas content area as with no repetition used.
gamedev/canvassystem/video.1585909235.txt.gz · Last modified: 2020/04/03 10:20 by dragonlord