Loading assets as Data URI's Three.js

  • ranashoaib158
    Likes 0

    Problem Description

    Hi,

    I followed three.js tutorial and it really helped me alot.
    Now the problem I am facing is, I have to load assets as Data URI’s (convert them into base64 encoded strings) because I have the restriction of writing all the game logic in single html file without refernce to any external file or URL.

    Can you guide me here .


    Any help would be highly appreciated.

    Thanks​

  • Sonar Systems admin
    Likes 0

    What exactly is the problem?

  • ranashoaib158
    Likes 0

    The problem is I can’t laod textures as they were loaded in the tutorial. I need to convert them in base64 encoded strings.
    And I want your help on how to acheive that if possible

  • Sonar Systems admin
    Likes 0

    Why do they need to be encoded?

Login to reply