x

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"

Controlling Per Pixel Rasterization

How would a dev go about controlling rasterization?

Specifically, can I skip a pixel or a whole line across the screen from rasterization? This is specifically for better performance (rendering less than "1080p" in a "1080p" frame, or w/e resolution).

Thanks in advanced for any responses! :)

Product Version: UE 4.16
Tags:
more ▼

asked Jun 11 '17 at 01:00 PM in Rendering

avatar image

chronohax
1 1 2

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

You can get this effect by using a masked material and then using ScreenPosition to check at what pixel fragment is. If it is inside this band of pixels you dont want, then set the opacity to 0 and it will be removed from the render.

HTH

more ▼

answered Jun 11 '17 at 01:17 PM

avatar image

NoobsDeSroobs
2.7k 107 35 180

avatar image chronohax Jun 11 '17 at 06:47 PM

masking a material in this fashion would degrade performance.

I should have stated this is for performance reasons. Thank you for the answer though!

avatar image NoobsDeSroobs Jun 12 '17 at 12:12 PM

Then the only answer left is to preset the depth buffer to 0 on the pixels you dont care about. Still, I am not so sure that the performance loss of using a masked material vs using a non-masked material is that great, but GL.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
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