Questions tagged [rasterizing]

Rasterization (or rasterization) is the task of taking an image described in a vector graphics format (shapes) and converting it into a raster image (pixels or dots) for output on a video display or printer, or for storage in a bitmap file format.

In normal usage, the term refers to the popular rendering algorithm for displaying three-dimensional shapes on a computer. Rasterization is currently the most popular technique for producing real-time 3D computer graphics. Real-time applications need to respond immediately to user input, and generally need to produce frame rates of at least 30 frames per second to achieve smooth animation.

Definition

278 questions
4
votes
1 answer

How to subset (classify ) raster based on another raster grid cells values?

How to reclassify (subset) a raster r1 ( of the same dimension and extent as r2) based on following conditions in r2 in the given example. Conditions: If the grid cells values of r2 are >0.5, retain corresponding value and adjacent 2 grids cells…
Lily Nature
  • 613
  • 7
  • 18
4
votes
1 answer

Draw a triangle to pixel array

I have to add a triangle to a pixel array. Here's what I have : An array representing pixels in this form : [r, g, b, a, r, g, b, a, ...] pixel density Image width & height My triangle : {p0: {x: 5, y: 20}, p1: {x: 65, y: 220}, p2: {x: 10, y:…
Rylyn
  • 333
  • 3
  • 10
4
votes
3 answers

How to use Bresenham's line drawing algorithm with sub pixel bias?

Bresenham's line drawing algorithm is well known and quite simple to implement. While there are more advanced ways to draw anti-ailesed lines, Im interested in writing a function which draws a single pixel width non anti-aliased line, based on…
ideasman42
  • 42,413
  • 44
  • 197
  • 320
4
votes
6 answers

Projecting a 3d sphere into a 2d circle on the screen

What are some rasterization algorithms that can just project a 3d sphere into a pixel grid? I want to avoid ray casting. Essentially, given a 3d coordinate and a radius, is there a quick way to just create a 2d circle/ellipse on a pixel grid? For…
Herve
4
votes
1 answer

Is there a good integer only line rasterization algorithm?

I've been working on building a simple 3d graphic engine and I'm trying to find a good integer based line rasterization algorithm. ( I'm not trying to re-invent the wheel, I'm trying to get a deeper understanding of wheels). Are there any line…
Jason Hernandez
  • 2,907
  • 1
  • 19
  • 30
4
votes
1 answer

UICollectionView Cells and Rasterizing

I recentlty discovered that by adding this before returning my collection view cell improves scrolling animation performance (smoothness). cell.layer.shouldRasterize = YES; cell.layer.rasterizationScale = [UIScreen mainScreen].scale; If my cell…
DogCoffee
  • 19,820
  • 10
  • 87
  • 120
4
votes
0 answers

Curve rasterization to pixels

I need algorithm for rasterize a curve in to pixels example http://i54.tinypic.com/ffc0n9.png I tried apply DDA line algorithm for control points, but I didn't give good result. Also I try enlarge curve (for example in 3 times), and then…
studyman
  • 41
  • 4
4
votes
1 answer

C/C library to convert SVG to raster.

Does anybody knows some free or not free library for converting svg to raster image (preferably to png). I see that there are ImageMagic, GraphicMagic, librsvg. But I can't to figure out how to use them or are suitable to my issue. I need to do…
dmigous
  • 167
  • 1
  • 3
  • 14
3
votes
1 answer

Why Bresenham's line algorithm more efficent then Naive algorithm

For my graphics course we were taught the Naive line rasterizing algorithm then Bresenham's line drawing algorithm. We were told computers are integer machines which is why we should use the latter. If we assume no optimization on software level…
Jan Omer
  • 33
  • 1
  • 3
3
votes
2 answers

How to rasterize a 3d mesh?

I have a 3d mesh (a set of triangles) that defines a closed watertight surface. I want to rasterize this mesh, that is divide the space occupied by the mesh to even, little cubes (the 3d equivalent of 2d pixels), and paint the cubes that a triangle…
olamundo
  • 23,991
  • 34
  • 108
  • 149
3
votes
1 answer

In OpenGL, is it possible to draw the edges of the unoccluded triangles only?

I have a mesh to render with OpenGL. What I want is to render its edges, but only the ones of the un-occluded faces. However, I realize that this is not possible with only: glEnable(GL_DEPTH_TEST); // Enable depth test glDepthFunc(GL_LEQUAL); …
ihdv
  • 1,927
  • 2
  • 13
  • 29
3
votes
1 answer

Why does text look so bad in game engines?

I'll pick on Godot as that is what I've been using lately, but I've seen the same (or at least similar) issues on Unity too. When I add text into my game world (like adding text to a UI button to add a concrete example) the text is a blurry mess by…
Aaron Fine
  • 99
  • 5
3
votes
0 answers

Using GPU to rasterize image with 128 color channels

I need to rasterize a multispectral image, where each pixel contains the intensity (8 bits) at 128 different wavelengths, for a total of 1024 bits/pixel. Currently I am using OpenGL, and rasterizing in 43 passes, each producing an image with 3 of…
3
votes
4 answers

C# import of Adobe Illustrator (.AI) files render to Bitmap?

Anyone knows how to load a .AI file (Adobe Illustrator) and then rasterize/render the vectors into a Bitmap so I could generate eg. a JPG or PNG from it? I would like to produce thumbnails + render the big version with transparent background in PNG…
BerggreenDK
  • 4,915
  • 9
  • 39
  • 61
3
votes
1 answer

Gdal_rasterize nodata_value does not work

I want to rasterize a source layer made of polygons. No matter what value I assign to "NoData_value", the outcome in my array is always = 0. I am using python 3.4. Can anyone help me understand please ? source_srs =…
Marianne
  • 75
  • 6
1 2
3
18 19