[GEM-dev] window with width < height

Nicolas Montgermont nicolas_montgermont at yahoo.fr
Mon Sep 26 18:26:06 CEST 2016


Sorry my fault,
the way I was displaying the framebuffer was not good.
so [perspec -0.8888 0.8888 -1 1 1 20( and [rectangle 3.5555 4]
is the good solution.
Sorry for the noise
n

http://www.nimon.org

Le 26/09/2016 à 18:02, Nicolas Montgermont via GEM-dev a écrit :
> Hello,
>
> I have a window of 16/18 ratio (1920x2160 pixels) and a framebuffer with
> the same dimensions.
> I try to manage the perspec of the frame buffer but don't really
> understand how it is working.
>
> usually if i have a 16/9 ratio, I just send for example [dimen 1920
> 1080, rectangle 1, perspec -1.7777 1.7777 -1 1 1 20(
> and then I can display things fullscreen with for example [rectangle
> 7.11111 4]3
>
> here if i keep height as fixed i do:
> [dimen 1920 2160, rectangle 1, perspec -0.8888 0.8888 -1 1 1 20(
> but if I try to display a [rectangle 3.55555 4] it is far wider than the
> window
> [rectangle 1.8 4] seems closer to what it should look ( I have a
> [translateXYZ 0 0 -4] before the frame buffer.
> a square is far wider than expected as well.
>
> So what perspec should I use?
> Thx in advance,
>
> Nicolas
>




More information about the GEM-dev mailing list