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

trying out headless-gl [DO NOT MERGE] #964

Closed
wants to merge 3 commits into from
Closed

Conversation

tech4GT
Copy link
Member

@tech4GT tech4GT commented Mar 31, 2019

Signed-off-by: tech4GT <varun.gupta1798@gmail.com>
@jywarren
Copy link
Member

jywarren commented Apr 1, 2019 via email

@tech4GT
Copy link
Member Author

tech4GT commented Apr 1, 2019

Hi @jywarren I think we might need to re-write a lot of the code for this to work, at which point it only makes sense to separate the node and browser code for gl based modules.
Can you list some basic functions which I can try and implement from scratch using the 'gl' module.

@tech4GT
Copy link
Member Author

tech4GT commented Apr 1, 2019

Okay so I have narrowed done the current issue, it lies with the gl.texImage2D() function, it is not loading the image into gl properly

@jywarren
Copy link
Member

jywarren commented Apr 1, 2019

Let's not give up and do a big refactor just yet... if you do want a simple WebGL demo to try, you could look at:

You could also potentially search the headless-gl repo for texImage2D - @Divy123 already posted on this but there's evidence that the function does exist: https://github.com/stackgl/headless-gl/search?q=texImage2D&type=Issues

@jywarren
Copy link
Member

jywarren commented Apr 1, 2019

Noted links in @Divy123's issue here: stackgl/headless-gl#143

@tech4GT
Copy link
Member Author

tech4GT commented Apr 1, 2019

@jywarren SO the official documentation says we can just drop a Uint8 array image data and it should work, but that clearly is not working since that is generating a type error. One of the accepted types was ImageData which I am using but the pixels in gl just remain the same even after running texImage2D

@tech4GT
Copy link
Member Author

tech4GT commented Apr 1, 2019

The documentation does say there is no explicit support for this.

@tech4GT
Copy link
Member Author

tech4GT commented Apr 1, 2019

@jywarren
Copy link
Member

jywarren commented Apr 1, 2019 via email

Signed-off-by: tech4GT <varun.gupta1798@gmail.com>
@tech4GT
Copy link
Member Author

tech4GT commented Apr 1, 2019

@jywarren Yeah! I also tried it the way they mentioned here https://github.com/stackgl/headless-gl/pull/53/files#diff-c24e210c8552e30550810a8b75aa1cdaR101
This is also not working, all I am getting is a black image.

Signed-off-by: tech4GT <varun.gupta1798@gmail.com>
@tech4GT
Copy link
Member Author

tech4GT commented Apr 1, 2019

@jywarren Should I open an issue over at their repository or would you?? 😄

@jywarren
Copy link
Member

jywarren commented Apr 1, 2019

If you could, that'd be great! Link back here please? Thank you!

@harshkhandeparkar
Copy link
Member

We use pupeteer now. Also this solution is not very good. We'll have to do something new. I will try to figure something out.

@jywarren jywarren changed the title trying this out [DO NOT MERGE] trying out headless-gl [DO NOT MERGE] Sep 25, 2020
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

Successfully merging this pull request may close these issues.

3 participants