Extra lines in osgFX::Outline #1316
-
Hello, I'm currently using osgX::Outline to show which model is currently selected by a user. When testing this on various files, there appear to be extraneous lines connecting some of the vertices. I included a sample image with an unmodified Stanford Bunny OBJ below. Is there anything I can do to remove these lines and produce a clean outline? Any nudge in the right direction is appreciated. Thank you very much, |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
At a guess there could be an issue in the mesh that it highlighted by forcing to wireframe for the outline. vsgFX::Outline is very basic technique, written almost 2 decades ago, it might not be the best tool for the job these days. |
Beta Was this translation helpful? Give feedback.
-
Thank you for the quick reply, Robert! That makes sense. Is there a preferred technique to generate an outline that is more recent within OSG? Unfortunately I am unable to upgrade to VulkanSceneGraph at this time as this is a smaller component of a larger OSG project. |
Beta Was this translation helpful? Give feedback.
-
How to implement it will depend on the rest of your application/data. I know nothing about that so can't comment in detail. Go look online for different techniques for rendering outlines and see what fits your application/data usage case best. |
Beta Was this translation helpful? Give feedback.
-
I read https://bgolus.medium.com/the-quest-for-very-wide-outlines-ba82ed442cd9 recently, which has interesting information. |
Beta Was this translation helpful? Give feedback.
-
Thank you for sharing! It turns out this was a bit more of a complex problem than I was originally envisioning, but I'm seeing a few ways it can get done now. Appreciate it! |
Beta Was this translation helpful? Give feedback.
At a guess there could be an issue in the mesh that it highlighted by forcing to wireframe for the outline. vsgFX::Outline is very basic technique, written almost 2 decades ago, it might not be the best tool for the job these days.