Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • VTK VTK
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 830
    • Issues 830
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 232
    • Merge requests 232
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • VTKVTK
  • VTKVTK
  • Issues
  • #15775
Closed
Open
Issue created Oct 12, 2015 by Kitware Robot@kwrobotOwner

vtkTextActor disappears when there is a vtkLODActor with BackfaceCullingOn

This issue was created automatically from an original Mantis Issue. Further discussion may take place here.


This is the same issue reported in #12588 (closed) but with vtkLODActor.

When there is a vtkLODActor with BackfaceCullingOn drawn just before a vtkTextActor than the vtkTextActor disappears.

This due to GL_CULL_FACE state is leaked (set in vtkProperty::Render) to the next vtkTextActor render state.

See the attached example. When you press 'n' which changes the culling setting of the 2nd sphere, the text disappears. 'b' changes the culling of the first sphere.

I think the problem is that the property's PostRender() method is not called after Render() in vtkLODActor.cxx. https://github.com/Kitware/VTK/blob/28aebaa3c3a722edd57275c35c4e7dbe1cf8cabc/Rendering/LOD/vtkLODActor.cxx#L208

Whereas in vtkActor.cxx, it is called. https://github.com/Kitware/VTK/blob/22e22f62315cd5ea391facfa13074205e6534a1d/Rendering/Core/vtkActor.cxx#L183

Main.cpp

Edited Oct 23, 2018 by Ben Boeckel
Assignee
Assign to
Time tracking