Page 1 of 1

Increasing 2D screen space

Posted: Sat Apr 14, 2012 3:22 am
by Korax
I've been looking through the wiki and searching the forums for an answer to this, but I'm not exactly sure what to search for regarding this. I'm still new to ZDoom.
What I'm planning on doing to to create a completely new game using ZDoom, based upon the Hexen branch of the code.

My artist will soon be done with his current game project and in the meantime I need to get a few things tested.
Currently I'm looking at all aspects of getting more resolution/definition on the asset side of things. I've done some reading up on how to get higher-rez textures into ZDoom.
I've tested out TITLEPIC and the other screens that work the same way by replacing them with 640x400 images in PNG format. It works really well.

Now I'm stuck with testing the more dynamic stuff like the status bar (easiest test I guess) and I'm sure this will relate to the rest of the menu system.
But for now I'm looking at a basic statusbar test, even if the other parts of the 2D rendering messes-up (I'll get to fix that later-on)

My question is this:
Currently it seems asif ZDoom uses 320x200 pixels/screen space (for a lack of a better word on my part).
Is there a way to double it up to 640x400?

In my test I've extracted the statbar lump to PNG and with photoshop doubled the image size.
To keep things looking the same I've used the nearest filter, but how it looks like isn't important.
With the modified statbar it renders at double the size and off the screen.

Basically what I would like to test out is if its possible to add more pixels to any given area in 2D to have our game's statbar look less blocky once we redo the statbar image.
We would like to get the 2D area for anything that renders in 2D be rendered at 640 rather than 320.

Is there a way to do that?

Re: Increasing 2D screen space

Posted: Sat Apr 14, 2012 4:09 am
by Korax
I've found it.
I had to add "Resolution <x>, <y>" to the sbarinfo text for Hexen.
Obviously I have to redo the offsets, but thats ok.

Will I be able to do something similar to all other areas, like font rendering, menu rendering etc?
Basically I want to increase the amount of pixels to add more definition to anything that renders in 2D, be that menus, fonts, whatever; without making them look bigger.