Forum Discussion
forhk0423
10 years agoExplorer
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
- SoylentGrahamExplorer"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()
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
- 11 months ago
- 5 months ago
- 2 years ago
- 3 years ago