kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #38174
Re: OpenGL rendering, etc
-
To:
<kicad-developers@xxxxxxxxxxxxxxxxxxx>
-
From:
Vesa Solonen <vesa.solonen@xxxxxxxx>
-
Date:
Wed, 24 Oct 2018 19:43:22 +0300
-
Autocrypt:
addr=vesa.solonen@xxxxxxxx; prefer-encrypt=mutual; keydata= xsDiBEiy9EERBAD82hFx3nitjEVNCtkuedqJkwrBgNRsQIsR4zmT0Oy1okWnkzSRyEZHkesA HQy5d5z1OAGSn8BHEL2tJdQKbOCRhEL21yj35T81euDhD3q7pAxrJwwYz5wAyJpZ6ejMGG/g WOrsn5YpdkpR7RxdQ8GUAf7okUoQDemWNY9F8ftZ4wCg+cTF1WmXVPhzKBwy5GVMpTfQehcD /REoeVu4bwm2wTOQpkbnYdR7jJ8XyaAhZVpciWkrm0EH3ES7WhVDmaXzWb8gThzKjurnth6U s4nV7o9vG06sMDzf2siu/Ugbn/QZ1HW9lw2GeXBxwdSbctKiKOukTGNyb2xHN9upETAh9b6f vhNa0nlk+k4kuzvilMmuFSNFZ23HA/4r6kEfa16uK3oR5GQScvIojo95b3LgY2KsrFD6A0b0 61YLZusEB6gIiZ/DcJ+FQy8hQ6u04AmOOXwrneCfluzJFGhaHwOEJj9jwEQN2JMqgjHuMD+v 99Vph+Lzdm9UGOodPKGJ1JL3YyY9QYHj4IedTmDngJaI/2aRB/pgbB2NZc0qVmVzYSBTb2xv bmVuIDx2ZXNhLnNvbG9uZW5AcmZzaGFtYWFuaXQuZmk+wmIEExECACIFAlG02fQCGwMGCwkI BwMCBhUIAgkKCwQWAgMBAh4BAheAAAoJEHdUiFKgf4oRxqQAoLbMaHJyWTf3A5H/esvkN9mK piBLAKCJG8iROdaY5CTOrWIb4L/mlxOV7c7BTQRIsvRGEAgA2v+TJXKtFv5TFtqy2egg0ARX X0i8+LtRtPtsXOCWUN51sSX8/1o23MPSzynMJNOsZ8yMEU7I9dDpEnZLAcaBGNrxj6V69uM1 m4aAyds6Qqwm+/nyBDz0zwQwayQjypqRahNTzH9cjIbXOJElh7otGvfI/8PBKCWzu6t/DjiM 2+azFTodADR8w/VXtSmoz5l+ouqJbHKE3xsNFFWnUbfit3EgGrpq16GYFNKm4+h8DIGyvz4Y ycB2DmuoAq+toOUeiIzH1GYe2pwjVzLVG+8x6kU/DRl7Qzst8P+eX4uMSfdepqUVIvYO00+v vYuL9Dkfqiz2lzhuTy+uUmlwvE8A6wADBQf9FD+wb0OWOlF7rG4f3DmdHmKQIXunFy64khfX h4NnCmJspOfCQ9I+cw3vTeX9UwOHtBKFgUkt10lXYSoaaf7cXG7pTUTUKuy8IZeVd1e91WYq edTGYo9pI99mPP8q5mQFN4sV/pyYycyx8DREm7VMuprjAsoeZ6db6ZW+oweI6GkztCtXdPl4 Ui84FSS/CbSrXIoG9WkXz5DyHrfcEJpbYPMkY+ISnENlt5od/UdD+QlnqP907EJQhnBnftSm yrGzPx3Mzno3kDGBwzbmy7HRBFs4dTfFbgZnp1JJNbfStDtNlbgO3mIeHDG4J6shTNe/Bg2m Eauj7I/dpMnflWmkKMJJBBgRAgAJBQJIsvRGAhsMAAoJEHdUiFKgf4oRLjcAn19oVj+nNWXC 9SRamlTcNfp99bByAKD1R/uGemuAaJz3A46tUaEbVQ7Fww==
-
In-reply-to:
<b0063614-5198-cd11-88b0-a69b52a384ed@cern.ch>
-
Openpgp:
preference=signencrypt
-
User-agent:
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1
Tomasz Wlostowski kirjoitti 24.10.2018 klo 17.04:
> On 24/10/2018 13:32, Jeff Young wrote:
>> If the pixel snapping happens in the shader then ERC wouldn’t know about it. We just have to make sure that the snap direction is uniform so we don’t end up with visual mismatches between wires & pins (for instance).
>
> I'll have a look at it.
>
> T.
The pixel fitting has to be applied to global coordinate system as it is
scaled to display and back, not just per item. I had a brief discussion
with Gschem renderer author when the thing was new, somewhere between
2008–2012. He used some neat tricks, so maybe have a look at the code.
Some hopefully related links follow:
[1] https://github.com/rougier/gl-agg
[2] http://jcgt.org/published/0002/02/08/paper.pdf
[3] http://www.hpl.hp.com/techreports/Compaq-DEC/WRL-98-2.pdf
[4] https://github.com/memononen/nanovg
[5] https://www.shadertoy.com/view/ltcBzj
[6] http://vispy.org/
After playing with the last one and GnuRadio my impression is that
Python_guitoolkitofchoice, OpenGL view, and C++ processing might be the
most productive combo regarding lines of code, performance and developer
base. If we are providing a python (GUI) scripting interface anyway, why
not draw the slow main menus and GUI buttons as well?
-Vesa
Follow ups
References
-
OpenGL rendering, etc
From: Vesa Solonen, 2018-10-21
-
Re: OpenGL rendering, etc
From: Tomasz Wlostowski, 2018-10-22
-
Re: OpenGL rendering, etc
From: Michael Steinberg, 2018-10-24
-
Re: OpenGL rendering, etc
From: Jeff Young, 2018-10-24
-
Re: OpenGL rendering, etc
From: Tomasz Wlostowski, 2018-10-24