@60hz said:
@ddw_music said:
One thing is that the [ofelia f] e.g. at the bottom of [of.image] shouldn't be named. That's obliterating the [ofelia d] namespace.
Yes, I think it's my fault, I dont remember why I did this way long tile ago... maybe I wanted to share buffers and add pixel FX but I misunderstood some parts. I will fix it.
It seems to be very easy to misunderstand -- I also thought at first that sharing the name would somehow be related to sharing the namespace, but it isn't so.
One consequence is that there would have to be a strict division between objects that produce image data (declaring the name), and objects that receive/process image data (require
-ing the name)... which I think reflects the real situation. Maybe helpful to be explicit about that.
@ddw_music said:
What is the reason for unbinding at the bottom of [of.image] btw?
We need to unbind the texture after drawing the last shape otherwise all subsequent shapes will receive the same texture.
Yeah, that's a nice trick -- you found something that's harder to do in code languages: a post-return operation. This case would be awkward in SC.
I was able yesterday to split the image load and image bind into separate objects but didn't yet manage to do anything with the pixel data. Back to the manuals...
Btw I'm estimating it would have taken me a couple weeks of intensive effort to get to this point (intensive meaning working on basically nothing else). You've given me a big leg up. Hugely appreciated!
hjh