-
Notifications
You must be signed in to change notification settings - Fork 61
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
Textures and Images #218
Comments
One option I'd like is to specify textures via
of course one should be able to set a particular combination of fill image and tint via another function, and it should be possible to push/pop fills and tints in a state stack just like the matrix, so it's possible to have local materials. So this would work: (in fact I'd like to get this to work just for standard fills quite soon, as the language already supports all of this apart from having the stack for the fills):
(note that tint and noTint exist in processing, but we don't have them yet) |
p.s. |
hmm, this seems a little challenging but if people could get the embed code for a youtube video, it would be easy to display |
I thought there was an XSS restriction on loading data from other domains as texture. |
Oh, I forgot about that but if we could get images to work a video might, On Tue, Feb 3, 2015 at 11:40 AM, Peter Todd [email protected]
|
Yes I agree, video should be able to work and wouldn't be much more difficult in principle than images. If there were a server proxy, then YouTube etc could work as well. I do heartily support the idea of supporting different shaders and think @davidedc's suggestion seems like a decent start. Would probably want to address shader uniforms by name. My memory is that the materials were fairly buggy, doing |
It could be that my experience with buggy materials were related to other material-related changes in my fork. |
An fps lock would be good for this it can't go up or down, that would On Tue, Feb 3, 2015 at 11:57 AM, Peter Todd [email protected]
|
With downloaded images and/or videos, it should be able to work, I don't think that it would be buggy as the image is already fully loaded on your computer. I think it wouldn't be necessary to lock the fps, except for crazy things like my flashing grid, so we should just put in .pdf file support, work on .gif files, and then try for videos, I might try a little experiment in a little copy of livecodelab I made for my computer, it's just a downloaded version of the website, but can be played offline, and I think it might run on tablets and things like Chromebooks, which is what I'm on right now, even offline, because the whole thing works offline (well, everything but the demos and tutorials) |
I think that we should be able to load images that we have downloaded to On Tue, Feb 3, 2015 at 12:02 PM, Richard Layton <
|
sounds cool give it a shot! |
I'll do my best, my computer still has a problem running the master program On Fri, Apr 24, 2015 at 8:10 AM, Davide Della Casa <[email protected]
|
I made it work using the inspect element feature in chrome, It looks pretty On Fri, Apr 24, 2015 at 11:01 AM, Richard Mineall Layton <
|
Great news man! Richard please do share the code here or on a gist, no matter how provisional it is... more hands make light work. If you put in a Gist I can help out and we can revision it there until we can merge something... |
All I did was replace one of the colors with a image file, and then with a On Wed, May 6, 2015 at 8:21 AM, Davide Della Casa [email protected]
|
pity that. Sounds simple enough, but I have zero time/focus to start this from scratch unfortunately. If you could re-build the example... it would really help to trampoline from something working... |
I'll see if I can get it working again, my computer is still being On 5/6/15, Davide Della Casa [email protected] wrote:
Richard Mineall Layton |
Being able to not just color objects but texture them too would be really nice. LCL could have some 'stock' images included or load them from user-provided URL's. Basic patterns with some tinting/recoloring could give a huge array of options already.
Have you guys ever discussed something like this?
Another option would be to have a kind of texture-definition sublanguage:
Even crazier: http://threejs.org/examples/#webgl_materials_video, but kind of useless unless the user could load youtube videos or something.
P.S. I held off on posting a new issue until I fixed an old one, haha. 🎩
The text was updated successfully, but these errors were encountered: