[osg-users] render quad texture to arbitrary quadrilateral

OpenSceneGraph Users osg-users at lists.openscenegraph.org
Tue Oct 27 15:58:06 PDT 2020


Hello,

im trying to render a texture to an quadrilateral. The  quadrilateral is 
the calculated by the intersection view frustum with aplane. So the image 
basically a perspective projection of the original image. 


Unfortunately the texture coordinates are not interpolated correctly such 
that the triangles look wrong.

I know that is is a very basic computer graphics problem. But i have some 
trouble solving it. 
Does anyone have solved this problem already for arbitrary 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.

Id be very thankful if somebody could help me. Ideally of somebody knows 
where this problem has been solved already with openscenegraph.

-- 
You received this message because you are subscribed to the Google Groups "OpenSceneGraph Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to osg-users+unsubscribe at googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/osg-users/0b414fe3-1ee4-4b9a-99c6-8b8bc0eccb54n%40googlegroups.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20201027/9ef6fac3/attachment.html>


More information about the osg-users mailing list