Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
forhk0423's avatar
forhk0423
Explorer
10 years ago

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.

1 Reply

Replies have been turned off for this discussion
  • "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()