Search Unity

  1. If you have experience with import & exporting custom (.unitypackage) packages, please help complete a survey (open until May 15, 2024).
    Dismiss Notice
  2. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice

Help implementing either of these two radial distortion shaders.

Discussion in 'Shaders' started by ateebrs, Jul 22, 2016.

  1. ateebrs

    ateebrs

    Joined:
    Jul 22, 2016
    Posts:
    1
    Hello,
    I'm working on an augmented reality project using the HTC Vive and I have recently learned about radial distortion. While looking into free solutions in the form of shaders to resolve this issue I came across http://http.developer.nvidia.com/GPUGems2/gpugems2_chapter40.html (Example 40-1) and http://willsteptoe.com/post/67401705548/ar-rift-aligning-tracking-and-video-spaces-part (image at the bottom of the screen).

    As this is my first time working with shaders, any help on how to implement either of these two would be greatly appreciated.

    Thank you in advance.

    Edit: https://github.com/googlevr/gvr-uni...ource/Shaders/SolidTextureUndistortion.shader
    also just found this shader
     
    Last edited: Jul 22, 2016
  2. bgolus

    bgolus

    Joined:
    Dec 7, 2012
    Posts:
    12,366