PDA

View Full Version : render in command line



eischel
12-01-2005, 09:41 PM
Hi,

is it possible to render to texture and save it to a file without opening an opengl window and context, like from plain command line.

thx in advance

/e

jide
12-02-2005, 02:03 AM
Check for Mesa

Aeluned
12-02-2005, 10:10 AM
You need a valid rendering context before you can do any rendering, so in short, no.

jide
12-03-2005, 01:51 AM
Originally posted by Aeluned:
You need a valid rendering context before you can do any rendering, so in short, no.I'm not really sure about this Aeluned, but you might be true. However that has already been discussed in those forums, but can't remember it.
Mesa OS is meant to be an off-screen GL renderer, that's almost all what I'm sure.

dmy
12-06-2005, 04:43 PM
interesting...

the RC is mandatory: it is the data structure wich keeps opengl together... but nothing prevent it to be tied to a *logical* graphics system.

OSMesa can render to offscreen framebuffers, and probably works somehow on the line...

i suppose the only thing, renderings won't be accelerated... since probably the temporary framebuffer won't be in video memory...
but who knows.

btw, why do you wish to render to a texture, and then save the pixels ?
why don't simply render and save the framebuffer ?

eischel
12-08-2005, 09:11 AM
thx for the answers. about this issue: i want to render a small ascii animation like this:

- render frame with opengl to texture/memory
- convert to ascii
- display it in ascii mode

sounds useless - i know.. :)

any idea, how to achieve this?
[i dont want to display the ascii converted texture as fonts in the RC - sounds like more useless stuff :) ]

thx in advance


Originally posted by dmy:
interesting...

the RC is mandatory: it is the data structure wich keeps opengl together... but nothing prevent it to be tied to a *logical* graphics system.

OSMesa can render to offscreen framebuffers, and probably works somehow on the line...

i suppose the only thing, renderings won't be accelerated... since probably the temporary framebuffer won't be in video memory...
but who knows.

btw, why do you wish to render to a texture, and then save the pixels ?
why don't simply render and save the framebuffer ?