pouët.net

Go to bottom

TMDC'08

category: general [glöplog]
 
To give a little boost to the upcoming TMDC, I did some research on whether it's possible to use OpenGL in textmode. The answer is yes-ish. I've posted the source to my proof of concept on me homesite at http://iki.fi/sol

Basically you can't use hardware rendering, but the old and trusty microsoft's software implementation works. So while you don't get crazy parallelism and shaders, you still get the convenience of OpenGL fixed pipeline.
added on the 2008-11-01 15:29:05 by sol_hsa sol_hsa
can't you just render to a texture and lock it? surely shoving 80*50*3 bytes of data can't hurt the AGP/PCI-X
added on the 2008-11-01 15:36:02 by Gargaj Gargaj
Switching to fullscreen causes you to lose the opengl context.
added on the 2008-11-01 15:57:50 by sol_hsa sol_hsa
This *so* hurts my oldskool mentalities. While I am thinking of whether or not it's feasible to do a demo on an old PC *at all*, with routines optimized for text mode, you guys are talking about using OpenGL and just rendering to textmode as an afterthought.

Maybe TMDC should really be called the 80x50 compo? :-)
added on the 2008-11-01 19:01:55 by trixter trixter
*sigh*. That's not a discussion I'm about to get into again; this is simply one more way to get there. Simply trying to lower the barrier of entry..

IMO, best textmode demos don't even use libcaca or some other rgb->textmode lib.
added on the 2008-11-01 19:45:53 by sol_hsa sol_hsa
sol: ...but in direct3d, you can reset a lost device, so it should work? (in theory)
added on the 2008-11-01 19:50:27 by Gargaj Gargaj
iIve used opengl and shaders with textmode.

-Created a dummy glut window for the rendering context but didn't show it.
-Ordered gl to render to a texture which was controlled by cg code.
-Created a windows terminal.
-Read the texture back to main memory and filled the terminal with the rgb->text converter i used in this one.

It worked as I expected but i didn't use it anywhere, it was just a proof of concept. And in my opinion it's not more cheating than using caca.
Dont forget Buz's framework: very low barrier to entry there ^_^
http://pouet.net/prod.php?which=51945

How much opengl would it take to render a textured, fogged, wavey tunnel? Clockwerckk used the ray-cylinder intersection to do that in a handful of lines.
added on the 2008-11-01 20:12:20 by GbND GbND
clockwerckk?
optanes: tried that as well, works fine as long as running windowed; switch to a full-screen textmode window, and bang, it's gone.

Starting the app from a fullscreen terminal doesn't work either..
added on the 2008-11-01 20:39:36 by sol_hsa sol_hsa
I'm a Vista fanboy, I can't even switch the terminal to fullscreen :)
Optanes: well, I guess it was just about time for microsoft to wreck TMDC a bit more =)
added on the 2008-11-01 21:27:09 by sol_hsa sol_hsa
clockwerck, last years' winner: http://www.pouet.net/prod.php?which=43567

It's a hassle that vista doesn't do fullscreen console - I'll check whether 7 does, and file a bug against it : D
added on the 2008-11-01 22:22:17 by GbND GbND
whens the deadline again? the first site i find when googling for tmdc says it has ended. sol, did you update all pages? :-)
added on the 2008-11-02 00:16:14 by skrebbel skrebbel
I'm not organizing TMDC anymore =)

The site is http://tmdc.scene.org
added on the 2008-11-02 08:45:31 by sol_hsa sol_hsa
Added a note to taat.fi/tmdc regarding the new compo url.
added on the 2008-11-02 08:53:19 by sol_hsa sol_hsa

login

Go to top