← Back

ofxHelios

github.com/timredfern/ofxHelios · @timredfern
OF 0.12 Hardware Interface

Openframeworks addon for drawing vectors with the Helios Laser DAC

15 1 Last commit 4mo ago Created 8y ago

README

ofxHelios



openFrameworks addon for the Helios Laser DAC.

v0.2.0 — Helios SDK v11, 16-bit output, IDN network DAC support.

Features



Requirements



Building the examples



cd example-fractalzoom
make
make RunRelease


Or open the project in the OF project generator and build from your IDE.

Usage



#include "ofxHelios.h"

ofxHelios laser;

void ofApp::setup() {
    laser.setup();            // scans USB + network, connects to first DAC
    laser.setPps(30000);
    laser.setIntensity(0.5);
}

void ofApp::draw() {
    colourPolyline line;
    line.addVertex(100, 100, ofColor::red);
    line.addVertex(500, 300, ofColor::green);
    line.addVertex(300, 500, ofColor::blue);
    line.addVertex(100, 100, ofColor::red);

    line.draw();              // preview on screen
    laser.draw(line);         // send to DAC
}


Parameters



MethodDefaultDescription
setPps(int)30000Points per second
setIntensity(float)1.0Master brightness (0.0-1.0)
setSubdivide(int)15Interpolation density (higher = more points between vertices)
setBlankCount(int)8Blank/dwell points at corners and between shapes
setMaxAngle(float)15.0Corner angle threshold (degrees) for inserting dwell points
setOutputScale(float)1.0Scale factor for laser output (0.0-1.0)
setOutputCentre(glm::vec2)(0,0)Offset the laser output centre

Examples



Known issues



License



GPL v3 — see LICENSE.

Get this addon

HTTPS
SSH