ERROR: In D:\lib\VTK-7.0.0\Rendering\OpenGL2\vtkOpenGLRenderWindow.cxx, line 545

//—————————————【转自:bai_Dreamer】—————————————-//
ERROR: In D:\lib\VTK-7.0.0\Rendering\OpenGL2\vtkOpenGLRenderWindow.cxx, line 545
vtkWin32OpenGLRenderWindow (06FFAC20): GL version 2.1 with the gpu_shader4 extension is not supported by your graphics driver but is required for the new OpenGL rendering backend. Please update your OpenGL driver. If you are using Mesa please make sure you have version 10.6.5 or later and make sure your driver in Mesa supports OpenGL 3.2.

ERROR: In D:\lib\VTK-7.0.0\Rendering\OpenGL2\vtkOpenGLRenderWindow.cxx, line 545
vtkWin32OpenGLRenderWindow (06FFAC20): GL version 2.1 with the gpu_shader4 extension is not supported by your graphics driver but is required for the new OpenGL rendering backend. Please update your OpenGL driver. If you are using Mesa please make sure you have version 10.6.5 or later and make sure your driver in Mesa supports OpenGL 3.2.

ERROR: In D:\lib\VTK-7.0.0\Rendering\OpenGL2\vtkShaderProgram.cxx, line 369
vtkShaderProgram (0922F2E0): 1: #version 120
2: #extension GL_EXT_gpu_shader4 : require
3: #define highp
4: #define mediump
5: #define lowp
6:
7: /*=========================================================================
8:
9: Program: Visualization Toolkit
10: Module: vtkPolyData2DFS.glsl
11:
12: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
13: All rights reserved.
14: See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
15:
16: This software is distributed WITHOUT ANY WARRANTY; without even
17: the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
18: PURPOSE. See the above copyright notice for more information.
19:
20: =========================================================================*/
21:
22: uniform int PrimitiveIDOffset;
23:
24: // Texture coordinates
25: varying vec2 tcoordVCVSOutput; uniform sampler2D texture1;
26:
27: // Scalar coloring
28: uniform vec4 diffuseColor;
29:
30: // Depth Peeling
31: //VTK::DepthPeeling::Dec
32:
33: // the output of this shader
34: //VTK::Output::Dec
35:
36: // Apple Bug
37: //VTK::PrimID::Dec
38:
39: void main()
40: {
41: // Apple Bug
42: //VTK::PrimID::Impl
43:
44: gl_FragData[0] = diffuseColor;
45: gl_FragData[0] = gl_FragData[0]*texture2D(texture1, tcoordVCVSOutput.st);
46: //VTK::DepthPeeling::Impl
47: }
48:

这是由于VTK只支持英伟达的显卡。
1.如果出现这种问题,首先确保你有独立显卡(英伟达的)。
2.找开显卡设置面板,将全局设置那一栏下的首先图形处理器设为高性能NVDIA处理器。

【参考:】
http://blog.csdn.net/eggsdandan/article/details/75577561

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值