<div dir="ltr">Hello osg forum!<div><br></div><div>My current way of rendering mesh is through GL_TRIANGLES,  </div><div><br></div><div><div class="prettyprint" style="background-color: rgb(250, 250, 250); border-color: rgb(187, 187, 187); border-style: solid; border-width: 1px; overflow-wrap: break-word;"><code class="prettyprint"><div class="subprettyprint"><pre style="color: rgb(0, 0, 0); font-size: medium;"><span style="color: rgb(252, 233, 79);"><span style="color: #000;" class="styled-by-prettify">indices</span></span><span style="color: rgb(190, 192, 194);"><span style="color: #000;" class="styled-by-prettify"> </span></span><span style="color: rgb(214, 187, 154);"><span style="color: #660;" class="styled-by-prettify">=</span></span><span style="color: rgb(190, 192, 194);"><span style="color: #000;" class="styled-by-prettify"> </span></span><span style="font-style: italic; color: rgb(69, 198, 214);"><span style="color: #008;" class="styled-by-prettify">static_cast</span></span><span style="color: rgb(214, 187, 154);"><span style="color: #660;" class="styled-by-prettify"><</span></span><span style="color: rgb(255, 183, 80);"><span style="color: #000;" class="styled-by-prettify">osg</span></span><span style="color: rgb(214, 187, 154);"><span style="color: #660;" class="styled-by-prettify">::</span></span><span style="color: rgb(255, 183, 80);"><span style="color: #606;" class="styled-by-prettify">DrawElements</span></span><span style="color: rgb(214, 187, 154);"><span style="color: #660;" class="styled-by-prettify">*>(</span></span><span style="font-style: italic; color: rgb(69, 198, 214);"><span style="color: #008;" class="styled-by-prettify">new</span></span><span style="color: rgb(190, 192, 194);"><span style="color: #000;" class="styled-by-prettify"> </span></span><span style="color: rgb(255, 183, 80);"><span style="color: #000;" class="styled-by-prettify">osg</span></span><span style="color: rgb(214, 187, 154);"><span style="color: #660;" class="styled-by-prettify">::</span></span><span style="color: rgb(255, 183, 80);"><span style="color: #606;" class="styled-by-prettify">DrawElementsUShort</span></span><span style="color: rgb(214, 187, 154);"><span style="color: #660;" class="styled-by-prettify">(</span></span><span style="color: rgb(255, 106, 173);"><span style="color: #000;" class="styled-by-prettify">GL_TRIANGLES</span></span><span style="color: rgb(214, 187, 154);"><span style="color: #660;" class="styled-by-prettify">));</span></span></pre></div></code></div><div><br></div>here is an example of a cube face mesh </div><div><br></div><div><a href="https://imgur.com/a/AajeO4b">https://imgur.com/a/AajeO4b</a><br></div><div><br></div><div>, where i push in the indices as 0,1,2,2,3,0. </div><div><br></div><div>What i would like to accomplish is creating a facet of vertex 0,1,2,3 by drawing triangles but without visualizing the diagonal line, so that it looks like one single quad. if i draw my elements using GL_LINE_LOOP i accomplish this but that creates complications as the osg intersector does not work since no facets are being created. </div><div><br></div><div>How would you go about solving this issue? Naturally, im flexible in how i generate my mesh, im writing the fragment/vertex shaders myself as well so if there is a way of hiding the line there its an option. </div><div><br></div><div>Thanks in advance, i'll add more information if needed</div><div><br></div><div>//Best regards Dan</div><div><br></div><div><br></div><div><br></div></div>

<p></p>

-- <br />
You received this message because you are subscribed to the Google Groups "OpenSceneGraph Users" group.<br />
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="mailto:osg-users+unsubscribe@googlegroups.com">osg-users+unsubscribe@googlegroups.com</a>.<br />
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/osg-users/f2317fb0-5ca6-4ff8-83d1-174d713d26ef%40googlegroups.com?utm_medium=email&utm_source=footer">https://groups.google.com/d/msgid/osg-users/f2317fb0-5ca6-4ff8-83d1-174d713d26ef%40googlegroups.com</a>.<br />