<div dir="ltr">Hello Tom!<br><br>Looks like there was an issue in uploading the screenshot? <br><br><span><span>Could you post a minimal/complete/reproducible example of the code that you use? Maybe someone will be able to spot the issue just by looking at the code.<br><br>-- Vaillancourt<br><br></span></span><br>On Tuesday, 27 October 2020 18:58:06 UTC-4, Tom Pollok wrote:<blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><div>Hello,</div><div><br></div><div> im trying to render a texture to an
<span><span>quadrilateral</span></span>. TheĀ
<span><span>quadrilateral</span></span> is the calculated by the intersection view frustum with aplane. So the image basically a perspective projection of the original image. <br></div><div><br></div><div><img alt="" width="533px" height="164px"></div><div><br></div><div>Unfortunately the texture coordinates are not interpolated correctly such that the triangles look wrong.</div><div><br></div><div>
<span><span>I know that is is a very basic computer graphics problem. But i have some trouble solving it.</span></span>
</div><div>Does anyone have solved this problem already for arbitrary
<span><span>quadrilaterals? My guess would be using fragment shaders, but im not experienced in with GLSL. Another option is transforming the texture using a homography and then rendering a quad, but it feels like this the brute force solution.</span></span></div><div><span><span><br></span></span></div><div><span><span>Id be very thankful if somebody could help me. Ideally of somebody knows where this problem has been solved already with openscenegraph.<br></span></span>
</div></blockquote></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/7f2f6ce0-b2ef-481a-8ecd-213332c18608o%40googlegroups.com?utm_medium=email&utm_source=footer">https://groups.google.com/d/msgid/osg-users/7f2f6ce0-b2ef-481a-8ecd-213332c18608o%40googlegroups.com</a>.<br />