<div dir="ltr">Hi,<div><br></div><div>I'm trying to write an addon where I'll need to draw a quad connecting four markers.</div><div>For that I need to be able to map the markers coordinates to 'screenspace' glVertex2f coordinates.</div>


<div><br></div><div>I can't match the drawn shape with the image though.</div><div>This is a test drawing a quad that was suppose to match the image 1:1</div><div><br></div><div><a href="http://www.pasteall.org/pic/show.php?id=60483" target="_blank">http://www.pasteall.org/pic/show.php?id=60483</a><br>


</div><div>Not only there is an 'offset', but the offset changes if I pan around the region.<br></div><div><br></div><div>Here is a sample script with the bare minimum to illustrate the problem:</div><div><a href="http://www.pasteall.org/46273/python" target="_blank">http://www.pasteall.org/46273/python</a><br>


</div><div>(draw_rectangle is where the transformation is happening).<br></div><div><br></div><div>If anyone has any suggestion it would be much appreciated.<br></div><div>Thanks,<br></div><div>Dalai</div><div><br></div>

<div>
<br></div><div><br><div><br clear="all"><div>--<br><a href="http://blendernetwork.org/dalai-felinto" target="_blank">blendernetwork.org/dalai-felinto</a><br><a href="http://www.dalaifelinto.com" target="_blank">www.dalaifelinto.com</a></div>



</div></div></div>