Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
VTK
VTK
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 582
    • Issues 582
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 161
    • Merge Requests 161
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • VTK
  • VTKVTK
  • Issues
  • #17760

Closed
Open
Opened Jan 07, 2020 by Cory Quammen@cory.quammenMaintainer

Rendering artifacts when zoomed in and no point normals are associated with geometry

If you zoom in far enough in a VTK render window when the camera is using parallel projection and the visibility geometry does not have normals associated with its points, you may see a speckled pattern. This is most easily reproduced in ParaView:

  • Start ParaView
  • Load the can.ex2 example dataset
  • Turn on the Camera Parallel Projection property.
  • Use the right mouse button to zoom in. A pattern like the following will appear:

image

From a discussion with @ken-martin, the likely cause is the polygon surface normal calculation made in the fragment shader used by the mapper when no normals are provided. This calculation relies on the dfdx and dfdy builtin variables, and Ken’s suspicion is that these take on wonky values when you are zoomed way in. Possible solution: compute polygon normal in the geometry shader instead of using dfdx/dfdy. Tradeoff in performance - fragment shader should be faster because logic in there will be removed, but the addition of a geometry shader may slow things down.

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: vtk/vtk#17760