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

Mobile Implementation : No issues IOS, silent err on Android. #23

Open
nacmonad opened this issue Jun 9, 2017 · 2 comments
Open

Mobile Implementation : No issues IOS, silent err on Android. #23

nacmonad opened this issue Jun 9, 2017 · 2 comments

Comments

@nacmonad
Copy link

nacmonad commented Jun 9, 2017

Hi I'm experimenting with WM in mobile browsers. No issues at all buildingshaders/running programs in IOS.

However, shaders on Android doesn't seem to execute, nor are any errors being thrown. Eg,

try {
        monkeys.set("nums", [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16]);
        monkeys.work(16, "nums(i) := nums(i)-nums(i);");
      } catch(e) {
        console.log("err workin the monkey")
        console.log(e)
      }

Works on laptops/IOS (returns
[-5.960464477539063e-8,-5.960464477539063e-8,-5.960464477539063e-8,-5.960464477539063e-8,-5.960464477539063e-8,-5.960464477539063e-8,-5.960464477539063e-8,-5.960464477539063e-8,-5.960464477539063e-8,-5.960464477539063e-8,-5.960464477539063e-8,-5.960464477539063e-8,-5.960464477539063e-8,-5.960464477539063e-8,-5.960464477539063e-8,-5.960464477539063e-8] )

but in Android it returns the array nums as [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16]. It's as if the shader compiles with errors, but the operation doesn't execute, or properly write to the memory/array. I wish I knew much more about this...

Using the google chrome browser, even went into the chrome://flags to enable any pertinent webgl options.

Any clue where the problem may be?? The program is not throwing any errors in teh try/catch block :|

@nacmonad
Copy link
Author

doesn't work on all ios devices (chrome browser)
using http://webglreport.com/ to find out what features are required for webmonkeys in the meantime

@quaxquax
Copy link

FWIW I have no issues on my iPhone 5S with an older version of iOS. The chrome browser reported the attached specs with webglreport.com:

WebGL Browser Report - WebGL Fingerprinting - WebGL 2 Test - BrowserLeaks.com.pdf

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

2 participants