You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! I am new to nannou and am really enjoying it. Thank you for creating such an excellent toolkit!
One thing I'm finding that I often want to do is to draw directly to a texture. Is this possible? I have struggled to find a beginner-friendly way to do this.
For example, I'm currently trying to draw long-lasting trails that follow the bob of a pendulum. I'd like to avoid storing an ever-growing vector of points that is redrawn every frame via a polyline. Instead, for every frame, I'd like to draw the newest segment of the trail to a texture that is never cleared. I could then draw the actual pendulum (which will be cleared) on top of the texture. This would allow me to have a performant trail that doesn't get more expensive to render the longer the program runs, and I could even accumulate cool image operations like a blur - how exciting!
I imagine this is already possible? Apologies if I've missed it somehow, but I'd appreciate being pointed in the right direction if it is!
The text was updated successfully, but these errors were encountered:
Hello! I am new to nannou and am really enjoying it. Thank you for creating such an excellent toolkit!
One thing I'm finding that I often want to do is to draw directly to a texture. Is this possible? I have struggled to find a beginner-friendly way to do this.
For example, I'm currently trying to draw long-lasting trails that follow the bob of a pendulum. I'd like to avoid storing an ever-growing vector of points that is redrawn every frame via a polyline. Instead, for every frame, I'd like to draw the newest segment of the trail to a texture that is never cleared. I could then draw the actual pendulum (which will be cleared) on top of the texture. This would allow me to have a performant trail that doesn't get more expensive to render the longer the program runs, and I could even accumulate cool image operations like a blur - how exciting!
I imagine this is already possible? Apologies if I've missed it somehow, but I'd appreciate being pointed in the right direction if it is!
The text was updated successfully, but these errors were encountered: