CHAI3DCHAI3D

normal Graphics card

More
01 Apr 2017 02:38 #1

Does Chai3D run without any graphics card?

Please Log in or Create an account to join the conversation.

More
04 Apr 2017 09:25 #2

You can compile a version that does not include OpenGL graphic support by commenting the following line in file system/CGlobals.h

// OPENGL SUPPORT
// Enable or disable OpenGL and GLEW libraries.
#define C_USE_OPENGL

Please Log in or Create an account to join the conversation.

More
04 Apr 2017 20:14 #3

Hi,

I guess my question framing is wrong.

I am trying to run chai3D examples on a system with
i7-4770 Processor and it has got built in intel HD graphics 4600 (drivers are updated. no external graphics card like NVIDIA/ATI etc). Windows 10 64 bit.

I followed instructions to install phantom from another post in the forum. And I am able to run Phantom Test on my desktop. But when I tried to run any of the Chia3D examples it says no device.


As you suggested I have also tried commenting
// #define C_USE_OPENGL
And tried to compile the latest version of chai3d for windows. But it I am getting a bunch errors which involve GLuint, GLenum etc....

Attachment 21.JPG not found

Attachments:

Please Log in or Create an account to join the conversation.

More
05 Apr 2017 13:57 #4

Regarding the OpenGL issues that you are encountering, in CGlobals.h, please replace definitions with the following code. You should then be able to compile CHAI3D without graphical support.

If you have installed a fresh copy of Windows on your computer and are encountering problems with your graphics cards, make sure to download the official drivers from the graphic card manufacturer. Windows drivers to not include proper support for OpenGL.

//==============================================================================
// CHAI3D - OPENGL:
//==============================================================================

//------------------------------------------------------------------------------
// The following definitions allow CHAI3D to compile without the external OpenGL 
// libraries. This mode of compilation is controlled by the flag C_USE_OPENGL.
// Compiling the framework without OpenGL can be very useful if you plan to 
// use CHAI3D for haptic rendering purposes only, or on real-time operating 
// systems such as QNX or VxWorks for instance where OpenGL is not supported. 
//------------------------------------------------------------------------------

#ifndef C_USE_OPENGL

typedef unsigned int                GLenum;
typedef unsigned int                GLuint;
typedef int                         GLint;
typedef int                         GLsizei;
typedef unsigned char               GLboolean;
typedef signed char                 GLbyte;
typedef short                       GLshort;
typedef unsigned char               GLubyte;
typedef unsigned short              GLushort;
typedef unsigned long               GLulong;
typedef float                       GLfloat;
typedef float                       GLclampf;
typedef double                      GLdouble;
typedef double                      GLclampd;

#define GL_FALSE                    0
#define GL_TRUE                     1
#define GL_EXP                      0x0800
#define GL_EXP2                     0x0801
#define GL_UNSIGNED_BYTE            0x1401
#define GL_LINE                     0x1B01
#define GL_POINTS                   0x0000
#define GL_BYTE                     0x1400
#define GL_SHORT                    0x1402
#define GL_UNSIGNED_SHORT           0x1403
#define GL_UNSIGNED_INT             0x1405
#define GL_DEPTH_COMPONENT          0x1902
#define GL_RGB                      0x1907
#define GL_RGBA                     0x1908
#define GL_LUMINANCE                0x1909
#define GL_LUMINANCE_ALPHA          0x190A
#define GL_TEXTURE0                 0x84C0
#define GL_TEXTURE1                 0x84C1
#define GL_TEXTURE2                 0x84C2
#define GL_TEXTURE3                 0x84C3
#define GL_TEXTURE4                 0x84C4
#define GL_POINT                    0x1B00
#define GL_POINTS                   0x0000
#define GL_LINES                    0x0001
#define GL_LINE_LOOP                0x0002
#define GL_LINE_STRIP               0x0003
#define GL_TRIANGLES                0x0004
#define GL_TRIANGLE_STRIP           0x0005
#define GL_TRIANGLE_FAN             0x0006
#define GL_FILL                     0x1B02

#define GL_MODULATE                 0x2100
#define GL_DECAL                    0x2101
#define GL_LINEAR                   0x2601
#define GL_LINEAR_MIPMAP_LINEAR     0x2703
#define GL_CLAMP                    0x2900
#define GL_REPEAT                   0x2901
#define GL_LIGHT0                   0x4000
#define GL_VERTEX_ARRAY             0x8074
#define GLUquadricObj               void
    
#define GL_CLAMP_TO_EDGE            0x812F
#define GL_NEAREST                  0x2600
#define GL_NEAREST_MIPMAP_NEAREST   0x2700

#endif // C_USE_OPENGL

Please Log in or Create an account to join the conversation.

More
05 Apr 2017 13:59 #5

Regarding you question about the Phantom haptic device:

  1. Which model are you using?
  2. Have you installed the OpenHaptics framework?

Please Log in or Create an account to join the conversation.

More
05 Apr 2017 20:52 #6

Hi,

I am using Phantom Omni

Regarding Installation - These are the two software that i installed

PDD v5.1.9(for Firewire or Parallel devices (Interface) from
support1.geomagic.com/Support/5605/5668/...aptic-Device-Drivers

and open Haptics from
3dsystems.teamplatform.com/pages/102774?t=r4nk8zvqwa91


File - system/CGlobals.h
// #define C_USE_OPENGL

and replaced
#ifndef C_USE_OPENGL
....
...
#endif // C_USE_OPENGL

with the one that specified. But still errors persisted,...

Attachment 1111.JPG not found

Attachments:

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum