interactive-shader-format-js icon indicating copy to clipboard operation
interactive-shader-format-js copied to clipboard

Setting renderer.setValue('inputImage', image) results in black image

Open emolr opened this issue 5 years ago • 3 comments

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: Screenshot 2019-08-27 at 12 34 31

I hope someone can help me as i really like this library and it's simplicity :)

All the best, Emil

emolr avatar Aug 27 '19 10:08 emolr

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 .

msfeldstein avatar Aug 27 '19 20:08 msfeldstein

Hella late, but heads up that this is fixed by calling renderer.pushTextures() after setting the texture to inputImage image

cale-bradbury avatar Jan 18 '24 01:01 cale-bradbury

Made a little pr to add this to the README

cale-bradbury avatar Jan 18 '24 01:01 cale-bradbury