Changeset 55


Ignore:
Timestamp:
May 29, 2010, 11:52:47 PM (14 years ago)
Author:
Torben Dannhauer
Message:

Updated to new osg version with new manipulator schema.
Updated integration of 3dx SpaceNavigator? to allow disabling without compile errors.

Location:
osgVisual
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • osgVisual/include/core/visual_core.h

    r32 r55  
    130130         */
    131131        osg::ref_ptr<NodeTrackerSpaceMouse> mouseTrackerManip;
     132
     133        /**
     134         * Space mouse hardware driver instance
     135         */
     136        SpaceMouse* mouse;
    132137#endif
    133138
     
    137142        osg::ref_ptr<objectMountedManipulator> objectMountedCameraManip;
    138143
    139         /**
    140          * Space mouse hardware driver instance
    141          */
    142         SpaceMouse* mouse;
    143144
    144145#ifdef USE_SKY_SILVERLINING
  • osgVisual/include/extLink/manip_extLink.h

    r32 r55  
    2929 * @date  Aug 2009
    3030 */
    31 class extLinkManipulator : public osgGA::MatrixManipulator
     31class extLinkManipulator : public osgGA::CameraManipulator
    3232{
    3333    public:
  • osgVisual/include/manip_ObjectMounted/manip_objectMounted.h

    r32 r55  
    1616*/
    1717
    18 #include <osgGA/MatrixManipulator>
     18#include <osgGA/CameraManipulator>
    1919
    2020#include <osg/Quat>
     
    3333 * @date  Aug 2009
    3434 */
    35 class objectMountedManipulator : public osgGA::MatrixManipulator
     35class objectMountedManipulator : public osgGA::CameraManipulator
    3636{
    3737    public:
  • osgVisual/include/manip_Spacemouse/manip_freeSpaceMouse.h

    r32 r55  
    2020
    2121// OSG includes
    22 #include <osgGA/MatrixManipulator>
     22#include <osgGA/CameraManipulator>
    2323#include <osgGA/GUIEventAdapter>
    2424#include <osgGA/GUIActionAdapter>
     
    3939 * @date  Aug 2009
    4040 */
    41 class FreeManipulator : public osgGA::MatrixManipulator
     41class FreeManipulator : public osgGA::CameraManipulator
    4242{
    4343    public:
  • osgVisual/include/manip_Spacemouse/manip_nodeTrackerSpaceMouse.h

    r32 r55  
    1515*/
    1616
    17 #include <osgGA/MatrixManipulator>
     17#include <osgGA/OrbitManipulator>
    1818
    1919#include <osg/ObserverNodePath>
     
    4949 * @date  Apr 2010
    5050 */
    51 class NodeTrackerSpaceMouse : public osgGA::MatrixManipulator
     51class NodeTrackerSpaceMouse : public osgGA::OrbitManipulator
    5252{
    5353    public:
  • osgVisual/include/object/visual_object.h

    r32 r55  
    2727#include <osgText/Text>
    2828
    29 #include <osgGA/MatrixManipulator>
     29#include <osgGA/CameraManipulator>
    3030
    3131#include <object_updater.h>
  • osgVisual/src/core/visual_core.cpp

    r31 r55  
    3636        //double* test = new double[1000];
    3737
    38         mouse = NULL;
     38        #ifdef USE_SPACENAVIGATOR
     39                mouse = NULL;
     40        #endif
     41
     42        //osg::DisplaySettings::instance()->setNumOfDatabaseThreadsHint( 8 );
    3943}
    4044
  • osgVisual/src/extLink/dataIO_extLinkDummy.cpp

    r31 r55  
    1616
    1717#include "dataIO_extLinkDummy.h"
    18 
    19 #include "memoryLeakDetection.h"
    2018
    2119dataIO_extLinkDummy::dataIO_extLinkDummy(std::vector<dataIOSlot>& dataSlots_) : dataIO_extLink(dataSlots_)
  • osgVisual/src/manip_Spacemouse/manip_spaceMouse.cpp

    r31 r55  
    3737using namespace osgVisual;
    3838
    39 
    4039#import "progid:TDxInput.Device" no_namespace
    4140
  • osgVisual/src/sky_Silverlining/skySilverLining_skyDrawable.cpp

    r53 r55  
    8787void skySilverLining_skyDrawable::setSceneFog(SilverLining::Atmosphere *atmosphere) const
    8888{   
    89         //glEnable(GL_FOG);
    90  //   glFogi(GL_FOG_MODE, GL_EXP);
    91 
    92         ////float hazeR, hazeG, hazeB;
    93         ////double hazeDepth, hazeDensity;
    94         ////atmosphere->GetHaze(hazeR, hazeG, hazeB, hazeDepth, hazeDensity);
    95 
    96  //   //hazeDensity = 1.0 / 40000;
    97         ////hazeDensity = 0;
    98         //float hazeDensity = 1.0 / atmosphere->GetConditions()->GetVisibility();
    99 
    100  //   // Decrease fog density with altitude, to avoid fog effects through the vacuum of space.
    101  //   static const double H = 8435.0; // Pressure scale height of Earth's atmosphere
    102  //   double isothermalEffect = exp(-(atmosphere->GetConditions()->GetLocation().GetAltitude() / H));     
    103  //   if (isothermalEffect <= 0) isothermalEffect = 1E-9;
    104  //   if (isothermalEffect > 1.0) isothermalEffect = 1.0;
    105  //   hazeDensity *= isothermalEffect;
    106 
    107  //   bool silverLiningHandledTheFog = false;
    108 
    109  //   if (atmosphere->GetFogEnabled())
    110  //   {
    111  //           float density, r, g, b;
    112  //           // Note, the fog color returned is already lit
    113  //           atmosphere->GetFogSettings(&density, &r, &g, &b);
    114 
    115  //           if (density > hazeDensity)
    116  //           {
    117  //                   glFogf(GL_FOG_DENSITY, density);
    118 
    119  //                   GLfloat fogColor[4] = {r, g, b, 1.0};
    120  //                   glFogfv(GL_FOG_COLOR, fogColor);
    121 
    122  //                   silverLiningHandledTheFog = true;
    123  //           }
    124  //   }
    125  //   
    126  //   if (!silverLiningHandledTheFog)
    127  //   {
    128  //           GLfloat fogColor[4];
    129  //           //atmosphere->GetHorizonColor(yaw, &fogColor[0], &fogColor[1], &fogColor[2]);     // New version of this call: SL_1.94 /** \todo transmit the yaw value of the center channel to all slaves for consistent fog color. */
    130         //              atmosphere->GetHorizonColor( 0, &fogColor[0], &fogColor[1], &fogColor[2]);
    131  //           glFogfv(GL_FOG_COLOR, fogColor);
    132 
    133  //           glFogf(GL_FOG_DENSITY, hazeDensity);
    134  //   }
    135 
    136 
    137 
    138 
    139 
    140        
    14189        osg::ref_ptr<osg::Fog> fog = new osg::Fog;
    14290    fog->setMode(osg::Fog::EXP);
Note: See TracChangeset for help on using the changeset viewer.