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

newest Three.js compatibilty #61

Open
kid-wumeng opened this issue Feb 19, 2018 · 5 comments
Open

newest Three.js compatibilty #61

kid-wumeng opened this issue Feb 19, 2018 · 5 comments

Comments

@kid-wumeng
Copy link

kid-wumeng commented Feb 19, 2018

Hello, i'm use the three.js v0.90.0 and my node version is v8.9.3.

I can run the example's code successly and show the graph, but when i use three.js, it will happen error.

I try to find the question, at lease...

gl.MAX_VERTEX_UNIFORM_VECTORS
gl.MAX_VARYING_VECTORS
gl.MAX_VERTEX_ATTRIBS

three.js need the three attributes at init, and them is undefined.

I set them to a number temporarily, continue...

Then, the console tell me a new error:

THREE.WebGLProgram: shader error:  0 gl.VALIDATE_STATUS false gl.getProgramInfoLog ERROR: One or more attached shaders not successfully compiled ERROR: 0:52: 'highp' : syntax error: syntax error ERROR: 0:117: 'highp' : syntax error: syntax error

The README let us add the code in fragment shaders:

#ifdef GL_ES
precision highp float;
#endif

I don't know how to add it to the three.js, Is it related to this error?

The node-webgl is an amazing and valuable project, can you add an easy example to display how to run it with newest three.js ?

I hear you're busy in other issue, about this project, has a roadmap or plan ?
:)

@mikeseven
Copy link
Owner

mikeseven commented Feb 19, 2018 via email

@kid-wumeng
Copy link
Author

thank you very much !

@cedric-h
Copy link

cedric-h commented Jun 15, 2018

Were you ever able to find time to do the readme/example updates?
Just judging by timestamps it looks like maybe not but maybe I'm not reading correctly.
This sounds like a really useful tool, being able get more out of the GPU with JavaScript and three.js is a dream come true.
It does look like it's a bit difficult to get working, if you could find time to outline the process better in the README/examples that would be perfect
Thanks for making this!

@mikeseven
Copy link
Owner

oh sorry, I completely forgot. I put this issue on top my list for next week...gotta catch up with latest threejs.

@darkf
Copy link

darkf commented Nov 3, 2018

@mikeseven Any update on this? :)

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