Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Rendering at 320x180px and point scaling up?

Is this possible, and how? I want to see sharp, big pixels on my display.

I know I could do this using a post effect shader, but I prefer to have performance extra.

Product Version: Not Selected
more ▼

asked Oct 08 '14 at 01:53 PM in Rendering

avatar image

36 1 3 5

(comments are locked)
10|2000 characters needed characters left

3 answers: sort voted first

Hey fusecore-

Currently the only way to use a Point Sampler is to go into the Shader code and change it to adjust to that form of sampling which is in the engine but because its use it not a commonly requested function is available only as a code change. Without code changes or the use of a post process material, the closest the engine can do is the adjustments mention by my colleague Doug below.

Thank You

Eric Ketchum

more ▼

answered Dec 02 '14 at 04:00 PM

avatar image

Lovecraft_K ♦♦ STAFF
36.8k 702 256 733

avatar image Douglas Lassance Dec 02 '14 at 10:02 PM

Thanks for the answer Eric. Could you give us some sort of starting guide on how we could access and edit that shader code? Maybe there is some reference online for this?

avatar image Lovecraft_K ♦♦ STAFF Dec 03 '14 at 04:44 PM

GitHub Source Engine Build and a working knowledge of High Level Shader Language for DirectX 10 and higher.

See my more detail response to your question here, https://answers.unrealengine.com/questions/140903/is-it-possible-to-make-a-custom-shading-model.html

Eric Ketchum

(comments are locked)
10|2000 characters needed characters left

You may want your resolution quality set to 100, otherwise certain vertical or horizontal lines of pixels may get missed or appear "filtered". Try this again with the following added command. It helped me get pixel perfect results.

sg.ResolutionQuality 100

r.ScreenPercentage 20

r.Upscale.Quality 0

more ▼

answered Jun 12 '16 at 08:09 PM

avatar image

112 3 8 7

(comments are locked)
10|2000 characters needed characters left

Hey fusecore-

Inside the editor preferences there is an option named Play under the Level Editor heading. In here you can modify your standalone and new window sizes. Hope this information helps get you further along.


Doug Wilson

more ▼

answered Oct 08 '14 at 03:46 PM

avatar image fusecore Oct 08 '14 at 08:08 PM

Unfortunately it doesn't help me, I did find the startup parameters to set fullscreen. But I need to set the upscaling filtering method to point instead of bilinear, where can I do this or what is the start up command for that?

avatar image Doug E ♦♦ STAFF Oct 10 '14 at 03:52 PM

In the console you can use the commands r.ScreenPercentage 25 and r.UpsampleQuality 0. (The 25% assumes you're running at 720p). For more information on the upsample options use "r.UpsampleQuality ?".

avatar image fusecore Oct 13 '14 at 07:15 AM

Unfortunately there is still filtering. There's sharp pixels now, but it's not what I want. If I compare it to a simple post effect pixel shader, that looks way better. Is there a setting to get that effect without rendering on full resolution and then degrading it?

avatar image Douglas Lassance Nov 24 '14 at 04:38 AM

I would like to know the answer to that question as well. How come the thread is marked as answered when it seems that fusecore is still looking for a solution? What we are trying to figure out is how to render at lower resolution image and stretch the result over screen without using any time of scaling filter like bilinear.

avatar image Doug E ♦♦ STAFF Nov 24 '14 at 03:37 PM

In the texture edit window you can you can search for "Filter" and edit the texture filter option. This should allow for smoother image display. You other option would be to edit the texture itself in another program such as Photoshop and set the resolution and size as desired then import back into the editor.


Doug Wilson

avatar image Douglas Lassance Nov 24 '14 at 09:34 PM

Thanks for your answer Doug, but I was talking about the images of the game rendered through the active view. Take a game like Teleglitch for example. It seems to me that these frames are low resolution 3D renders getting stretched without filtering in order to fill the screen. This is the effect I am trying to reproduce in Unreal Engine.

avatar image Doug E ♦♦ STAFF Nov 25 '14 at 10:30 PM

This is the result I'm getting when I use the commands listed above:

r.ScreenPercentage 25 alt text

r.ScreenPercentage 5alt text

The further you reduce the screen percentage the more pixelated the view will become. If you are looking for more pronounced pixelation you would need to edit the textures in another program such as photoshop.

avatar image Douglas Lassance Nov 25 '14 at 11:10 PM

Thanks for these screenshots Doug. Referencing my previous bilinear filtering image. You can see that the technique you are using to degrade or under sample your renders is currently using some filtering (bottom) instead of keeping the pixels sharp (top). I don't think editing anything in Photoshop would be a solution since we are looking for a runtime under sampling. I am not sure I understand why you seem to say that textures would be coming into play at that stage.

avatar image Doug E ♦♦ STAFF Nov 26 '14 at 03:14 PM

My understanding is is that you want a clear screen with pixelated objects. By combining the "r.ScreenPercentage 20" and "r.Upscale.Quality 0" commands I get an image like the one below:

alt text

If you are looking for more defined/pronounced pixelation then you would have to use the post processing effect. Unless your game is already performance intensive the performance cost of the post processing should be manageable.

pixelscreen.png (291.8 kB)
avatar image BONKERS Nov 30 '14 at 10:46 AM

It doesn't seem like you guys understand this person's intention. This person is simply wanting to render low resolution. And then instead of UPSAMPLING with a bilinear filter. They want THAT FILTER. To be a POINT FILTER instead. (Or Nearest Neighbor if you will).

How hard is that to understand? They don't just want a pixellated screen. But a change in the resampling filter used to upsample the image to any desired resolution. (Hope this doesn't come across insulting. Just trying to bluntly explain what he wants)

I'll illustrate with a comparison (Using the UE3 game Alien Fear) http://screenshotcomparison.com/comparison/102247

The 2nd example showcases Point upsampling. THIS is what this person wants. There really should be a choice in resampling filters for upsampling and downsampling! Choices are important for each person right? Personally I can't stand bilinear upsampling. It's something of a relic IMO.

avatar image Douglas Lassance Nov 30 '14 at 01:21 PM

Thanks BONKERS you get it. Now, is there actually an existing elegant solution for this or am I going to have to render high resolution images and then make a post shader effect that will only change color every n pixels to simulate the low resolution and the sharp pixels?

avatar image Mbre0 Apr 14 '15 at 02:03 PM

Blockquote is there any way to do this? (This person is simply wanting to render low resolution. And then instead of UPSAMPLING with a bilinear filter. They want THAT FILTER. To be a POINT FILTER instead. (Or Nearest Neighbor if you will).)

avatar image Douglas Lassance Dec 02 '14 at 02:19 AM

If anyone is interested in the post-processing solution for this effect check this video tutorial.

avatar image BONKERS Dec 02 '14 at 03:09 AM

Eh, honestly. This shouldn't be the solution you HAVE to turn to. Feels like a waste of rendering resources to have to render high resolution and use a shader to get a pixellated look from a shader.

How hard is it to simply code some changes into the source code right?

(comments are locked)
10|2000 characters needed characters left
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question