Need help with loading of an equirect image

Skip to first unread message

Jan Vrsinsky

Sep 21, 2012, 5:29:16 AM9/21/12
Hi Tom

I gave Panini PRO a try, thanks for the tip. The UI seems like I'll have a lot of fun using it.

The trouble is, however, that I can't make it work right at the moment. When I load my equiect pano it first doesn't appear at all but when I rotate it so it's visible in the "viewport" it appears distorted. Screenshot attached.

Any ideas what might be wrong? Did I miss something during the installation? Or do I need to configure something somewhere? The source image for the pano itself is a nice equirectangular 10000x5000 jpeg file (a church in Iceland).

Steps to reproduce
- launch Panini PRO beta 5 (October 12, 2011 version)
- drag an equirect to the app screen
- with a mouse rotate the view so the distorted image is visible 

Screen Shot 2012-09-21 at 11.20.59 AM.png

Tom Sharpless

Sep 21, 2012, 10:23:35 AM9/21/12
Hi Jan

Chances are your Mac is an old one that does not handle large textures well.  P-P, along with other OpenGL programs that try to use large textures, has problems on versions of OSX prior to 10.6.  P-P has adjustable texture size limits that can be set to make it work on almost any platform; but it can't set them automatically.  So try this:

Start P-P and click ? then 'tune image size limits'.  Click 'test' next to the cube face limit and see what happens.  P-P will try to display the test cube image at the specified size.   If the cube face limit is too high you will see an incorrect display and/or get an error message about 'incomplete frame buffer'.  If so, reduce the limit and try again (however you may have to restart the program first,  to get rid of bad OpenGL state).  Once you you get a proper cube display, click 'test' next to the flat size % box, and proceed similarly -- this shows the front face of the test cube as a flat texture, which is how P-P shows equirects at present.  When the flat test works, your equirect should display right.

Unfortunately this workaround also limits the resolution of saved views.  Unlike Panini, Panini-Pro saves at the full resolution of the loaded texture, independent of window size.  But it does not yet process images tile-wise, which eventually will allow saving at full source resolution regardless of system limits on texture size.

I see from the screen shot that P-P reduced your image to 12 Mpix, so the cube face limit is already only about 2450.   On recent platforms with decent video cards, the limit should be around 3250 (63.5 Mpix) and it can be 4000  or more, approaching 100 Mpix, on a 'gaming' machine.  But ultimately I must make P-P handle hardware limitations automatically without any such kluges.

-- Tom

Jan Vrsinsky

Sep 21, 2012, 11:34:02 AM9/21/12
Hi Tom

My Mac is a MacBook PRO mid-2009.

I didn't realize that the computation was done on the GPU and doesn't support tiles so it limits the resolution this way (and gives errors). I understand that it's a beta and not everything is polished so that's fine.

I'll try on my gaming (err... rendering :) machine.

Thanks for explaining the tuning! That was helpful.

Reply all
Reply to author
0 new messages