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

Headless Without binary bindings? #148

Closed
adminy opened this issue Mar 22, 2019 · 4 comments
Closed

Headless Without binary bindings? #148

adminy opened this issue Mar 22, 2019 · 4 comments

Comments

@adminy
Copy link

adminy commented Mar 22, 2019

Can this run without any bindings or dependencies?

I am trying to run it on an independent platform which has just vanilla js without node or browser sugars.

How tied is this to ANGLE ? I got just a buffer in the graphics card which I could write to,
could I use gl features with just that? Thanks.

@dhritzkiv
Copy link
Member

headless-gl is very tied to nodejs and Angle as bindings are required to communicate with your gl driver/implementation.

Unfortunately, I can’t think of a way you could use gl with js, that doesn’t involve the node runtime or a browser.

@adminy
Copy link
Author

adminy commented Mar 23, 2019

@dhritzkiv I think I found my solution, TinyGL, It converts the webGL buffer to a typed array, which is exactly what I was looking for. I just have to strip canvas context-2d from the project.

@adminy adminy closed this as completed Mar 23, 2019
@adminy
Copy link
Author

adminy commented Mar 24, 2019

@dhritzkiv with this project is it possible to at least make it platform independent so you can manually specify driver in your code instead of the npm module? Like in the fatfs node module example where the block driver is passed to the npm module’s api by the user?

Also instead of a .node file can it be a minified js file?

@dhritzkiv
Copy link
Member

@adminy Making this library platform independent is a massive undertaking. It was already difficult to integrate many parts of angle.

Please see this issue: #116
Please also check out Google's node-gles which is more actively developed, but is probably not what you're looking for, either.


It cannot be just a minified js file as bindings to native binaries are required (achieved through .node)

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