interactive-shader-format-js
interactive-shader-format-js copied to clipboard
Setting renderer.setValue('inputImage', image) results in black image
I've been trying to use ISF on stackblitz. You can see my code here: https://stackblitz.com/edit/typescript-akptnb?file=index.ts
It seems like the Renderer works as it adds the shader to the canvas, but the image doesn't appear.
I tried to run this repository locally with the webcam started, but I'm getting the same result.
Screenshot:
I hope someone can help me as i really like this library and it's simplicity :)
All the best, Emil
I'm seeing the same issue with local examples. My guess is something in the web platform changed or became more secure to make this break. I hope to have some time to investigate it soon but if anyone else has any ideas please share.
On Tue, Aug 27, 2019 at 3:39 AM Emil Møller [email protected] wrote:
I've been trying to use ISF on stackblitz. You can see my code here: https://stackblitz.com/edit/typescript-akptnb?file=index.ts
It seems like the Renderer works as it adds the shader to the canvas, but the image doesn't appear.
I tried to run this repository locally with the webcam started, but I'm getting the same result.
Screenshot: [image: Screenshot 2019-08-27 at 12 34 31] https://user-images.githubusercontent.com/2789549/63764599-78aa8900-c8c7-11e9-9f52-c20e2150810c.png
I hope someone can help me as i really like this library and it's simplicity :)
All the best, Emil
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/msfeldstein/interactive-shader-format-js/issues/22?email_source=notifications&email_token=AABHK32CDMVU56ZQABB4NH3QGT74LA5CNFSM4IQCXG62YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HHTU5XQ, or mute the thread https://github.com/notifications/unsubscribe-auth/AABHK34RTMPANRGX43NM5CDQGT74LANCNFSM4IQCXG6Q .
Hella late, but heads up that this is fixed by calling renderer.pushTextures()
after setting the texture to inputImage
Made a little pr to add this to the README