Please login or register.

Login with username, password and session length
Advanced search  

News:

IRC channel - server: waelisch.de  channel: #wme (read more)

Pages: [1] 2 3  All

Author Topic: Screen resolution scale down  (Read 46621 times)

0 Members and 1 Guest are viewing this topic.

lacosaweb

  • Regular poster
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 116
    • View Profile
Screen resolution scale down
« on: March 18, 2014, 12:30:03 PM »

Hi, I'm working on a full HD game (1920x1080) but when I try to run it in a computer without FullHD screen, the game doesn't run.

I'm trying to implement Downscaling resolution in case the screen can't work with game current res. I read that WMELite do it in CBRenderSDL::InitRenderer, but I don't know how to implement it in the WME Windows.

Please, can anyone help me? I think that is an important feature.

Thanks a lot!
Logged

piere

  • Supporter
  • Frequent poster
  • *
  • Karma: 4
  • Offline Offline
  • Posts: 302
  • Sorry for any bad english in my posts. Game on !
    • View Profile
Re: Screen resolution scale down
« Reply #1 on: March 19, 2014, 05:04:09 AM »

Someone made a really cool tool recently and posted it on here. It was last year or this year I think, it automatically scales down every image in the game to fit whatever resolution you are going for. You might wanna search for it in the forums, I forgot what it was called.
Logged

lacosaweb

  • Regular poster
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 116
    • View Profile
Re: Screen resolution scale down
« Reply #2 on: March 19, 2014, 08:45:15 AM »

Hi, I saw this. But the solution you tell me makes a copy of the game using the new resolution. I don't want to distribute 2 versions of the game depending on resolution. I need that the engine resize the images on the screen, like WME in iPhone or Android.
Logged

Atelier Sentô

  • Occasional poster
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 52
    • View Profile
    • Atelier Sentô
Re: Screen resolution scale down
« Reply #3 on: March 19, 2014, 08:53:02 AM »

A few months ago, I asked on the forum about WMELite downscaling on Windows.
You can read the thread here:
http://forum.dead-code.org/index.php?topic=5584.0

But I've found no solution to the problem.
If you find one, I'd be interested to hear about it!

Thank you!
Logged

metamorphium

  • Global Moderator
  • Addicted to WME forum
  • *
  • Karma: 12
  • Offline Offline
  • Gender: Male
  • Posts: 1511
  • Vampires!
    • View Profile
    • CBE  software s.r.o.
Re: Screen resolution scale down
« Reply #4 on: March 20, 2014, 11:43:47 PM »

You can try my fork of wme lite. It should switch resolution to the nearest with correct aspec ratio and letterbox it.

https://bitbucket.org/JanKavan/wmelite-julia-branch
Logged
J.U.L.I.A. Enhanced Edition, Vampires!, J.U.L.I.A., J.U.L.I.A. Untold, Ghost in the Sheet

piere

  • Supporter
  • Frequent poster
  • *
  • Karma: 4
  • Offline Offline
  • Posts: 302
  • Sorry for any bad english in my posts. Game on !
    • View Profile
Re: Screen resolution scale down
« Reply #5 on: March 21, 2014, 07:08:56 AM »

@metamorphium What does your fork do differently than the original WME Lite?
Logged

lacosaweb

  • Regular poster
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 116
    • View Profile
Re: Screen resolution scale down
« Reply #6 on: March 21, 2014, 08:45:11 AM »

Thanks metamorphium, I'll try it!!!
Logged

Atelier Sentô

  • Occasional poster
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 52
    • View Profile
    • Atelier Sentô
Re: Screen resolution scale down
« Reply #7 on: March 21, 2014, 09:40:32 AM »

You can try my fork of wme lite. It should switch resolution to the nearest with correct aspec ratio and letterbox it.

https://bitbucket.org/JanKavan/wmelite-julia-branch

It looks very appealing.
Many thanks, metamorphium! Your contributions to the WME community are always so helpful!

There's a "fatal error" when I try to compile "wmelite-julia-branch".
Here is the message I get in Visual C++ 2008 Express :

Quote
1>------ Début de la génération : Projet : wmelite, Configuration : Release Win32 ------
1>Compilation en cours...
1>main.cpp
1>d:\atelier sentô\the coral cave\wme lite - julia fork\src\BSoundBuffer.h(32) : fatal error C1083: Impossible d'ouvrir le fichier include : 'bass_fx.h' : No such file or directory
1>Le journal de génération a été enregistré à l'emplacement "file://d:\Atelier Sentô\the coral cave\wme lite - JULIA fork\visualc\Release\BuildLog.htm"
1>wmelite - 1 erreur(s), 0 avertissement(s)
========== Génération : 0 a réussi, 1 a échoué, 0 mis à jour, 0 a été ignoré ==========

Sorry for the little bits of French in those lines.
Here is a translation of the 4th line:

Quote
1>d:\atelier sentô\the coral cave\wme lite - julia fork\src\BSoundBuffer.h(32) : fatal error C1083: Impossible to open the include file : 'bass_fx.h' : No such file or directory

Is there anything I can do?
Thank you!
« Last Edit: March 21, 2014, 09:42:46 AM by Atelier Sentô »
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: Screen resolution scale down
« Reply #8 on: March 22, 2014, 03:36:38 PM »

You need the dependencies (3rd party libraries used by WME Lite). You can get them here: https://bitbucket.org/MnemonicWME/wmelite/downloads
The instructions outlined HERE still apply, no matter if you use vanilla WME Lite or meta's fork.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

Atelier Sentô

  • Occasional poster
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 52
    • View Profile
    • Atelier Sentô
Re: Screen resolution scale down
« Reply #9 on: March 22, 2014, 06:45:22 PM »

Thank you for the answer, Mnemonic.
I followed those instructions but I probably made a mistake somewhere. I'll try again in a few days.
Logged

ciberspace

  • Regular poster
  • ***
  • Karma: 1
  • Offline Offline
  • Gender: Male
  • Posts: 116
    • View Profile
    • Tele Juego
Re: Screen resolution scale down
« Reply #10 on: March 24, 2014, 12:20:30 PM »

can be?

Q: Do I have to pay for WME Lite?
A: It depends. WME Lite itself is free, but it uses BASS library for sound, which requires that you buy a license if you are selling the game. You don't have to pay anything if you are releasing a freeware game.
http://forum.dead-code.org/index.php?topic=4774.0
http://res.dead-code.org/doku.php/wmelite:start

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: Screen resolution scale down
« Reply #11 on: March 24, 2014, 06:02:08 PM »

Bass library is included in the dependencies package.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

Atelier Sentô

  • Occasional poster
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 52
    • View Profile
    • Atelier Sentô
Re: Screen resolution scale down
« Reply #12 on: April 15, 2014, 12:25:33 PM »

There's a "fatal error" when I try to compile "wmelite-julia-branch".
Here is the message I get in Visual C++ 2008 Express :

Quote
1>------ Début de la génération : Projet : wmelite, Configuration : Release Win32 ------
1>Compilation en cours...
1>main.cpp
1>d:\atelier sentô\the coral cave\wme lite - julia fork\src\BSoundBuffer.h(32) : fatal error C1083: Impossible d'ouvrir le fichier include : 'bass_fx.h' : No such file or directory
1>Le journal de génération a été enregistré à l'emplacement "file://d:\Atelier Sentô\the coral cave\wme lite - JULIA fork\visualc\Release\BuildLog.htm"
1>wmelite - 1 erreur(s), 0 avertissement(s)
========== Génération : 0 a réussi, 1 a échoué, 0 mis à jour, 0 a été ignoré ==========

Sorry for the little bits of French in those lines.
Here is a translation of the 4th line:

Quote
1>d:\atelier sentô\the coral cave\wme lite - julia fork\src\BSoundBuffer.h(32) : fatal error C1083: Impossible to open the include file : 'bass_fx.h' : No such file or directory

I've tried again to compile metamorphium version of wmelite but I've encountered the same problem (explained on the quote above)
I've tried with the original wmelite and it worked fine.

Here is what I've done:

1- I copy the source files on a folder on my computer.
2- I download dep_visualc2008_september2013.zip and unpack it to visualc\dep directory
3- I open visualc\wmelite.sln in Visual C++ 2008 Express and compile.

But I get this error message again:

Quote
1>d:\atelier sentô\the coral cave\wme lite - julia fork\src\BSoundBuffer.h(32) : fatal error C1083: Impossible to open the include file : 'bass_fx.h' : No such file or directory

Any idea where the problem can be?
If not, it's not really important: I was just curious to try out Metamorphium's version.

Thank you for the help!
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: Screen resolution scale down
« Reply #13 on: April 15, 2014, 05:54:30 PM »

Ok, apparently bass_fx.h, which meta is using, is not part of the standard BASS distribution (I haven't noticed that before, sorry).
You will need to download it from the BASS Add-ons page: http://www.un4seen.com/bass.html#addons (look for BASS FX).
Then copy bass_fx.h to the dep\bass\include directory and bass_fx.lib to dep\bass\lib directory.

Vanilla WME Lite is not using this add-on, therefore these files are not included with the dependencies.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

Atelier Sentô

  • Occasional poster
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 52
    • View Profile
    • Atelier Sentô
Re: Screen resolution scale down
« Reply #14 on: April 15, 2014, 07:59:29 PM »

Wonderful!
It's working now.
Thank you a lot, Mnemonic.

I'll test it with my game tomorrow and come back if something strange occurs.

Many thanks again!
Logged
Pages: [1] 2 3  All
 

Page created in 0.053 seconds with 24 queries.