Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when rendering the panorama #3

Open
NielsPilon opened this issue Nov 21, 2012 · 14 comments
Open

Error when rendering the panorama #3

NielsPilon opened this issue Nov 21, 2012 · 14 comments

Comments

@NielsPilon
Copy link

Hi,

I'm trying to add the panorama to a website based on the example that you've provided.

Added all the files and the script to the page but I get an error when creating the panorama after clicking on the link. This is the error that I see in the console WebGL: INVALID_VALUE: texImage2D: width or height out of range

The image for the panorama is 2580 x 1594px. Is that too big or is there something else that causes this error?

Any help would be appreciated.

@kennydude
Copy link
Owner

It must be a photosphere. if you can send me the original file via dropbox
or something I can check
On 21 Nov 2012 20:12, "NielsPilon" [email protected] wrote:

Hi,

I'm trying to add the panorama to a website based on the example that
you've provided.

Added all the files and the script to the page but I get an error when
creating the panorama after clicking on the link. This is the error that I
see in the console WebGL: INVALID_VALUE: texImage2D: width or height out of
range

The image for the panorama is 2580 x 1594px. Is that too big or is there
something else that causes this error?

Any help would be appreciated.


Reply to this email directly or view it on GitHubhttps://github.com//issues/3.

@NielsPilon
Copy link
Author

Sure, how can I mail you? I'm completely new to GitHub....

Update: here's the link to the image https://www.dropbox.com/s/07hu3odz5lpq16x/PANO_20121121_101522.jpg

@kennydude
Copy link
Owner

Does this one work for you? http://kennydude.github.com/photosphere/test.html

If not what web browser/os are you using?

@NielsPilon
Copy link
Author

Yes the demo works, I'm using OSX 10.8 and Chrome. The demo also works in Firefox but not in Safari.

@kennydude
Copy link
Owner

In Safari it should, which is really odd. It could be something to do with three.js but I'm not sure

@NielsPilon
Copy link
Author

No, Safari shows a really broken image of the demo full of artifacts and it impossible to rotate the image. Or Safari just crashes..

@kennydude
Copy link
Owner

Hm, what version is that? i'll try to backlist it

On 21 November 2012 21:06, NielsPilon [email protected] wrote:

No, Safari shows a really broken image of the demo full of artifacts and
it impossible to rotate the image. Or Safari just crashes..


Reply to this email directly or view it on GitHubhttps://github.com//issues/3#issuecomment-10614318.

@NielsPilon
Copy link
Author

Safari 6.

@ghost
Copy link

ghost commented Jan 1, 2013

same error for me on chrome23 on osx, safari6 and firefox17 works, demo works everywhere.

edit: chrome23 on windows7 works too.

@Steltek
Copy link

Steltek commented Jan 27, 2013

I keep getting this in Firefox Nightly (21.0a1 (2013-01-26)), no matter if I resize the original picture or not:

[15:18:15.063]({full_width:"4166", full_height:"2083", crop_width:"4166", crop_height:"1169", x:"0", y:"144"})

[15:18:21.376] true
[15:18:21.379] THREE.WebGLRenderer 52
[15:18:22.457] Error: WebGL: texImage2D: the maximum texture size for level 0 is 4096 @ http://tcnnet.com/pano/extern/three.min.js.pagespeed.jm.RPbJs7JNbl.js:8

Original file:
http://tcnnet.com/pano/pano.jpg

The stest.jpg file works fine however.

P.S. The file works on another computer with NVIDIA GeForce 8800 GTX cards with Firefox 19.0. The failing PC has an Intel G45 onboard chipset.

P.P.S.: This sounds familiar: http://stackoverflow.com/questions/14414568/teximage2d-width-or-height-out-of-range-chrome-24

@kennydude
Copy link
Owner

Can you see if the issue is still persistent with the latest version?

@petehalverson
Copy link

I'm seeing the same issue on the latest version. Console output:

Object {full_width: "4286", full_height: "2143", crop_width: "4286", crop_height: "1664", x: "0"…}
crop_height: "1664"
crop_width: "4286"
full_height: "2143"
full_width: "4286"
x: "0"
y: "222"

true sphere.js:118
THREE.WebGLRenderer 58 three.min.js:408
WebGL: INVALID_VALUE: texImage2D: width or height out of range

(OS X 10.8.3 - Chrome 27.0.1453.110 - MBPr)

@elafargue
Copy link

Just sent a pull request that fixes this, FYI.

@noamtcohen
Copy link

@elafargue works for me, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants