BlackMojito Posted March 18, 2018 Share Posted March 18, 2018 I am new to the world of Web. And I am just curious if it is possible to load a texture inside a worker? Quote Link to comment Share on other sites More sharing options...
Guest Posted March 19, 2018 Share Posted March 19, 2018 Unfortunately the web workers cannot reach DOM or webgl content:( You can process data or texture content (as a byte array) but you cannot deal with the textures directly Quote Link to comment Share on other sites More sharing options...
Pryme8 Posted March 20, 2018 Share Posted March 20, 2018 Depends on what you mean by load a texture inside a worker. Do you want to obtain the data with the web worker then pass that back to the DOM, if so you can do it as an array like delta mentioned. If you are new to web conventions you should stay clear of webworkers for now. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.