Trouble with screen resolution
Posted: November 20th, 2019, 7:53 am
I recently started to get into PSX development and I use the wonderfull NO$PSX emulator to test my iso files. However, I now started with the basic rendering.
I setup the display and draw enviroment like this:
And then I render a simple blue triangle, cutting the screen in half. Running my ISO with NO$PSX I get a resolution of 320x224px for some reason oO The scene itself is centered so the screen is not actually cut a half. I also tried the PSXeven emulator - there I get the right scene and a resolution of 320x240.
Is my NO$PSX configurated incorrectly?
I made screenshots of the output and attach them to this post.
I setup the display and draw enviroment like this:
Code: Select all
#define ScreenWidth 320
#define ScreenHeight 240
SetDefDrawEnv(&displayEnv[0].draw, 0, 0, ScreenWidth, ScreenHeight);
SetDefDrawEnv(&displayEnv[1].draw, 0, ScreenHeight, ScreenWidth, ScreenHeight);
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
SetDefDispEnv(&displayEnv[0].disp, 0, ScreenHeight, ScreenWidth, ScreenHeight);
SetDefDispEnv(&displayEnv[1].disp, 0, 0, ScreenWidth, ScreenHeight);
Is my NO$PSX configurated incorrectly?
I made screenshots of the output and attach them to this post.