I have several .SVG's I'm loading from a folder, and I'm wondering if there's a way to load everything from a folder regardless of how many objects are in there. I saw the selectFolder() function but I'd like to do it automatically for one specific folder, without a prompt
I'd like to run through my pool on every frame and effect individual items at different times. I see there's an "HIterator" class, but I can't find any documentation on it.
Hello, just wanted to inquire as to some good sites to download glsl shaders? Or good learning resources (tutorials, etc.)
I'm very new to the whole shader world but it seems really awesome, looking forward to learning a lot more. I think it would be handy to have a list of sites to browse through when working on new projects for inspiration.
Specifically right now I'm looking for a simple shader that will mirror half of the screen, so if anyone knows of anything that will do that, I'd be much obliged!
Is this possible? I figured it would save memory but it doesn't seem to work. I can easily just make multiple texture variables but then I'd have to load the same movie 3 times... anyway I'm sure this is possible, here's what I have so far-
Trying to use a movie as a texture but it isn't displaying properly- I just get an extreme close-up, almost like a single pixel. I'm completely new to textures so I might just be missing something incredibly obvious. Here's my code:
Alright, I've been trying in vain to create a dynamic kaleidoscope (able to change the reflecting pattern on the fly). I'm using a movie file and basically trying to take half of the image with PImage and flip it, resample that image and flip it again, but I just can't get it working, and also it's very slow. If anyone has any tips on how to get this going efficiently I'd really appreciate it!!
Now that I've got the basics of programming down and can actually make a sketch that does something, I figure it's time to start programming
moreneatly and efficiently. I keep getting this message when I run my program, wondering what it means and how to fix it-
objc[15006]: Object 0x7ff10b0e3730 of class __NSCFDictionary autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug
So I'm trying to use PGraphics to get a buffer for Syphon. My main program calls three separate classes' "run" function, and each class draws itself within those functions. How do I get those classes to be rendered into the PGraphics object? Do I have to have some sort of return value on the individual "run" functions? Perhaps return another PGraphics object? Quite confused. So my code essentially looks like this right now-
Hi I'm using a separate control frame for my sliders and linking them to values defined in the parent class using the "plugTo" method, but this seems to reset all variables to 0. Is there a way to retain the default values I declared in the parent class?
Is there a way to convert a range of values to another range?
For instance I have a node-garden type program with a bunch of nodes floating around and when they get within 100px of one another they draw a line between them. I would like this line to start at 0 alpha and end at a maximum of 255 (were the objects to meet), within the range of 100-0.
To clarify- when the tested object is 100px away, the line should have an alpha of 0. As it gets closer, the alpha increases accordingly.