I need to display an image to its actual pixels dimension, I found this old post in the forum:
I took the patch posted by u7angel and tried to simply change everything with dx11 nodes but it’s not working in the same way, I don’t understand why is it so. There are other nodes in dx11 for this purpose?
I like to use the approach bjoern suggested to the right.
It has quite some advantages I find …
While PixelBillboard will always enforce the actual size of the image, deriving the scaling from the Target Resolution yourself will keep everything in place in the correct ratio if you i.e. scale down your renderer while working (previewing a 4k output in a small window while keeping 16:9 aspect).
Other than that, while hidden Transform of PixelBillboard is not spreadable, the manual approach is.
Hi, i’m on the phone and can’t check any patch, so i may be out of topic…
But, just to know, if you are interested in a very raw way to display image pixels you could consider using the “Load” hlsl function instead of the “Sample” one to read data from the input texture.
You get Pixel coords using directly input.PosWVP coming from vertex shader.
…but i could be wrong, just going by memory…