Hallo Iohannes,
You said something that I find interesting as I'm trying to learn Gem,
The height of the GemWin will always be 4 units? How's that?
Where was I supposed to find about that? I have read a few documentations and none of them specified this... Do you recommend one in particular?
Jé
IOhannes m zmoelnig a écrit :
Roman Haefeli wrote:
hi
i'd like to show some images in fullscreen-mode with gem. since it is cheaper to use [pix_texture] than to draw the image directly, i draw a rectangle that fits exactly in the gem-window and apply the image as a texture. i plan to create an application that will be used on different machines with different displays. at the moment i have to change the dimensions of the [rectangle] manually when i use the patch on a machine with different display-resolution.
no you don't!
i think there is a relation between the used resolution and x- and y-values of [rectangle], but i failed finding it. is there a way to calculate these values from the resolution in order to fit the [reactangle] exactly into the gem-window? this would allow to write the actual resolution in a config-file whitout the need of changing the patch.
the only problematic thing that can happen to you is when your aspect-ratio changes. a rectangle that covers the full-screen on 500x500 will not cover the entire screen on 800x600; however: the same rectangle that covers 1024x768 will also cover a 1600x1200 screen (or a 320x240 window)
note: the height of the gemwindow will always be 4 units (the width will change with the aspect-ratio)
note: you will probably want to keep the aspect-ratio in order to not distort your images)
mf.a.r IOhannes
PS: if you find that i am talking non-sense, then you are likely to have discovered a bug
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list