It sort of looks like you are attempting to use a cylinder type image with the spherical projection ptviewer.jar.
You can use ptviewer.jar to display cylinders but not with the above code set. It requires a slightly different viewer code + maybe using the larger 51kb version of ptviewer.jar. Somewhere I read that ptviewer.jar version 2.5 or 2.6 incorporates ptFlat.class.
We don't take cylinders normally, and thats why I am fussing around with the answer here.
------------- /s/
Dave
Forum Moderator for
EasyPano - Panoweaver
Pano2VR
try this code. You will need to change the values for the height and width. Notice the panmax and panmin means left and right side of the image limitation is only 170 degrees and not 180 for full 360 image. Also notice the applet is called ptviewer25big.jar. All that is saying is you need to use the ptviewer.jar version 2.5 which is the big version at 51kb and not the small 24kb version. Change the ptviewer.jar name in the code to match the actual file name of the .jar. BOTH code strings for pano0 and pano1 must be used in order to make it work. The reference to the applet0 and code=ptflat.class only a call to the 51kb ptviewer.jar ... to use ptflat.class which is bundled inside the 51kb applet. It is not another file on the server.