系统:
- Win 7 - 64 bit
- Visual Studio 2017
- Chai3d 3.2.0
在使用 Chai3d 时,需要 (1) hdPhantom64.dll (2)在工程中需要预处理器定义 WIN64
原因:(1)当没有hdPhantom64.dll 时,工程编译/执行不会有任何错误,但会提示 no device found
(2)如果没有预定义 WIN64,则生成时选择导入 hdPhantom32.dll,同样相当于没有导入动态链接库。程序段:
#if defined(WIN32) | defined(WIN64)
#if defined (WIN64)
hdPhantomDLL = LoadLibrary("hdPhantom64.dll");
#else
hdPhantomDLL = LoadLibrary("hdPhantom32.dll");
#endif
#endif
- 连接多个设备
当连接多个 Geomagic Touch 设备时,需要在 Geomagic Touch Setup 程序中添加设备。
默认设备的名称为 Device Name: Default Device
第二个设备的名称必须为 Device Name:Phantom2
否则,Chai3d 驱动程序找不到该设备。诡异 >-<