Skip to content

Commit

Permalink
added use_kinect bool to XML
Browse files Browse the repository at this point in the history
  • Loading branch information
CorpusCallosum committed Jan 9, 2014
1 parent 9658f68 commit bec3d5c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
Binary file not shown.
1 change: 1 addition & 0 deletions lanscapesC_kinect/bin/data/settings.xml
@@ -1,4 +1,5 @@
<group>
<use_kinect>1</use_kinect>
<brightness>0.175</brightness>
<contrast>0.44</contrast>
<extrusion>42.5</extrusion>
Expand Down
9 changes: 5 additions & 4 deletions lanscapesC_kinect/src/lanscapes.cpp
Expand Up @@ -3,9 +3,6 @@

//--------------------------------------------------------------
void lanscapes::setup(){
//Set this to FALSE to use webcam
//TODO: add this to the XML file
useKinect = false;

//load settings xml data file
//-----------
Expand Down Expand Up @@ -39,7 +36,11 @@ void lanscapes::setup(){
gui.mirrorV = XML.getValue("group:mirror_vertically", false);
gui.mirrorH = XML.getValue("group:mirror_horizontally", false);
saveHour = ofToInt(XML.getValue("group:save_hour", "18"));
cout << "save hour loaded from XML is: " << saveHour << endl;

//Set this to FALSE to use webcam
//TODO: add this to the XML file
useKinect = ofToBool(XML.getValue("group:use_kinect", "1"));


//setup vars default values
//PRESS B TO CAPTURE BACKGROUND//
Expand Down

0 comments on commit bec3d5c

Please sign in to comment.