PDA

View Full Version : Write a 2d-rasterizer as pixel shader?



Linuxhippy
10-01-2007, 02:13 PM
Hello,

I currently have the problem that most OpenGL drivers/gpus provide very varying results when using antialiasing for 2D shapes.

What I am looking for is a 2D rasterizer written as GLSL pixel shader - which takes coordinates and other state-information from an uploaded texture and does painting in batch-style.

Does anybody know wether somebody already has done research in this area?

Thank you in advance, lg Clemens

Zengar
10-01-2007, 02:52 PM
What is "batch-style painting"?

Linuxhippy
10-02-2007, 01:02 AM
well you can upload the rendering-command to a texture and the shader can rasterize/paint several shapes in one go.

What I wonder wether such an implementation does already exist, or which level of abstraction I should choose (full rasterization process, only scalines, ...).

lg Clemens