Author Topic: "normal" video mode is at 2x  (Read 6599 times)

0 Members and 1 Guest are viewing this topic.

wizard_wizzle (aka ZeldaHistorian)
  • Sr. Member
  • ****
  • Posts: 263
    • View Profile
"normal" video mode is at 2x
« on: June 02, 2017, 04:31:33 AM »
It appears, and the API confirms, that the "normal" video mode actually stretches the image by a factor of 2. Is it possible to just have the game run un-stretched? If there's not currently, I really think this should be added as a feature soon. Currently it would be pretty much impossible to use higher resolution resources when making games.

Christopho

  • Administrator
  • Hero Member
  • *****
  • Posts: 1194
    • View Profile
Re: "normal" video mode is at 2x
« Reply #1 on: June 02, 2017, 09:50:39 AM »
The x2 window scaling is just the default size of the normal video mode. You can always change that by calling sol.video.set_window_size().

wizard_wizzle (aka ZeldaHistorian)
  • Sr. Member
  • ****
  • Posts: 263
    • View Profile
Re: "normal" video mode is at 2x
« Reply #2 on: June 03, 2017, 06:36:31 PM »
Maybe I'm doing something wrong, but it seems to scale for me no matter what I set the window size at. If I compare the game window to the editor map window at 100% zoom, I would expect them to look the same - but they don't and the game window is zoomed in compared to the editor.

Christopho

  • Administrator
  • Hero Member
  • *****
  • Posts: 1194
    • View Profile
Re: "normal" video mode is at 2x
« Reply #3 on: June 03, 2017, 07:23:01 PM »
If you call sol.video.set_window_size(320, 240), it should work.

wizard_wizzle (aka ZeldaHistorian)
  • Sr. Member
  • ****
  • Posts: 263
    • View Profile
Re: "normal" video mode is at 2x
« Reply #4 on: June 04, 2017, 04:47:17 PM »
Ok, I think I'm asking the wrong question. I can set the window size correctly with that call, but it basically scales the same viewport up or down to fit the window size. If I have a bigger window size, I want a bigger viewport as well- is this possible? For example, setting the window size at 320x240 works - but when I set the window to 640x480 instead, I want to see twice as many tiles not the same tiles at twice the size.

MetalZelda

  • Hero Member
  • *****
  • Posts: 551
    • View Profile
Re: "normal" video mode is at 2x
« Reply #5 on: June 04, 2017, 06:31:40 PM »
You are asking to have a wider view when resizing ? Not just a rescaling


https://github.com/solarus-games/solarus/issues/1027
 
You does already requested this

https://github.com/solarus-games/solarus/issues/1052

Something like this ?
https://www.youtube.com/watch?v=4617ygC6f88


llamazing

  • Full Member
  • ***
  • Posts: 220
    • View Profile
Re: "normal" video mode is at 2x
« Reply #6 on: June 04, 2017, 07:19:36 PM »
Ok, I think I'm asking the wrong question. I can set the window size correctly with that call, but it basically scales the same viewport up or down to fit the window size. If I have a bigger window size, I want a bigger viewport as well- is this possible? For example, setting the window size at 320x240 works - but when I set the window to 640x480 instead, I want to see twice as many tiles not the same tiles at twice the size.

In the quest properties you'll want to specify a normal quest size and minimum quest size of 640x480 and at least 640x480 for maximum quest size. That will default to a window 2x the size you want (1280x960), but then you can set it to the correct size with sol.video.set_window_size(640, 480).

wizard_wizzle (aka ZeldaHistorian)
  • Sr. Member
  • ****
  • Posts: 263
    • View Profile
Re: "normal" video mode is at 2x
« Reply #7 on: June 05, 2017, 02:19:39 AM »
Yes, MetalZelda, I don't want it to scale at all. I want to set the window size and that's what's shown. llamazing, that doesn't appear to work for sizes any bigger than 640x480 - no matter what size I set the window to, I see the same content.

Christopho

  • Administrator
  • Hero Member
  • *****
  • Posts: 1194
    • View Profile
Re: "normal" video mode is at 2x
« Reply #8 on: June 05, 2017, 09:22:20 AM »
Then it must be a bug.

wizard_wizzle (aka ZeldaHistorian)
  • Sr. Member
  • ****
  • Posts: 263
    • View Profile
Re: "normal" video mode is at 2x
« Reply #9 on: June 06, 2017, 02:45:35 PM »
That's what I was thinking too, I was just hoping someone else would give it a try before I called fowl :)