rendering that doesn't involve displaying or printing, usually directed to a buffer or a file.
Questions tagged [off-screen]
117 questions
42
votes
5 answers
How to render offscreen on OpenGL?
My aim is to render OpenGL scene without a window, directly into a file. The scene may be larger than my screen resolution is.
How can I do this?
I want to be able to choose the render area size to any size, for example 10000x10000, if possible?

Rookie
- 4,064
- 6
- 54
- 86
25
votes
4 answers
Render MATLAB figure in memory
Are there any alternatives to using getframe and saveas for saving the contents of a figure to a raster image for further processing?
Approach 1: getframe
h = figure('visible', 'off');
a = axes('parent', h);
% render using `scatter3()` or other…

André Caron
- 44,541
- 12
- 67
- 125
21
votes
1 answer
Creating OpenGL context without window
I'm trying to figure out what is the simplest way to create a windowless OpenGL program for offscreen rendering.
Currently I use this, and it works fine so far: (error checks removed here for clarity)
BOOL create_opengl_context(){
GLuint…

Rookie
- 4,064
- 6
- 54
- 86
19
votes
4 answers
android taking screenshot of offscreen page
I am working on an android application. I have an activity, say A, which fills the entire screen with views..On a button click in A I want to start another activity, say B, which also has some views and controls. I want activity B to be offscreen ,…

Krishnabhadra
- 34,169
- 30
- 118
- 167
18
votes
4 answers
UIView: how to do non-destructive drawing?
My original question:
I'm creating a simple drawing
application and need to be able to
draw over existing, previously drawn content in my drawRect.
What is the proper way to draw on top of existing content
without entirely replacing it? …

George Armhold
- 30,824
- 50
- 153
- 232
17
votes
4 answers
Share OpenGL frame buffer / render buffer between two applications
Let's say I have an application A which is responsible for painting stuff on-screen via OpenGL library. For tight integration purposes I would like to let this application A do its job, but render in a FBO or directly in a render buffer and allow an…

Thomas Vincent
- 2,214
- 4
- 17
- 25
11
votes
3 answers
Invalidate into own bitmap
I wish to off-screen render a Control to some bitmap so that I have quick access to it.
Unfortunately Control.DrawToBitmap seems to draw the entire control on which it is called including all it's child controls. Internally it issues a WM_PRINT…

Frank Razenberg
- 511
- 4
- 17
11
votes
0 answers
Direct2D/C++ - Offscreen Rendering using Bitmap
I already have implemented a Direct2D application for windows desktop application using C++, where I show the graphical results (with points, lines, and ellipses) during the simulation. I keep a buffer for storing the simulation values as long as…

m_drinks_coffee
- 436
- 8
- 24
10
votes
2 answers
Android Animate view from off screen not working
I have a view that is positioned totally off screen and I am trying to animate it onto the screen.
When I call:
view.startAnimation(tA);
nothing happens, tA.initialize and tA.applyTransformation never get called.
If I move the view so that any…

RaiderJ
- 193
- 1
- 7
9
votes
2 answers
Efficient off-screen UIView rendering and mirroring
I have a "off-screen" UIView hierarchy which I want render in different locations of my screen. In addition it should be possible to show only parts of this view hierarchy and should reflect all changes made to this hierarchy.
The difficulties:
The…

Qbyte
- 12,753
- 4
- 41
- 57
8
votes
1 answer
OpenGL ES2.0 offscreen context for FBO rendering
I would like to do offscreen rendering (in console environment without any WS) with FBOs.
I know that it is necessary to create an OpenGL context, and at least a dummy window for any operation, therefore I did the following initialization:
// Step 1…

K0bi
- 101
- 1
- 5
7
votes
1 answer
OpenGL render-to-texture-via-FBO -- incorrect display vs. normal Texture
off-screen rendering to a texture-bound offscreen framebuffer object should be so trivial but I'm having a problem I cannot wrap my head around.
My full sample program (2D only for now!) is here:
http://pastebin.com/hSvXzhJT
See below for some…

metaleap
- 2,132
- 2
- 22
- 40
7
votes
0 answers
Force off screen WebView to draw
I have a slider of WebViews where each WebView perfectly fit the screen size.
The user can scroll left to right and vise versa.
Problem comes when a WebView never shown before comes in the visible area. Its content is preloaded but the whole…

Stnaire
- 1,100
- 1
- 18
- 30
7
votes
2 answers
QGLWidget and fast offscreen rendering
Is it possible to render totally offscreen in a QGLWidget with Qt without the need to repaint the scene to screen thus avoiding totally the buffers flip on monitor?
I need to save every frame generated on the framebuffer but, since the sequence is…

linello
- 8,451
- 18
- 63
- 109
5
votes
1 answer
Painting TRichEdit to a canvas
I'm trying to implement an RTF-capable tool tip window in Delphi XE. To render the rich text, I'm using an off-screen TRichEdit. I need to do two things:
Measure the size of the text.
Paint the text
To accomplish both tasks, I wrote this…

Cobus Kruger
- 8,338
- 3
- 61
- 106