Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Background image and video is not working. #17

Open
rare25 opened this issue Feb 28, 2018 · 5 comments
Open

Background image and video is not working. #17

rare25 opened this issue Feb 28, 2018 · 5 comments

Comments

@rare25
Copy link

rare25 commented Feb 28, 2018

For image, the correct path is specified, but it is not loaded.
For video, ffmpeg is placed, but MilliSim does not run.

@hozuki
Copy link
Owner

hozuki commented Feb 28, 2018

Would you mind run it with --debug switch, and see what happened in log-file.txt?


Here is an example of how to place FFmpeg libraries:

|- TheaterDays.Direct3D11.exe
|- x86
    |- avcodec-57.dll
    |- avdevice-57.dll
    |- ...

BGI configuration ("data" section):

data:
  bgi: Contents/res/img/bg/base_light.jpg # note: Absolute path and Windows path separator ('\') are also acceptable
  fit: letter_box

@rare25
Copy link
Author

rare25 commented Feb 28, 2018

Sorry, it was solved by changing version for ffmpeg libraries from latest(20180227-fa0c9d6) to 3.4.2.
But BGI is not displayed. There is no error in log-file.txt.

@hozuki
Copy link
Owner

hozuki commented Feb 28, 2018

Are you trying to display them both?

@rare25
Copy link
Author

rare25 commented Mar 1, 2018

No.

@hozuki
Copy link
Owner

hozuki commented Mar 1, 2018

That's strange. If an error happens during loading a texture file that exists, it will be thrown and logged. If the file does not exist, the loading process will be canceled and _texture will be null, so the texture will not be drawn and no error will be thrown.

I suggest you to run MilliSim in Visual Studio, and set a breakpoint in BackgroundImage to see what happened. Maybe it is because of the encoding (should be UTF-8).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants