Skip to content

Commit

Permalink
graycode works with calibrating projectors
Browse files Browse the repository at this point in the history
  • Loading branch information
mrboni committed Jun 26, 2018
1 parent bd58bfd commit 961ab12
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Nodes/src/ofxRulr/Nodes/Item/Mesh.cpp
Expand Up @@ -41,6 +41,10 @@ namespace ofxRulr {
this->addInput<Render::Style>();

this->modelLoader = make_unique<ofxAssimpModelLoader>();

//HACK : This is more common, esp coming from PhotoScan data
this->parameters.transform.theirXIsOur = Axes::NegX;
this->parameters.transform.theirYIsOur = Axes::NegY;
}

//----------
Expand Down
7 changes: 7 additions & 0 deletions Nodes/src/ofxRulr/Nodes/Procedure/Scan/Graycode.cpp
Expand Up @@ -79,6 +79,10 @@ namespace ofxRulr {

//----------
void Graycode::update() {
if (this->suite) {
this->suite->decoder.update();
}

if(this->previewDirty) {
this->updatePreview();
}
Expand Down Expand Up @@ -317,6 +321,9 @@ namespace ofxRulr {
this->suite->decoder.loadDataSet(filename);
this->suite->payload = suite->decoder.getPayload();
this->suite->encoder.init(suite->payload);
this->parameters.processing.threshold = this->suite->decoder.getThreshold();

this->previewDirty = true;
}

//----------
Expand Down

0 comments on commit 961ab12

Please sign in to comment.