Jump to content

How can I create a cube texture from base64 string?


Vorion
 Share

Recommended Posts

Hi,

I've been trying to create a cube texture by using the url of texture objects created from a base64 string, but that doesn't seem to be working.

Here's a playground example:

https://www.babylonjs-playground.com/index.html#IH5G0H#2

Is there another way to create a cube texture, if all 6 textures have been created from a base64 string?

Thanks.

EDIT: Solved it myself, you can just use the base64 string instead of the textures url.

https://www.babylonjs-playground.com/index.html#IH5G0H#3

Edited by Vorion
Solved
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...