[Bf-python] drawing callback in clip editor, problems with 'view_to_region'
Dalai Felinto
dfelinto at gmail.com
Wed Oct 9 09:43:46 CEST 2013
Hi,
I'm trying to write an addon where I'll need to draw a quad connecting four
markers.
For that I need to be able to map the markers coordinates to 'screenspace'
glVertex2f coordinates.
I can't match the drawn shape with the image though.
This is a test drawing a quad that was suppose to match the image 1:1
http://www.pasteall.org/pic/show.php?id=60483
Not only there is an 'offset', but the offset changes if I pan around the
region.
Here is a sample script with the bare minimum to illustrate the problem:
http://www.pasteall.org/46273/python
(draw_rectangle is where the transformation is happening).
If anyone has any suggestion it would be much appreciated.
Thanks,
Dalai
--
blendernetwork.org/dalai-felinto
www.dalaifelinto.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.blender.org/pipermail/bf-python/attachments/20131009/435f915e/attachment.html>
More information about the Bf-python
mailing list