Jump to content

Base64 not support anymore?! With lensflare & particles it was so handy :(


AlbertoBonn
 Share

Recommended Posts

This base64 string will not work anymore?!

particleSystem.particleTexture = new BABYLON.Texture('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAMAAAD04JH5AAAABGdBTUEAALGPC/xhBQAAAGBQTFRF//3I/+ak7axy/MWI///51JdhvYNRq3NFm2Y7jFozf1ArckYlZj0fWzUaUC4WRycSPyIPOB0MCgQBBQIAMRkKKxYIHA0EJhMHHw8FIhAGGQwEEAcCDgYBEwgCFgoDAAAA3wDZvgAAC9RJREFUeNrVW4mW4jgSdNdOHUAdUIABG7v//y/XyjNSksHUXLuiuguYnhehyENpKdX8/pdH839KYJ9ePqZP6ecfIiDQ3+mVfviX8vi7CTC2jGv4pSz+RgIAfv2+ZkN47B8k0Tw+9xIbWAiH5cZoHrA7oYfRyyABlJhy+CsJ1NB7htffPX3DTK4PUGgWwWfofWVc+QccYhmFZin8N0y8ykBYAIlFFJol4rvb5YiDvDIpHqDQLJh+BX2Q0cPfA/Iwf7zHoFk8/QI8jRF/9ZGFUfgxAYevgY+VF7PIKdwUoVkiv3pdhh0HsjAS9xk0C+ADegFcsgg63KPQLMQXC9+GZw4qgnIgCrMMmll8sH518l16yZjeZjqwDAsYNPPu5/i9W17RO8Tv5K3zMGfgZM0M9osJpPmj+mHy3e2R64COsJSAzp+cP4ifZooM2q6lUSfhIvB6WWXQ3MAvpg/ojCvw8sbNUTKY9YPmPv4wRO3bMM7xY6ECRkONQXMfnwVQcNc9gZ/pLyWR/lOMi/Q/92CFkkFJwONPQt+mn82cXjzkU+tEXASywzyDpsAnAcz/xf6gfUD20Z6RhISpGqHXcCwdsakGYPL/MP+R8Rm4RA80iEUugWpQMGgKA8j8K+YPwJfpB0b6DDwCBTbCUHfEJjdADECcfkuwCWtunC/8D5iCR4MxICvcIOD4pP8YzX8+59An/nMqiJwhJqMVCiM0ZQRCAAL+mfFPJ/q56Fv6Q0N4nE6RAaelYRydQT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Xyfc7/1PL17/icvve3j99OL5/8Lt+/8CrZMqBBd8zt8AAAAASUVORK5CYII=', scene);        

I start to solve it but no solution.?!.... :   

BABYLON.ParticleSystem.prototype.forceDepthWrite = false;

Have somebody an awnser?!

greetz Alberto

 

Link to comment
Share on other sites

I'd love to know, what is this thing 'iVBORw0KGgoAAA...', AlbertoBonn? It's like a code of 'png' image or something? Can you provide a link or something so I can learn stuff about it? Thanks :)

 

You just have to open the data url in your navigator to see the image. 

 

You can learn more about it here : https://developer.mozilla.org/en-US/docs/data_URIs

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...