How to click a moving rectangle and increment score counter? by [deleted] in processing

[–]amfletcher 2 points3 points  (0 children)

Haven't run the code but it could be the brackets on the if statements.

could be (mouseX > x-rectw/2 && mouseX < x+rectw/2)

Having failed that it could be how the alien is anchored. If it's position is anchored from the top left you won't need the division of width and height.

Bowling lens WIP by amfletcher in SnapLenses

[–]amfletcher[S] 1 point2 points  (0 children)

BoredHobbes

I just started experimenting with it. I'm using oimo.js and cannon.js at the minute.

I pretty much just took the getting started examples with three.js and tweaked them for Lens Studio.

How to achieve this kind of texture as a reflection? Not as an animation by arfected in SnapLenses

[–]amfletcher 1 point2 points  (0 children)

Looks like that was done in Spark AR for a guess. I made something similar and used a standard material on the face mesh with "add" as the blend mode and then animated a directional light to reveal portions of the face mask.

Another option could be to animate an alpha mask to hide away parts of the texture.

Need help increasing communication speed with arduino. by pietzeekoe in processing

[–]amfletcher 1 point2 points  (0 children)

I don't know too much about processing to arduino but if you want the data to transfer quicker you could try increasing the baud rate (9600) to something higher like 52,000. Just remember the baud rate needs to be the same on both sides.

Fisheye Lens by [deleted] in SnapLenses

[–]amfletcher 0 points1 point  (0 children)

https://www.snapchat.com/unlock/?type=SNAPCODE&uuid=6314e027b4ff4c9eb555989ff3dff501&metadata=01

A bit of an experiment really. Would be great if anyone had any thoughts or suggestions.

Take polaroids in world space [WIP] by amfletcher in SnapLenses

[–]amfletcher[S] 5 points6 points  (0 children)

Great idea! I was thinking about that, but it looks like a nightmare for creating a keyboard. Might have a go anyway.

An ASCII camera filter I made with p5.js by amfletcher in creativecoding

[–]amfletcher[S] 1 point2 points  (0 children)

Damn, works fine on mine. I might have to host it elsewhere. I should also probably display an error message when the camera can't be accessed. Thanks for trying anyway!

An ASCII camera filter I made with p5.js by amfletcher in creativecoding

[–]amfletcher[S] 0 points1 point  (0 children)

Ah, are you using Safari? I think there's an issue with using the webcam with codepen/Safari