tum-vision / fastfusion

Volumetric 3D Mapping in Real-Time on a CPU
GNU General Public License v2.0
559 stars 173 forks source link

/bin/onlinefusion only works once #8

Open atenpas opened 9 years ago

atenpas commented 9 years ago

/bin/onlinefusion only worked once after running make. At that time, it correctly displayed the map generated from the RGBD dataset. Since then, nothing is displayed in the viewer anymore (there are no errors shown in the terminal).

DForger commented 8 years ago

The same issue happened to me. But I found it still can save the mesh by pressing W.

kentsommer commented 8 years ago

@DForger @atenpas

I'm correctly having it display in the viewer, make sure you aren't just looking at a strange viewpoint by zooming out (try scrolling). The default startup viewpoint is pretty weird and doesn't show you anything if you just pan.

MichaelGrupp commented 7 years ago

@kentsommer I experienced the same :+1:

It is even already explained in the documentation: After some debugging output on the console, a window with a 3D viewer should open. To start the reconstruction process, press "S".

If you run the program for the first time, press and hold the CTRL key and turn your scroll wheel. This is only needed once to "free" the camera viewpoint. After this, you can pan (right click) and rotate (left click) the view as you wish using your mouse.

LuSiYing commented 7 years ago

I had the the same question, and I fix it by add a line in onlinefusionviewer.hpp. In fuction void OnlineFusionViewerManipulated::keyPressEvent(QKeyEvent *e), there're codes like this and I add a line setScenePosition(_poses[0][0]); if ((e->key()==Qt::Key_S) && (modifiers==Qt::NoButton)) { if(_verbose) fprintf(stderr,"\n\nSwitching Fusion %s\n",_runFusion ? "off" : "on"); _runFusion = !_runFusion; if(_runFusion){ connect(_timer,SIGNAL(timeout()),this,SLOT(updateSlot())); _fusionActive = true; } else{ disconnect(_timer,SIGNAL(timeout()),this,SLOT(updateSlot())); _fusionActive = false; } handled = true; setScenePosition(_poses[0][0]); /////////THIS IS THE LINE I ADD IN THIS FUCTION///////// // updateGL(); } By adding this line, your scene pose is set as the 1st pose of your camera when you press 'S', so you don't have to zoom or rotate to find the proper viewpoint.

wuxiaoqiang12 commented 6 years ago

I am confused in the same problem.I try to delete my cmake folder "build folder",then it works well for me.but it isn't a fundamental resolution. After that I fix it. When you cannot see anything,the program is still draw the picture.you can press "N"to see it.