Forum Discussion
JMF
11 years agoHonored Guest
Barrel distortion NEW SOLUTION MADE!!!
I would like to point out main disadvantages of current barrel distortion solution know as "pixel mapping": • Black borders around image (21% of screen is not in use) • higher resolution (than scr...
JMF
11 years agoHonored Guest
"bluenote" wrote:"JMF" wrote:
You are missing the hole thing. This "moving Focal point" method is not a ray-tracing thing, its more like dividing the screen in tiny rings and using different camera settings for each.
But how do you want to do that on fragment level? Typically you convert from world coordinates to clip coordinates in the vertex shader and the fragment shader just loops over all pixels of each triangle. Using a different focal point per pixel means that you can no longer just transform the vertices of a triangle globally. And varying the focal point does not result in an affine transformation, so there is not straightforward way to do that with rasterization. There is actually a paper which (iirc) also approaches distortion on the transformation level (so it is similar to your varying focal point) and tries to solve the issues of the non-affine transformation by GPU based tesselation (better read it, I'm not sure if I remember that correctly).
You pointed right thing. This method would work only in ray tracing :(
But I found interesting publication on this site
Here are some pics


Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 1 month ago