I have a viewport that sometimes has an aspect of 1:1, but at other
times its aspect can be 2:1 (width x height). When the viewport is
2:1 my composition is twice as big as I'd like.
I have set up an input in my composition that allows me to express
the aspect ratio of my viewport. This input subsequently causes the
width and height of my billboard to be set accordingly via a couple
of Math patches. This works, but I was wondering if there was a way
the same effect could be achieved without handling it in the
composition e.g. change the viewport aspect so that it is always
1:1 when calling QC to render and then restore the viewport after
(I've not investigated the performance impact of doing this).
You can definitely change the viewport of the GL context before
rendering with the QCRenderer, there should be no performance hit