FreeCAD-VR: Some fixes

This commit is contained in:
jriegel 2014-09-16 18:14:42 +02:00
parent 2a4626d27a
commit 0d6ccb7654
3 changed files with 9 additions and 2 deletions

View File

@ -33,6 +33,8 @@
#include "PreCompiled.h"
#include "CoinRiftWidget.h"
#include <Base/Console.h>
#if BUILD_VR
@ -319,6 +321,10 @@ void CoinRiftWidget::paintGL()
eyePose[eye].Position.y,
eyePose[eye].Position.z);
//Base::Console().Log("Pos: (%d) %f, %f, %f \n",eye, eyePose[eye].Position.x,
// eyePose[eye].Position.y,
// eyePose[eye].Position.z);
//SbVec3f originalPosition(camera[eye]->position.getValue());
camera[eye]->position.setValue(basePosition - SbVec3f(eyeRenderDesc[eye].ViewAdjust.x,

View File

@ -99,13 +99,14 @@ public:
void setBase(const SbVec3f &pos){basePosition=pos;}
void setBackgoundColor(const SbColor &Col){BackgroundColor = Col;}
SbVec3f basePosition;
protected:
void handlingSafetyWarning(void);
void initializeGL();
void paintGL();
void resizeGL(int width, int height);
SbVec3f basePosition;
SbColor BackgroundColor;
};

View File

@ -1650,7 +1650,7 @@ void View3DInventorViewer::viewVR(void)
if(oculusUp())
oculusStop();
else{
#if 0
#if 1
// start and load the simple test scene:
oculusSetTestScene(oculusStart());
#else