Jump to content

Can textures be loaded in a web worker?


BlackMojito
 Share

Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...