Project 3D connexion mouse integration.

DaveGMZ67

New member
Joined
Jan 16, 2009
Messages
2
Reaction score
0
Points
0
Ok it will probably take me a year to get up to speed with programming, So I am passing this onto to you programming geniouses that can integrate source code subroutines at the spped of light. I found this 3D mouse which would really add to the capabilities of ORBITER 2010. the website has all the source code in it's SDK for adding it to programs such as 3D mapping software like Google Earth.

http://www.3dconnexion.com/

Here is a sample of the source code for this product.

Code:
<?xml version="1.0" encoding="Windows-1252"?>
<VisualStudioProject
 ProjectType="Visual C++"
 Version="8.00"
 Name="s3dm_viewer"
 ProjectGUID="{EE1FF228-4380-4a92-A523-E46D3CF36CF1}"
 RootNamespace="s3dm_viewer"
 Keyword="MFCProj"
 TargetFrameworkVersion="131072"
 >
 <Platforms>
  <Platform
   Name="Win32"
  />
 </Platforms>
 <ToolFiles>
 </ToolFiles>
 <Configurations>
  <Configuration
   Name="Debug|Win32"
   OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)"
   IntermediateDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)"
   ConfigurationType="1"
   UseOfMFC="2"
   ATLMinimizesCRunTimeLibraryUsage="false"
   CharacterSet="2"
   >
   <Tool
    Name="VCPreBuildEventTool"
   />
   <Tool
    Name="VCCustomBuildTool"
   />
   <Tool
    Name="VCXMLDataGeneratorTool"
   />
   <Tool
    Name="VCWebServiceProxyGeneratorTool"
   />
   <Tool
    Name="VCMIDLTool"
    PreprocessorDefinitions="_DEBUG"
    MkTypLibCompatible="true"
    SuppressStartupBanner="true"
    TargetEnvironment="1"
    TypeLibraryName=".\Debug/mcad.tlb"
    HeaderFileName=""
   />
   <Tool
    Name="VCCLCompilerTool"
    Optimization="0"
    AdditionalIncludeDirectories=""
    PreprocessorDefinitions="_DEBUG;WIN32;_WINDOWS"
    RuntimeLibrary="3"
    BrowseInformation="1"
    WarningLevel="3"
    SuppressStartupBanner="true"
    DebugInformationFormat="3"
   />
   <Tool
    Name="VCManagedResourceCompilerTool"
   />
   <Tool
    Name="VCResourceCompilerTool"
    PreprocessorDefinitions="_DEBUG"
    Culture="1033"
   />
   <Tool
    Name="VCPreLinkEventTool"
   />
   <Tool
    Name="VCLinkerTool"
    AdditionalDependencies="opengl32.lib glu32.lib"
    SuppressStartupBanner="true"
    AdditionalLibraryDirectories=""
    IgnoreDefaultLibraryNames=""
    GenerateDebugInformation="true"
    SubSystem="2"
    RandomizedBaseAddress="1"
    DataExecutionPrevention="0"
    TargetMachine="1"
   />
   <Tool
    Name="VCALinkTool"
   />
   <Tool
    Name="VCManifestTool"
   />
   <Tool
    Name="VCXDCMakeTool"
   />
   <Tool
    Name="VCBscMakeTool"
   />
   <Tool
    Name="VCFxCopTool"
   />
   <Tool
    Name="VCAppVerifierTool"
   />
   <Tool
    Name="VCPostBuildEventTool"
    Description="Copying model to the target directory"
    CommandLine="@xcopy ..\..\models\*.* $(TargetDir) /Y"
   />
  </Configuration>
  <Configuration
   Name="Release|Win32"
   OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)"
   IntermediateDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)"
   ConfigurationType="1"
   UseOfMFC="1"
   ATLMinimizesCRunTimeLibraryUsage="false"
   CharacterSet="2"
   >
   <Tool
    Name="VCPreBuildEventTool"
   />
   <Tool
    Name="VCCustomBuildTool"
   />
   <Tool
    Name="VCXMLDataGeneratorTool"
   />
   <Tool
    Name="VCWebServiceProxyGeneratorTool"
   />
   <Tool
    Name="VCMIDLTool"
    PreprocessorDefinitions="NDEBUG"
    MkTypLibCompatible="true"
    SuppressStartupBanner="true"
    TargetEnvironment="1"
    TypeLibraryName=".\Release/s3dm_viewer.tlb"
    HeaderFileName=""
   />
   <Tool
    Name="VCCLCompilerTool"
    AdditionalIncludeDirectories=""
    PreprocessorDefinitions="NDEBUG;WIN32;_WINDOWS"
    RuntimeLibrary="0"
    BrowseInformation="1"
    WarningLevel="3"
    SuppressStartupBanner="true"
    DebugInformationFormat="3"
   />
   <Tool
    Name="VCManagedResourceCompilerTool"
   />
   <Tool
    Name="VCResourceCompilerTool"
    PreprocessorDefinitions="NDEBUG"
    Culture="1033"
   />
   <Tool
    Name="VCPreLinkEventTool"
   />
   <Tool
    Name="VCLinkerTool"
    AdditionalDependencies="opengl32.lib glu32.lib"
    SuppressStartupBanner="true"
    AdditionalLibraryDirectories=""
    IgnoreDefaultLibraryNames=""
    GenerateDebugInformation="true"
    SubSystem="2"
    RandomizedBaseAddress="1"
    DataExecutionPrevention="0"
    TargetMachine="1"
   />
   <Tool
    Name="VCALinkTool"
   />
   <Tool
    Name="VCManifestTool"
   />
   <Tool
    Name="VCXDCMakeTool"
   />
   <Tool
    Name="VCBscMakeTool"
   />
   <Tool
    Name="VCFxCopTool"
   />
   <Tool
    Name="VCAppVerifierTool"
   />
   <Tool
    Name="VCPostBuildEventTool"
    Description="Copying model to the target directory"
    CommandLine="@xcopy ..\..\models\*.* $(TargetDir) /Y"
   />
  </Configuration>
 </Configurations>
 <References>
 </References>
 <Files>
  <Filter
   Name="Source Files"
   Filter="cpp;c;cxx;rc;def;r;odl;hpj;bat;for;f90"
   >
   <File
    RelativePath="..\..\src\c3dcontroller.cpp"
    >
   </File>
   <File
    RelativePath="..\..\src\GeomObj.cpp"
    >
    <FileConfiguration
     Name="Debug|Win32"
     >
     <Tool
      Name="VCCLCompilerTool"
      AdditionalIncludeDirectories=""
      PreprocessorDefinitions=""
     />
    </FileConfiguration>
    <FileConfiguration
     Name="Release|Win32"
     >
     <Tool
      Name="VCCLCompilerTool"
      AdditionalIncludeDirectories=""
      PreprocessorDefinitions=""
     />
    </FileConfiguration>
   </File>
   <File
    RelativePath="..\..\src\Mainfrm.cpp"
    >
    <FileConfiguration
     Name="Debug|Win32"
     >
     <Tool
      Name="VCCLCompilerTool"
      AdditionalIncludeDirectories=""
      PreprocessorDefinitions=""
     />
    </FileConfiguration>
    <FileConfiguration
     Name="Release|Win32"
     >
     <Tool
      Name="VCCLCompilerTool"
      AdditionalIncludeDirectories=""
      PreprocessorDefinitions=""
     />
    </FileConfiguration>
   </File>
   <File
    RelativePath="..\..\src\Matrix3d.cpp"
    >
    <FileConfiguration
     Name="Debug|Win32"
     >
     <Tool
      Name="VCCLCompilerTool"
      AdditionalIncludeDirectories=""
      PreprocessorDefinitions=""
     />
    </FileConfiguration>
    <FileConfiguration
     Name="Release|Win32"
     >
     <Tool
      Name="VCCLCompilerTool"
      AdditionalIncludeDirectories=""
      PreprocessorDefinitions=""
     />
    </FileConfiguration>
   </File>
   <File
    RelativePath="..\..\src\s3dm_viewer.cpp"
    >
    <FileConfiguration
     Name="Debug|Win32"
     >
     <Tool
      Name="VCCLCompilerTool"
      AdditionalIncludeDirectories=""
      PreprocessorDefinitions=""
     />
    </FileConfiguration>
    <FileConfiguration
     Name="Release|Win32"
     >
     <Tool
      Name="VCCLCompilerTool"
      AdditionalIncludeDirectories=""
      PreprocessorDefinitions=""
     />
    </FileConfiguration>
   </File>
   <File
    RelativePath="..\..\src\s3dm_viewer.rc"
    >
    <FileConfiguration
     Name="Debug|Win32"
     >
     <Tool
      Name="VCResourceCompilerTool"
      PreprocessorDefinitions=""
     />
    </FileConfiguration>
    <FileConfiguration
     Name="Release|Win32"
     >
     <Tool
      Name="VCResourceCompilerTool"
      PreprocessorDefinitions=""
     />
    </FileConfiguration>
   </File>
   <File
    RelativePath="..\..\src\mcaddoc.cpp"
    >
    <FileConfiguration
     Name="Debug|Win32"
     >
     <Tool
      Name="VCCLCompilerTool"
      AdditionalIncludeDirectories=""
      PreprocessorDefinitions=""
     />
    </FileConfiguration>
    <FileConfiguration
     Name="Release|Win32"
     >
     <Tool
      Name="VCCLCompilerTool"
      AdditionalIncludeDirectories=""
      PreprocessorDefinitions=""
     />
    </FileConfiguration>
   </File>
   <File
    RelativePath="..\..\src\mcadview.cpp"
    >
    <FileConfiguration
     Name="Debug|Win32"
     >
     <Tool
      Name="VCCLCompilerTool"
      AdditionalIncludeDirectories=""
      PreprocessorDefinitions=""
     />
    </FileConfiguration>
    <FileConfiguration
     Name="Release|Win32"
     >
     <Tool
      Name="VCCLCompilerTool"
      AdditionalIncludeDirectories=""
      PreprocessorDefinitions=""
     />
    </FileConfiguration>
   </File>
   <File
    RelativePath="..\..\src\Stdafx.cpp"
    >
    <FileConfiguration
     Name="Debug|Win32"
     >
     <Tool
      Name="VCCLCompilerTool"
      AdditionalIncludeDirectories=""
      PreprocessorDefinitions=""
      UsePrecompiledHeader="1"
      PrecompiledHeaderThrough="Stdafx.h"
     />
    </FileConfiguration>
    <FileConfiguration
     Name="Release|Win32"
     >
     <Tool
      Name="VCCLCompilerTool"
      AdditionalIncludeDirectories=""
      PreprocessorDefinitions=""
      UsePrecompiledHeader="1"
     />
    </FileConfiguration>
   </File>
   <File
    RelativePath="..\..\src\Visitor.cpp"
    >
    <FileConfiguration
     Name="Debug|Win32"
     >
     <Tool
      Name="VCCLCompilerTool"
      AdditionalIncludeDirectories=""
      PreprocessorDefinitions=""
     />
    </FileConfiguration>
    <FileConfiguration
     Name="Release|Win32"
     >
     <Tool
      Name="VCCLCompilerTool"
      AdditionalIncludeDirectories=""
      PreprocessorDefinitions=""
     />
    </FileConfiguration>
   </File>
  </Filter>
  <Filter
   Name="Header Files"
   Filter="h;hpp;hxx;inl;fi;fd"
   >
   <File
    RelativePath="..\..\src\3dmouseconstants.hpp"
    >
   </File>
   <File
    RelativePath="..\..\src\3dmouseparams.hpp"
    >
   </File>
   <File
    RelativePath="..\..\src\3dmousepopupmenu.hpp"
    >
   </File>
   <File
    RelativePath="..\..\src\array.hpp"
    >
   </File>
   <File
    RelativePath="..\..\src\array_auto_ptr.hpp"
    >
   </File>
   <File
    RelativePath="..\..\src\c3dcontroller.hpp"
    >
   </File>
   <File
    RelativePath="..\..\src\coordinate_conversion.hpp"
    >
   </File>
   <File
    RelativePath="..\..\src\GeomObj.h"
    >
   </File>
   <File
    RelativePath="..\..\src\i3dmouseparam.hpp"
    >
   </File>
   <File
    RelativePath="..\..\src\Mainfrm.h"
    >
   </File>
   <File
    RelativePath="..\..\src\Matrix3d.h"
    >
   </File>
   <File
    RelativePath="..\..\src\s3dm_viewer.h"
    >
   </File>
   <File
    RelativePath="..\..\src\mcaddoc.h"
    >
   </File>
   <File
    RelativePath="..\..\src\mcadview.h"
    >
   </File>
   <File
    RelativePath="..\..\src\rawinput.hpp"
    >
   </File>
   <File
    RelativePath="..\..\src\Resource.h"
    >
   </File>
   <File
    RelativePath="..\..\src\Stdafx.h"
    >
   </File>
   <File
    RelativePath="..\..\src\virtualkeys.hpp"
    >
   </File>
   <File
    RelativePath="..\..\src\Visitor.h"
    >
   </File>
  </Filter>
  <Filter
   Name="Resource Files"
   Filter="ico;cur;bmp;dlg;rc2;rct;cnt;rtf;gif;jpg;jpeg;jpe"
   >
   <File
    RelativePath="..\..\src\res\3Dx_Pivot_102101_12x12px_v2.bmp"
    >
   </File>
   <File
    RelativePath="..\..\src\res\3dxicon.ico"
    >
   </File>
   <File
    RelativePath="..\..\src\Res\s3dm_viewer.rc2"
    >
   </File>
  </Filter>
  <File
   RelativePath="..\..\readme.txt"
   >
  </File>
 </Files>
 <Globals>
  <Global
   Name="RESOURCE_FILE"
   Value="..\..\src\s3dm_viewer.rc"
  />
 </Globals>
</VisualStudioProject>







I just do not know at this time how to add it to orbiter so that it could be recognized as a controller such as a joystick. What I do know though is that the motion capability of this product should be set so that it is highly sensitive to motion manipulation as to not create to much stress on the mouse when making flight menuevers. I reading the programing information on this products development software to make heads or tails of it myself. YetI hope one of you guys can get it going fasster than me. I understand that NASA had used this type of mouse controller on the Mars Sojourner mission or pathfinder.
 
Last edited:
There is this add-on for Orbiter, but I don't know if it works with Orbiter 2010: [ame="http://orbithangar.com/searchid.php?ID=1332"]SixDegrees[/ame]
 
There is this add-on for Orbiter, but I don't know if it works with Orbiter 2010: SixDegrees
Somehow I doubt that there are actually 600-something people in the Orbiter community with a 3dconnexion controller...
 
Here is a sample of the source code for this product.
The sample you posted is not a source code, but a project file. It only contains parameters for compiling and linking the files that are listed in this project file, so it doesn't really tell anything about the source code.

I wanted to look at the source code you mentioned, that can be taken from the 3DConnection website, because I was curious, but to download the SDK from there, I'd need to register, so meh.


Somehow I doubt that there are actually 600-something people in the Orbiter community with a 3dconnexion controller...
I doubt it too, but if someone had it, and confirmed it working with Orbiter 2010, there would be no need to rewrite it again, at least for now.
 
I have one and it works just fine using the six degrees addon.It's just a little finicky to get it calibrated properly.I'm not sure how it works with 2010 yet though but as soon I test it I'll let you know.
 
yeah i bought me a little space-navigator a few months back! :thumbup: quite a treat for 3d modeling and all...

and i'm in the process of writing up a general purpose orbiter directinput module, which should allow for it to work alongside any number of other devices :hmm: but not quite there yet... as of now, i just got it to enumerate them, still need to have it acquire the devices, then pass the inputs along to the sim, as defined in some form of configuration file...

then i guess it should have some GUI too... right? setting axes on a cfg file will probably get old fast :rolleyes:
 
I have one and it works just fine using the six degrees addon.It's just a little finicky to get it calibrated properly.I'm not sure how it works with 2010 yet though but as soon I test it I'll let you know.

Do you mind sharing how you get it to work? I have a Space Navigator and can't get sixdegrees working. Thanks.

[Edit] I have enabled the module in orbiter and have the 3DConnexion driver running.

[Edit 2] Cancel all that, I've got it working. Now, where's that facepalm smilie??:embarrassed:
 
Last edited:
Back
Top