Amerio.Stephane Posted June 11, 2020 Share Posted June 11, 2020 Hello, I'd like to know the currently used equation for "Fisheye Panorama 360". When capturing an image from inside a latitude/longitude sphere, with parallels every 10°, I get this image: As you can see, the width of the 10° bands are not all the same. Is there a way to generate an image where all bands would have the same width, like so: (actually, the final image will be cropped to 220° to match a real-life camera that has these geometric optical properties) Thanks! Link to comment
morbid Posted June 15, 2020 Share Posted June 15, 2020 Hello Stephane, This code is available in the panorama shaders: data\core\shaders\panorama. Engine generates a cubemap that is being warped by the 360 degrees shader. Could please check these sources? Thank you. How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN Link to comment
Amerio.Stephane Posted June 15, 2020 Author Share Posted June 15, 2020 That's great, I'll take a deep look! Is it possible to add our custom panorama mode this way? or does it mean our implementation must replace one of the existing ones? And should I just place the new shader in <project>\data\core\shaders\panorama, or is there something else to do? (sorry if I missed the doc about this, you can point me to it) Thanks! Link to comment
morbid Posted June 15, 2020 Share Posted June 15, 2020 I think the easiest way is to modify existing shaders. Thus, you'll get custom panorama modes that can be activated with default engine commands (render_panorama). Panorama was considered as a ready to use feature, but recently we got feedback for the customization needs. I guess it can be described in an additional docs section. Thanks. How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN Link to comment
Recommended Posts