pixelated graphics on Monkey sland 3 and Broken Swords

Subforum for discussion and help with ScummVM's iPhone port

Moderator: ScummVM Team

jamesson
Posts: 15
Joined: Tue Jul 27, 2010 1:07 pm

Post by jamesson » Thu Jul 29, 2010 1:21 pm

is this simple? is only necessary to change one line of code? how can I do that?

jamesson
Posts: 15
Joined: Tue Jul 27, 2010 1:07 pm

Post by jamesson » Sat Jul 31, 2010 3:23 pm

The current model of downscale, new games with 640x480 resolution are pixelated on the iPhone. Why the old games, with lower resolution, are not pixelated when shown the virtual keyboard? is also not done a downscale to fit in tele vertically?

Bluddy
ScummVM Developer
Posts: 139
Joined: Sun Nov 18, 2007 8:43 am

Post by Bluddy » Sun Aug 01, 2010 7:17 am

Actually the older games don't need to be downscaled. Old game resolution is 320x240 or 320x200. The iPhone resolution (pre-4.0) is 320x480, which means that if you divide the screen in 2 (as it is when you hold the phone vertically) the game fits perfectly though it seems small.

I committed the change and it should hopefully fix the issue as of the next Subversion build.

User avatar
Vinterstum
ScummVM Developer
Posts: 585
Joined: Sun Oct 16, 2005 6:59 am

Post by Vinterstum » Sun Aug 01, 2010 8:03 pm

Bluddy wrote:The problem is here

iphone_video.m:
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);

It needs to be changed to GL_LINEAR
Good catch, in my mind GL_TEXTURE_MAG_FILTER was the applicable one here and not GL_TEXTURE_MIN_FILTER.

jamesson
Posts: 15
Joined: Tue Jul 27, 2010 1:07 pm

Post by jamesson » Mon Aug 02, 2010 1:06 pm

where can I change this? where I put this in code? Which file do I change? I'm lost!

jonrico
Posts: 5
Joined: Thu Sep 18, 2008 4:41 pm

Post by jonrico » Mon Aug 02, 2010 6:57 pm

Thanks for the change - that does indeed fix the problem for Curse of Monkey Island on an iPhone4 running OS4.0.1.

I ran the nightly build for the iPhone from Aug 2nd and it has much nicer looking text than 1.1.1.

Sadly this build did not run Monkey Island 2, Day of the tentacle or Sam and Max, but 1.1.1 does. This build does run Full Throttle and Monkey 3 fine, as well as Monkey 1 fine.

So I have ended up with two ScummVM files in the ScummVM app folder for now and I am running 1.1.1 if I feel the need to play something other than Monkey 3.

:)

All just FYI

fingolfin
Retired
Posts: 1466
Joined: Wed Sep 21, 2005 4:12 pm

Post by fingolfin » Mon Aug 02, 2010 9:28 pm

MI2, Sam and DOTT don't run? Hum, that sounds like a pretty bad regression. If that persists in current daily builds, please file a bug report / bug reports.

User avatar
Vinterstum
ScummVM Developer
Posts: 585
Joined: Sun Oct 16, 2005 6:59 am

Post by Vinterstum » Mon Aug 09, 2010 6:01 pm

fingolfin wrote:MI2, Sam and DOTT don't run? Hum, that sounds like a pretty bad regression. If that persists in current daily builds, please file a bug report / bug reports.
WARNING: TiMidity: connect(): Connection refused!
WARNING: TiMidity: can't open control connection (host=127.0.0.1, port=7777)!
IMuse initialization - Unknown Error!
User picked target 'monkey2' (gameid 'monkey2')...
Looking for a plugin supporting this gameid... SCUMM Engine [all games]
Starting 'Monkey Island 2: LeChuck's Revenge'
Looks like Timidity is now the default audio device. Commit 51366?

Edit: Jonrico, a temporary workaround here is to specifically set "AdLib Emulator" as the default audio device.

jonrico
Posts: 5
Joined: Thu Sep 18, 2008 4:41 pm

Post by jonrico » Sat Aug 21, 2010 11:33 am

I just saw the update to your post - thanks a lot Vinterstum that has fixed my SVN build and I can play all games without swapping file data about!

jamesson
Posts: 15
Joined: Tue Jul 27, 2010 1:07 pm

Post by jamesson » Tue Aug 24, 2010 2:54 pm

Vinterstum wrote:
Bluddy wrote:The problem is here

iphone_video.m:
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);

It needs to be changed to GL_LINEAR
Good catch, in my mind GL_TEXTURE_MAG_FILTER was the applicable one here and not GL_TEXTURE_MIN_FILTER.
How can I do this?
where I find this to change the code?
I don't know nothing of programming for ScummVM

Post Reply