<div dir="ltr"><div>Dear VTKusers</div><div><br></div><div>I am trying to add vtkfollower to vtkrenderer for indicating the chosen point.</div><div><br></div><div>textured vtkfollower is represented correctly, but in the renderer, if I look closer (camera comes closer to polydata) it's getting really slow(frame drop)</div><div><br></div><div>then, if I move camera far from model its rendering performance is going back to normal.</div><div><br></div><div>and the boundary of image turned into black. I did not set the edge line or something might be related.</div><div><br></div><div>here is the code.</div><div><br></div><div>why is this situation happening? Did I something in a wrong way?</div><div> </div><div><br></div><div><br></div><div><span style="white-space:pre">                  </span>m_SourceFromQrc = vtkSmartPointer<vtkQImageToImageSource>::New();</div><div><span style="white-space:pre">                       </span></div><div><span style="white-space:pre">                      </span>m_SourceFromQrc->SetQImage(&m_qimageFromQrc);</div><div><span style="white-space:pre">                  </span>m_SourceFromQrc->Update();</div><div><br></div><div><span style="white-space:pre">                        </span>m_spVTKTexture = vtkSmartPointer<vtkTexture>::New();</div><div><span style="white-space:pre">                    </span></div><div><span style="white-space:pre">                      </span>m_spVTKTexture->SetInputConnection(m_SourceFromQrc->GetOutputPort());</div><div><span style="white-space:pre">                   </span>m_spVTKTexture->Update();</div><div><br></div><div><span style="white-space:pre">                 </span>m_spVTKPlane = vtkSmartPointer<vtkPlaneSource>::New();</div><div><span style="white-space:pre">          </span></div><div><span style="white-space:pre">                      </span>m_spVTKPlane->SetNormal(0.0, 0.0, 1.0);</div><div><br></div><div><span style="white-space:pre">                   </span></div><div><span style="white-space:pre">                      </span>m_spVTKTextureMappedPlane = vtkSmartPointer<vtkTextureMapToPlane>::New();</div><div><span style="white-space:pre">                       </span></div><div><span style="white-space:pre">                      </span>m_spVTKTextureMappedPlane->SetInputConnection(m_spVTKPlane->GetOutputPort());</div><div><br></div><div><span style="white-space:pre">                  </span>m_planeDataMapper = vtkSmartPointer<vtkOpenGLPolyDataMapper>::New();</div><div><span style="white-space:pre">                    </span></div><div><span style="white-space:pre">                      </span>m_planeDataMapper->SetInputConnection(m_spVTKTextureMappedPlane->GetOutputPort());</div><div><br></div><div><br></div><div><span style="white-space:pre">                    </span>double followerOriginPoint[3] = { 0.0 };</div><div><span style="white-space:pre">                      </span>followerOriginPoint[1] = -1 / 2.0;</div><div><br></div><div><span style="white-space:pre">                   </span>m_follower = vtkSmartPointer< vtkFollower>::New();</div><div><span style="white-space:pre">                      </span>m_follower->SetOrigin(followerOriginPoint); </div><div><br></div><div><span style="white-space:pre">                     </span>m_follower->SetPosition(</div><div><span style="white-space:pre">                           </span>pos[0] - followerOriginPoint[0],</div><div><span style="white-space:pre">                              </span>pos[1] - followerOriginPoint[1],</div><div><span style="white-space:pre">                              </span>pos[2] - followerOriginPoint[2]);</div><div><span style="white-space:pre">                     </span>m_follower->SetScale(6);</div><div><span style="white-space:pre">                   </span>m_follower->SetMapper(m_planeDataMapper);</div><div><span style="white-space:pre">                  </span>m_follower->SetTexture(m_spVTKTexture);</div><div><br></div><div><span style="white-space:pre">                   </span>m_follower->SetCamera(getRenderer(m_rendererType)->GetActiveCamera());</div><div><span style="white-space:pre">                  </span>m_follower->VisibilityOn();</div><div><span style="white-space:pre">                        </span>m_follower->ForceOpaqueOff();</div><div><span style="white-space:pre">                      </span>getRenderer(m_rendererType)->AddActor(m_follower);</div><div><br></div><div>I appreciate you in advance.</div></div>