Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - zorexx

Pages: 1 ... 6 7 [8]
106
SFML projects / SF Video Player
« on: October 21, 2010, 04:32:18 pm »
try this, in the function SFMLTheora::Video::Update from Video.cpp:

replace
Code: [Select]
SetImage(currentFrame_);

with

Code: [Select]
SetImage(currentFrame_, true);

107
SFML projects / SF Video Player
« on: October 21, 2010, 03:35:44 am »
Try this, instead of void OnSeek(float timeOffset) {}
use:

Code: [Select]
void OnSeek(float timeOffset)
{
  seek(timeOffset);
}

108
SFML projects / SF Video Player
« on: October 20, 2010, 09:38:26 am »
In the Update(float deltaTime) function, did you use seconds or milliseconds for the delta time? If you're using milliseconds(GetTickCount()?) then you have to divide it by 1000. renderWnd->GetFrameTime() is in seconds so if you're using GetFrameTime(), make sure you don't multiply it by 1000 (to convert it to milliseconds for other uses).
The deltaTime or time_increase accepts the time from last frame to the current frame in seconds.

109
SFML projects / SF Video Player
« on: October 15, 2010, 05:50:18 am »
Hi, few days ago I was looking into how to play videos for my game's cutscenes. I found this thread, leading me to libtheoraplayer. I tried to use the OpenAL_AudioInterface but it didn't really work well for me, maybe cause I'm using the dll version for SFML. Hence I built a video playback class and Audio Interface for SFML again from scratch. Writing the Audio Interface for SFML is actually quite simple(at least simpler than I thought it would be). The zip file contains the project file for the example, the source and include files are included as well(all released under the zlib license), read the readme.txt file.

If you're using sfml 1.6, there's a bug with the SoundStream, it's fixed in sfml2, but not in sfml 1.6. I found what the fix was in svn(for sfml2) and fixed it for the sfml 1.6. The fixed libs and source codes are included along in the zip file.

Enjoy.

SFMLTheora.zip

Pages: 1 ... 6 7 [8]