Skip to main content
Participant
February 1, 2016

How to render a fisheye image to a dome?

Currently we use openCV to map a fisheye image to a rectangular one before sending it to Unity,it turns out to be good when render rectangular image to the dome. Now I am wondering is there any way to do this process in Unity ? Or we do not change the fisheye texture,but only change the way when it renders ? Hope your suggestions.
    This topic has been closed for replies.

    1 reply

    Up and Coming
    February 15, 2016
    "rendering it to a dome" will vary a lot depending on the lens, (field of view, shape ofthe dome etc)

    But to start with, maybe you just want to undistort the fisheye distortion and then go onto the next step (then later, you can do the undistortion in one shader)


    Here is a pixel shader which does a fish-eye undistort (the re-distortion is actually broken, but that won't matter here)
    https://github.com/SoylentGraham/PopUni ... ion.shader

    I think you can apply this straight to a material, but normally I use it with graphics.blit()