I am getting incorrect shading when rendering a vtkQuadricLODActor with transparency, for both levels: LOD0 and LOD1 when interacting with the scene.
I tried setting the actor’s backface property, also turning the property’s lighting off, which did not help.
If I simply change the actor to a regular vtkActor it renders fine.
Any thoughts on how to improve this visual result? Could this be a bug?
Note: this is VTK 9.0.3.
Also, I’m getting the following warnings at runtime. Has this been fixed in more recent versions?
vtkOpenGLPolyDataMapper:270 WARN| vtkOpenGLPolyDataMapper::GetVertexShaderCode was deprecated for VTK 9.0 and will be removed in a future version. Use vtkOpenGLShaderProperty::GetVertexShaderCode instead.
vtkOpenGLPolyDataMapper:262 WARN| vtkOpenGLPolyDataMapper::SetVertexShaderCode was deprecated for VTK 9.0 and will be removed in a future version. Use vtkOpenGLShaderProperty::SetVertexShaderCode instead.
vtkOpenGLPolyDataMapper:300 WARN| vtkOpenGLPolyDataMapper::GetGeometryShaderCode was deprecated for VTK 9.0 and will be removed in a future version. Use vtkOpenGLShaderProperty::GetGeometryShaderCode instead.
vtkOpenGLPolyDataMapper:292 WARN| vtkOpenGLPolyDataMapper::SetGeometryShaderCode was deprecated for VTK 9.0 and will be removed in a future version. Use vtkOpenGLShaderProperty::SetGeometryShaderCode instead.
vtkOpenGLPolyDataMapper:285 WARN| vtkOpenGLPolyDataMapper::GetFragmentShaderCode was deprecated for VTK 9.0 and will be removed in a future version. Use vtkOpenGLShaderProperty::GetFragmentShaderCode instead.
vtkOpenGLPolyDataMapper:277 WARN| vtkOpenGLPolyDataMapper::SetFragmentShaderCode was deprecated for VTK 9.0 and will be removed in a future version. Use vtkOpenGLShaderProperty::SetFragmentShaderCode instead.
I meet the similar question.Did you solve it?
My screen is follows:
Use vtkOpenGLShaderProperty::SetVertexShaderCode instead.
2023-09-04 07:14:38.001 ( 0.127s) [ 25511640]vtkOpenGLPolyDataMapper:336 WARN| vtkOpenGLPolyDataMapper::GetGeometryShaderCode was deprecated for VTK 9.0 and will be removed in a future version. Use vtkOpenGLShaderProperty::GetGeometryShaderCode instead.
2023-09-04 07:14:38.001 ( 0.127s) [ 25511640]vtkOpenGLPolyDataMapper:328 WARN| vtkOpenGLPolyDataMapper::SetGeometryShaderCode was deprecated for VTK 9.0 and will be removed in a future version. Use vtkOpenGLShaderProperty::SetGeometryShaderCode instead.
2023-09-04 07:14:38.001 ( 0.127s) [ 25511640]vtkOpenGLPolyDataMapper:321 WARN| vtkOpenGLPolyDataMapper::GetFragmentShaderCode was deprecated for VTK 9.0 and will be removed in a future version. Use vtkOpenGLShaderProperty::GetFragmentShaderCode instead.
2023-09-04 07:14:38.001 ( 0.127s) [ 25511640]vtkOpenGLPolyDataMapper:313 WARN| vtkOpenGLPolyDataMapper::SetFragmentShaderCode was deprecated for VTK 9.0 and will be removed in a future version. Use vtkOpenGLShaderProperty::SetFragmentShaderCode instead.