T3D Pro 1.1 - GuiTheoraCtrl replay & scale problem [RESOLVED]
by Keith G Wood · in Torque 3D Professional · 03/22/2013 (7:31 pm) · 0 replies
[edit]
1) Turned out to be THREED-2594 - although I didn't get the access violations, just the jumping image.
2) $pref::Video::textureReductionLevel was 1, which halved the resolution.Changing it to 0 displayed whole video.
[end edit]
I've created a dialog with a GuiTheoraCtrl. I open the dialog, set the file & play. I have a function to call stop & then close the dialog. It sort of works, with a couple of caveats:
1) If I replay the video (i.e open dialog, play, close dialog, open dialog & play again) then on the second time through the image is jumping all over the place.
which may be related to (2)...
2) My video is 320x240. My control is 320x240. But it appears to be trying to display it (estimated/approx) 640x480 cropped to 320x240 - so first time through I am seeing the top left of the video; subsequent runs through it seems to displaying the left, but (what appears to be) a random vertical offset into the source video.
I've tried downloading some sample videos that have been suggested in other threads in the forum - and I get the same symptoms. I've also tried playing all my sample videos through VLC - which displays them correctly - so I believe that eliminates the possibility that I have a bad source video. I've also tried sample files with both the ogg and ogv extensions - same symptoms.
The console reports the expected attributes as the ogg/ogv is loaded. I've tried files with & without audio - audio plays fine on those files that include it.
Has anyone else seen this? Is it something I am doing wrong, or is it a bug? I've tried searching old threads but have not found a reference to this elsewhere.
Any suggestions appreciated.
1) Turned out to be THREED-2594 - although I didn't get the access violations, just the jumping image.
2) $pref::Video::textureReductionLevel was 1, which halved the resolution.Changing it to 0 displayed whole video.
[end edit]
I've created a dialog with a GuiTheoraCtrl. I open the dialog, set the file & play. I have a function to call stop & then close the dialog. It sort of works, with a couple of caveats:
1) If I replay the video (i.e open dialog, play, close dialog, open dialog & play again) then on the second time through the image is jumping all over the place.
which may be related to (2)...
2) My video is 320x240. My control is 320x240. But it appears to be trying to display it (estimated/approx) 640x480 cropped to 320x240 - so first time through I am seeing the top left of the video; subsequent runs through it seems to displaying the left, but (what appears to be) a random vertical offset into the source video.
I've tried downloading some sample videos that have been suggested in other threads in the forum - and I get the same symptoms. I've also tried playing all my sample videos through VLC - which displays them correctly - so I believe that eliminates the possibility that I have a bad source video. I've also tried sample files with both the ogg and ogv extensions - same symptoms.
The console reports the expected attributes as the ogg/ogv is loaded. I've tried files with & without audio - audio plays fine on those files that include it.
Has anyone else seen this? Is it something I am doing wrong, or is it a bug? I've tried searching old threads but have not found a reference to this elsewhere.
Any suggestions appreciated.
About the author
The perverse mind behind Bad Taste Software: http://www.badtastesoftware.co.uk