pouët.net

4k's: display adapter choice!

category: general [glöplog]
iq: great stuff.
added on the 2009-08-08 16:48:56 by superplek superplek
AFAIK there's no such thing as adapter selection in opengl, so it's a bit cumbersome to make a window at the other monitor and maybe change it's resolution.
Quote:
Of course for current trendy "we only render one triangle" 4ks it might even work *g*

A lot them uses pixel coordinates to avoid setting up texcoords, vertex shader etc, and then have some gl_FragCoord.xy/vec2(1280,720) etc in the fragment shader.
However if not doing that (I'd say it's mostly relevant for 1k) I think ppl should just do a version running current desktop resolution - it also takes less space than changing resolution...
added on the 2009-08-08 17:02:03 by Psycho Psycho
good points psycho.

but at the end of the day it would just be best if intros had a dialog, in a separate .exe if need be :)

just out of curiosity, how does opengl on windows handle multiple monitor/head/adapter setups?
added on the 2009-08-08 17:20:28 by superplek superplek
It doesn't. Though for windowed apps the drivers are good enough to figure things out nowadays (i can still remember the times when i had to disable the second screen whenever i wanted to start an opengl app), so the good old "make window decorationless and always-on-top, resize to coordinates of the desktop it's on and then pray" technique works quite well :)
added on the 2009-08-08 17:24:41 by kb_ kb_
... which is of course way more overhead than wglFullscreenPleaseKTHXBYE().
added on the 2009-08-08 17:34:54 by kb_ kb_
Yea, I used windowed mode some time, but the dang borders suck. sucksucksuck. El bordars suckez. Et bordare suckerinare. SIE SAUGEN!
added on the 2009-08-08 17:49:36 by Salinga Salinga
anyone have gargajs code available? untergrund.net seems to be broken.
kb_: I would just like to say that words like "plethora", being used correctly, gets me all jiggly.
added on the 2010-09-02 09:44:50 by gloom gloom
added on the 2010-09-02 11:08:34 by Hyde Hyde
An exe loader has been suggested before, I think it's not a bad idea. Have the exe itself that runs at some default res + settings, plus a nice gui to configure the command line parameters. We could make this pretty generic by having a standard GUI app, and supplying some kind of config file with the 4k that tells the gui what settings it supports and what the corresponding command line parameter is.

And btw, this is actually way more useful on mac (perhaps linux too?) where running a 4k from an icon isn't really practical, and digging out the terminal is a pain.

Alternatively, a 4k that runs with defaults plus a 2nd exe that has a nice gui + parameters where we don't care what size it is?
added on the 2010-09-02 11:14:47 by psonice psonice
psonice, name 10 4kb's that run on mac :-)
True, but I can probably name 10 mac demos that have to be run from the terminal. Ok, maybe 5. ;) It would be useful anyway.
added on the 2010-09-02 12:08:51 by psonice psonice
The dreaded sixteen-legged octopussy! (No, don't actually click the link)
added on the 2010-09-02 12:47:38 by doomdoom doomdoom
I DID NOT CLICK THE LINK!

also: i also like the idea of supplying a bigger sized exe with a menu. look at some trsi 4ks which have done this.
added on the 2010-09-02 13:00:54 by wysiwtf wysiwtf
How about an 'AUTO-DIALOG' option in Crinkler? Leave it yet again to the demoscene 4k hero duo to save the chaotic-lazy party coders from our own volatile selves.

Btw. Can you edit resource dialogs in VS express 2010? Express version of 2005 and 2008 is out. I'm guessing the resource compiler is available so you can hardcode stuff in the .rc file if need be. Beats hacking the binary code for dialogs anyway. .. or messing with win32 widgety things.
added on the 2010-09-02 14:17:53 by Yomat Yomat
or be a man and write your own damn display setup code rasmus

oh wait.. :)
added on the 2010-09-02 14:32:58 by superplek superplek
props to gargajs setup supply btw BUT HOW FUCKING HARD CAN IT BE? THE TIME YOU 4K GUYS SPEND ON DISCUSSING THIS AMOUNTS TO ABOUT 400 TIMES THE TIME YOU NEED TO WRITE A WORKING DIALOG + SETUP
added on the 2010-09-02 14:34:15 by superplek superplek
vid plz!
go make a fullscreenable demo about it
added on the 2010-09-02 15:01:56 by rmeht rmeht
one thing i would certainly do if i'd were to make a 4k again is have some sort of build system where adding another custom config would automatically result in a new executable at the end of the build.
added on the 2010-09-02 15:06:25 by Gargaj Gargaj
superplek: And the time you spent on this thread is about 400 times the time it would take you to swap your monitor cables.
added on the 2010-09-02 15:26:29 by doomdoom doomdoom
Why the hell do you need this fixed anyway. Damn your luxury 'dual monitor' problems! What next? "I have too much gold"? "The least attractive one says 'save it for me'"?
added on the 2010-09-02 15:45:41 by sagacity sagacity
gargaj: thanks
Quote:
And btw, this is actually way more useful on mac (perhaps linux too?) where running a 4k from an icon isn't really practical, and digging out the terminal is a pain.

When digging out a terminal on Linux is pain, you're doin' it wroooong ;)
added on the 2010-09-02 19:44:05 by Y0Gi Y0Gi

login