12
votes
4answers
1k views

How can I use the graphics pipeline to render volumetric data based on a density function?

Both graphics APIs (OpenGL and DirectX) devise a well defined pipeline in which several stages are programmable. These programmable stages require to take a fixed minimum amount of data and are ...
1
vote
1answer
101 views

recommended shader pipeline infrastructure in core opengl 3.3

I am writing a game project in Go and I am using an OpenGl 3.3 core context to do my rendering stuff. At the moment I have different types of renderers. Each renderer has it's own pair of vertex- and ...
0
votes
3answers
359 views

Using different shaders on the same model at runtime

I've already asked similar but a bit unclear question here but this time I will be very specific and to the point. Suppose I have an actor which grabs a power up. He starts to glow using bloom shader ...
9
votes
1answer
972 views

Engine Rendering pipeline : Making shaders generic

I am trying to make a 2D game engine using OpenGL ES 2.0 (iOS for now). I've written Application layer in Objective C and a separate self contained RendererGLES20 in C++. No GL specific call is made ...
2
votes
1answer
245 views

Would I perform one pass per effect in Deferred Shading?

I'm implementing deferred shading the first time. Doing so I came up with a conceptual question. First I render the geometry in a framebuffer with muptiple rendering targets for depth, normals, and ...
6
votes
1answer
252 views

GLSL vertex shaders with movements vs vertex off the screen

If i have a vertex shader that manage some movements and variations about the position of some vertex in my OpenGL context, OpenGL is smart enough to just run this shader on only the vertex visible on ...
3
votes
3answers
436 views

How do I cheaply place a watermark over what's rendered in OpenGL 3.0+?

I would like some insight about how to place an image with an alpha, and a certain amount of opacity, on the top of everything that is rendered. What's the cheapest way to do that? I use C++ with a ...
0
votes
1answer
225 views

Dynamically change shader syntax with the help of C++

I'm starting with the programmable pipeline and the shaders in C++ for OpenGL 3.0+, i would love to be able to change some settings on the fly, for example replacing a function with another function, ...
-2
votes
3answers
270 views

There is something like the BigO notation for the GPU world and the programmable pipeline?

I find difficult to study the performance of a shader or a series of statement probably because the OpenGL is a state machine and also the execution is in parallel and not serialized like a standard ...
3
votes
1answer
288 views

Looking for literature about graphics pipeline optimization

I am looking for some books, articles or tutorials about graphics architecture and graphics pipeline optimizations. It shouldn't be too old (2008 or newer) - the newer, the better. I have found ...