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

Satellites not rendered on Chrome for Mac #18

Open
ajmas opened this issue Nov 15, 2017 · 9 comments
Open

Satellites not rendered on Chrome for Mac #18

ajmas opened this issue Nov 15, 2017 · 9 comments

Comments

@ajmas
Copy link

ajmas commented Nov 15, 2017

I am using Chrome 63.0.3239.40 on macOS 10.13.1 and the orbital object indicators aren't being rendered (the blue, red and grey dots). They work fine on iOS Safari and the Safari in macOS.

@jeyoder
Copy link
Owner

jeyoder commented Nov 15, 2017

Hi, could you post screenshots of http://webglreport.com/?v=1 for both Chrome and Safari?

@ajmas
Copy link
Author

ajmas commented Nov 15, 2017

Added. Also, http://webglreport.com/?v=2, just in case

webgl - chrome - webgl 1
webgl - chrome - webgl 1

webgl - chrome - webgl 2
webgl - chrome - webgl 2

webgl - safari - webgl 1
webgl - safari - webgl 1

webgl - safari - webgl 2
webgl - safari - webgl 2

@ajmas
Copy link
Author

ajmas commented Nov 15, 2017

Additionally, on a fork I have (https://ajmas.github.io/ThingsInSpace/), I noticed the following in the console:

Chrome:

script-loader.js:1705 WebGL: INVALID_ENUM: enable: invalid capability
webGlInit @ script-loader.js:1705
script-loader.js:911 earth init: 29 ms
script-loader.js:830 earth.js loaded nightearth
script-loader.js:1705 WebGL: INVALID_ENUM: enable: invalid capability
webGlInit @ script-loader.js:1705
script-loader.js:815 earth.js loaded texture
/favicon.ico Failed to load resource: the server responded with a status of 404 ()
script-loader.js:1189 sat.js downloaded data
script-loader.js:1237 sat.js init: 81 ms (incl post: 8.740000000000009 ms)
script-loader.js:581 orbitDisplay init: 449.60500000000025 ms
script-loader.js:319 groups init: 97.98999999999978 ms
sat-cruncher.js:46 sat-cruncher init: 4309 ms  (incl post: 299 ms)
script-loader.js:1143 sat.js copied extra data in 299.5799999999999 ms
script-loader.js:1705 WebGL: INVALID_ENUM: enable: invalid capability

Safari:

[Error] WebGL: INVALID_ENUM: enable: invalid capability
	enable
	webGlInit (script-loader.js:1705)
	(anonymous function) (script-loader.js:1507)
	j (jquery-2.1.3.min.js:2:26917)
	fireWith (jquery-2.1.3.min.js:2:27726)
	ready (jquery-2.1.3.min.js:2:29530)
	I (jquery-2.1.3.min.js:2:29715)
[Log] earth init: 53 ms (script-loader.js, line 911)
[Log] sat.js downloaded data (script-loader.js, line 1189)
[Log] sat.js init: 87 ms (incl post: 9.199999999999818 ms) (script-loader.js, line 1237)
[Log] orbitDisplay init: 710.3 ms (script-loader.js, line 581)
[Log] groups init: 104.59999999999991 ms (script-loader.js, line 319)
[Log] earth.js loaded texture (script-loader.js, line 815)
[Log] earth.js loaded nightearth (script-loader.js, line 830)
[Log] sat.js copied extra data in 188.29999999999927 ms (script-loader.js, line 1143)
[Log] sat-cruncher init: 3006 ms  (incl post: 435 ms) (sat-cruncher.js, line 46)

@jeyoder
Copy link
Owner

jeyoder commented Nov 15, 2017

Both browsers seem to be reporting the exact same WebGL capabilities, which is interesting. The dots are drawn using point sprites, for which support doesn't seem to be guaranteed.

@jeyoder
Copy link
Owner

jeyoder commented Nov 15, 2017

The INVALID_ENUM error is intentional, it's thrown on a line of code used to trick some older OpenGL implementations to enable point sprites.

@ajmas
Copy link
Author

ajmas commented Nov 15, 2017

Just looking for some examples of 'point sprites' that work in both browsers, I came across: https://codepen.io/AzazelN28/pen/zvXZQw I haven't dug into your code yet to see how the logic compares

@cantino
Copy link

cantino commented Jul 5, 2019

This is still broken on Chrome for Mac.

@jonecheverria
Copy link

in 2020 still broken on Chrome for Mac.

@ajmas
Copy link
Author

ajmas commented Sep 26, 2023

This is working in the latest version of Chrome (116.0.5845.187), on macOS. You can see it live here:

https://ajmas.github.io/StuffInSpace/

I have also tested this as working in Safari on an Intel based Mac, on both macOS 13 and and macOS 14.

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

No branches or pull requests

4 participants