View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0015583VTK(No Category)public2015-07-15 10:562015-08-05 10:54
ReporterMatthew 
Assigned ToT.J. Corona 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version6.3.0 
Summary0015583: Rendering error in VTK 6.2.0 when using Opengl2
DescriptionIf you enable edge visibility on a vtkActor, render the actor, then later disable edge visibility, and render the actor. The actor will be rendered in such a way that you can still see lines from inner faces. (You need to be rendering an actor with inside faces, like an actor where you have 10 cubes right next to each other in each direction.

The issue is caused by GL_POLYGON_OFFSET_FILL being left enabled.

The file that needs modifying is:
Rendering\OpenGL2\vtkOpenGLPolyDataMapper.cxx

In:
void vtkOpenGLPolyDataMapper::RenderPieceStart(vtkRenderer* ren, vtkActor *actor)

bool draw_surface_with_edges =
    (prop->GetEdgeVisibility() && prop->GetRepresentation() == VTK_SURFACE);

if ( this->GetResolveCoincidentTopology() || draw_surface_with_edges)
{
glEnable(GL_POLYGON_OFFSET_FILL);

But then in
void vtkOpenGLPolyDataMapper::RenderPieceFinish(vtkRenderer* ren, vtkActor *vtkNotUsed(actor))

if ( this->GetResolveCoincidentTopology())
{
glDisable(GL_POLYGON_OFFSET_FILL);


GL_POLYGON_OFFSET_FILL is only disabled if GetResolveCoincidentTopology even though it was enabled by either GetResolveCoincidentTopology or EdgeVisibility. Which causes GL_POLYGON_OFFSET_FILL to remain enabled when EdgeVisibility is enabled and GetResolveCoincidentTopology is disabled. This results in the incorrect rendering issue.
TagsNo tags attached.
ProjectTBD
Typeincorrect functionality
Attached Files

 Relationships

  Notes
(0034891)
T.J. Corona (developer)
2015-08-05 10:54

This problem has been fixed in 6.3.0.

 Issue History
Date Modified Username Field Change
2015-07-15 10:56 Matthew New Issue
2015-08-05 08:10 Utkarsh Ayachit Assigned To => T.J. Corona
2015-08-05 10:53 T.J. Corona Assigned To T.J. Corona => T.J. Corona
2015-08-05 10:54 T.J. Corona Note Added: 0034891
2015-08-05 10:54 T.J. Corona Status backlog => closed
2015-08-05 10:54 T.J. Corona Resolution open => fixed
2015-08-05 10:54 T.J. Corona Fixed in Version => 6.3.0


Copyright © 2000 - 2018 MantisBT Team