[etgalim] works in Solidworks extensively and wanted a more intuitive way of rotating objects onscreen. To do this, he created a mouse that responds to rotation. He put a 3D compass module inside an old mouse and wired it up to an Arduino. The Arduino then relays the I2C sensor data to the computer. So far, he has a Processing script that uses the mouse to rotate a cube, but eventually he wants to write a Solidworks plugin. It’s a bit shaky, and we think it would be a bit smoother (and cheaper) if he used gyros like the jedipad. Video after the jump.
Continue reading “3D Magnetometer mouse in processing”
Reader [Nikolaus] decided that instead of using an existing image based bar code decoder, he would write his own. Using the Processing language he created a scanner that parsed the black and white pattern when a bar code was centered on the image. His code then parsed that data and compared it with the initializing character to provide a reference. Currently his scanner supports three character sets of the Code 128 encoding, and provided his complete code so that others could add as they see fit. He admits that the code is a bit messy due to the lengthy character tables, but very straight forward.
The Laughing Man is the antagonist from the anime series Ghost in the Shell: Stand Alone Complex. During each of his public appearances in the series he manages to hack all video feeds/cyborg eyes in the vicinity to obscure his face with the logo above.
[Ben Kurtz] had been watching the series recently and realized he could put together a similar effect using Processing. The interesting bit, and what makes this more fun than a simple demo, is that he’s using the OpenCV library. OpenCV is a open source computer vision library. [Ben] uses it to handle the facial recognition in Processing and then apply the image.
It’s only 100 lines and we wonder what other fun tricks could be employed. Here’s a Hack a Day skull you can swap in for the logo.
Processing, the open source programming language designed for artists and other creative types, finally went 1.0. Processing inspired numerous outpourings of creativity and beauty, from interactive art installations to sound sculptures. Improvements to Processing include OpenGL anti-aliasing, an extensible Tools menu, and the XML library included by default. You can read up on the changes or download Processing and start playing with it yourself.
[via Create Digital Motion]
[Manuel] has been playing around with [Johnny Lee]‘s Wiimote head tracking code. He’s posted a preliminary port outlining the code in the Processing environment. It relies on darwiinremoteOSC so you won’t see this outside of OSX, but it should help you out if you’re trying to do this is in Processing on another platform.
[via Create Digital Motion]
Looking to practice your marksmanship skills at home? Check out the homeLESS (Home LasEr Shooting Simulator), an open-source tool for marksmanship practice. [Laabicz] developed this system as a cheaper alternative to commercial laser shooting simulators, which are just as simple but very expensive.
[Laabicz]‘s simulator primarily uses modified airsoft pistols that are fitted with batteries (installed in the magazine) and a laser in the chamber. Any gun can be used with the system as long as you can figure out how to attach a laser and trigger switch. To power the laser, a small capacitor is charged from batteries when the trigger switch is off. Once the trigger is pressed, the capacitor discharges through the laser and makes a short pulse of light.
The simulator is written in Processing and requires a projector and a webcam. The Processing sketch projects configurable moving targets on a screen or wall, and the webcam detects when a laser is triggered over any of the targets. The software supports multiple target types (including moving targets) and is quite configurable. Check out the video after the break to see the system in use.
Continue reading “Open-Source Laser Shooting Simulator”