Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Data URI's and/or Dynamic Textures #36

Open
psema4 opened this issue Jan 4, 2015 · 0 comments
Open

Data URI's and/or Dynamic Textures #36

psema4 opened this issue Jan 4, 2015 · 0 comments
Milestone

Comments

@psema4
Copy link

psema4 commented Jan 4, 2015

Is it possible to use Data URI's (or similar) to generate textures from canvas elements? If yes, would it be possible to see some sample code showing how to do this?

I'm working on a (proof-of-concept) glam-powered editor at http://projects.psema4.com/glam/3de/

3DE Screenshot

I tried to generate a grid texture for my ground plane but wasn't able to get it working. I've saved a copy of the generated image and disabled the texture generator for the time being. (Fwiw, it's still early days for glam & I - less than 12 hours have gone into my project so far. A re-write will be coming soon.)

Another (of several) use cases that I'd like to look at would embed HTML content via https://github.com/cburgmer/rasterizeHTML.js

@tparisi tparisi added this to the Beta 1 milestone Feb 4, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants