Jump to content

320 x 240 resolution


Red_Seeds_Profile
 Share

Recommended Posts

Hey,

 

I want to use the visual style of the original PSX and N64 games. The standard then was fullscreen 320 x 240. The lowest I've gotten to work in Leadwerks is 640 x 480. Is there a way to force lower resolutions, or will I need to employ some kind of function that redraws the frames? Maybe that function already exists?

Thanks!

 

 

Austin

Link to comment
Share on other sites

Superquick mockup (will add to the pack in the ws aswell):

 

#version 400

uniform sampler2D texture1;
uniform bool isbackbuffer;
uniform vec2 buffersize;

out vec4 fragData0;

const int downgrade = 6; //at original 1920x1080, 6 yields  320x180
void main(void)
{
    vec4 modula = mod(gl_FragCoord, downgrade);
   vec2 newCoords = vec2(gl_FragCoord - modula) / buffersize.xy;
   if (isbackbuffer) newCoords.y = 1.0 - newCoords.y;
   fragData0 = texture(texture1, newCoords);
}

HP Omen - 16GB - i7 - Nvidia GTX 1060 6GB

Link to comment
Share on other sites

havent tried that in the app.lua? taught you can put in there any reslution

 

I tried plugging in different resolutions and the lowest I got working was 640 x 480. For 320 x 240, the screen flickered a couple times, but no dice.

 

I think this has more to do with the gfx card than LE.

 

You're probably right. I had the same problem with Unity. It was my understanding talking to other Unity users that 640 x 480 was the lowest supported display, so I figured it might be the same situation here.

 

Thank you everyone for your help. I will try some more. Shadmar, if you put together something, that would be so awesome. I'm a coding novice. Most people I know think that that low of a resolution is terrible, but I love it. I generally adjust display settings to get the most pixelation.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...