Strange rendering problem - renderwindow becomes black

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Strange rendering problem - renderwindow becomes black

vinmean
This rendering issue occurs randomly. The render window partially hides all
the actors.  I have attached a video link to the email. It shows the object
that I rendered using vtk. In the video I try to interact with the window. I
have also captured how the object should have looked like in the same video
towards the end. Please let me know what kind of bug this is and how to fix
it.

<iframe width="560" height="315"
src="https://www.youtube.com/embed/jdtVxofwnaI" frameborder="0"
allow="autoplay; encrypted-media" allowfullscreen></iframe>





--
Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ

Search the list archives at: http://markmail.org/search/?q=vtkusers

Follow this link to subscribe/unsubscribe:
https://public.kitware.com/mailman/listinfo/vtkusers
Reply | Threaded
Open this post in threaded view
|

Re: Strange rendering problem - renderwindow becomes black

vinmean
I think I found the problem with my code. This happens after I set the user
transform for the actors in the render window. I am probably setting a wrong
user transform.



--
Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ

Search the list archives at: http://markmail.org/search/?q=vtkusers

Follow this link to subscribe/unsubscribe:
https://public.kitware.com/mailman/listinfo/vtkusers
Reply | Threaded
Open this post in threaded view
|

Re: Strange rendering problem - renderwindow becomes black

vinmean
This post was updated on .
The problem is with some of the transformation matrices. But I don't see any
thing wrong with the matrix as the same matrix works well with actors
without textures. Below is one such matrix that gives me this issue.
   
        Eigen::Matrix4d tmat;
  tmat <<   0.997911, -0.00378345,   0.0644943,   0.0259245,
         -0.0180899,    0.941987,    0.335162,    0.129426,
          0.0620209,    0.335629,    -0.93995,   -0.772905,
                  0,           0,           0,           1;

Can some body help me with what could be the possible reason for this issue and how to fix it?



--
Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ

Search the list archives at: http://markmail.org/search/?q=vtkusers

Follow this link to subscribe/unsubscribe:
https://public.kitware.com/mailman/listinfo/vtkusers
Reply | Threaded
Open this post in threaded view
|

Re: Strange rendering problem - renderwindow becomes black

Andras Lasso
Determinant of this matrix is negative, which means that you turn the model inside out. You can use vtkReverseSense or vtkPolyDataNormals (with auto-orientation enabled) to fix it.

Andras


From: vinmean <[hidden email]>
Sent: Tuesday, September 18, 2018 6:39 PM
To: [hidden email]
Subject: Re: [vtkusers] Strange rendering problem - renderwindow becomes black

The problem is with some of the transformation matrices. But I don't see any
thing wrong with the matrix as the same matrix works well with actors
without textures. Below is one such matrix that gives me this issue.
  
        Eigen::Matrix4d tmat;
         tmat <<   0.997911, -0.00378345,   0.0644943,   0.0259245,
         -0.0180899,    0.941987,    0.335162,    0.129426,
          0.0620209,    0.335629,    -0.93995,   -0.772905,
                  0,           0,           0,           1;





--
Sent from: https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fvtk.1045678.n5.nabble.com%2FVTK-Users-f1224199.html&amp;data=02%7C01%7Classo%40queensu.ca%7C88d54845897f4bf2714c08d61db79ef5%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636729071828430400&amp;sdata=FjVCEvm0JWIHwbXQRgWtNdRpStJ3gU0%2BwDj0Sfjyetw%3D&amp;reserved=0
_______________________________________________
Powered by https://na01.safelinks.protection.outlook.com/?url=www.kitware.com&amp;data=02%7C01%7Classo%40queensu.ca%7C88d54845897f4bf2714c08d61db79ef5%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636729071828430400&amp;sdata=6mgDyX8naFmFC7JMMWReUbLp4M9jC1FyQjiEJ8qqCQA%3D&amp;reserved=0

Visit other Kitware open-source projects at https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.kitware.com%2Fopensource%2Fopensource.html&amp;data=02%7C01%7Classo%40queensu.ca%7C88d54845897f4bf2714c08d61db79ef5%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636729071828430400&amp;sdata=fheKAHrKjeLtKRqmXJ0JFHm%2FhvaSa6QxWva9z%2FBUBfo%3D&amp;reserved=0

Please keep messages on-topic and check the VTK FAQ at: https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.vtk.org%2FWiki%2FVTK_FAQ&amp;data=02%7C01%7Classo%40queensu.ca%7C88d54845897f4bf2714c08d61db79ef5%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636729071828430400&amp;sdata=%2F2TsMf9XvU%2BCUbIQYMs9%2B2BwKkoO5fsaJ9%2BxW96krF4%3D&amp;reserved=0

Search the list archives at: https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmarkmail.org%2Fsearch%2F%3Fq%3Dvtkusers&amp;data=02%7C01%7Classo%40queensu.ca%7C88d54845897f4bf2714c08d61db79ef5%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636729071828430400&amp;sdata=7aTYn9vEv%2BFzwOxsv%2FsXXuHMD8n%2FtVJQiaYp%2BRpASC8%3D&amp;reserved=0

Follow this link to subscribe/unsubscribe:
https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpublic.kitware.com%2Fmailman%2Flistinfo%2Fvtkusers&amp;data=02%7C01%7Classo%40queensu.ca%7C88d54845897f4bf2714c08d61db79ef5%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636729071828430400&amp;sdata=QTTo2%2B4PcNSgqxMNFczJnsrrDtdtxHU4u6QD57IG0yQ%3D&amp;reserved=0

_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ

Search the list archives at: http://markmail.org/search/?q=vtkusers

Follow this link to subscribe/unsubscribe:
https://public.kitware.com/mailman/listinfo/vtkusers