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
2
votes
0 answers

Fill rectangle with color on 2d grid

Following this article Efficient Polygon Fill Algorithm With C i've implemented rectagle filling with color on 2d grid, but it gives me somewhat wrong results, see the screenshots below: Source code: GroundGridCell[] obbVerticesCells = new…
2
votes
2 answers

Rasterizing a Triangle in Java using 2D array

I am creating a 3D renderer in Java but I have a problem when trying to render the polygons with a solid color fill. It works perfectly fine but every so often it's tearing but I'm not sure whether it is because the algorithm is inefficient or if…
Hyden
  • 289
  • 1
  • 9
2
votes
1 answer

How do I convert a sprite image into JSON for a Starbound mod?

In a game that I play called Starbound I'm trying to create a modded item. In the game, the item code is based on JSON strings. An example of a string on an item that I created uses the following JSON to distinguish a drawable item in game: [{ …
Sandwich
  • 159
  • 4
2
votes
1 answer

JavaScript to convert vector graphics to raster, but not text, for Acrobat

Looking for a way to convert vector graphics – but not text objects – to rasters in PDFs using the javascript tool in Adobe Acrobat. In one use case, a page has over 70k vector objects, which renders too slowly on screen. The answers to this…
motorbaby
  • 634
  • 7
  • 18
2
votes
0 answers

cropped shapefile leads to different results in same extent

I cropped a shapefile to a smaller extent (my AOI - area of interest) - to work with a reduced working directory. During my workflow I rasterize the shapefile. Here is my problem: I saved both of my shapefiles (smaller and bigger) to compare the…
user2978751
  • 57
  • 1
  • 10
2
votes
1 answer

Fast method to rasterize triangle in python

In python I want to rasterize a 2D triangle from a 3D triangle as fast as possible and clip the pixels that are out of the z bounds. I can convert 3D coordinates to 2D, I just can't seem to get the rasterizing working. I'm using a set pixel method…
user3116196
  • 61
  • 1
  • 5
2
votes
0 answers

Changing datatype in GDAL (python)

I wrote a script to rasterize different vector files the one after the other, during this process you have to input the cost per pixel for that specific layer. Eventually I am trying to achieve one raster file containing all the initial vector files…
Peter Vanvoorden
  • 181
  • 1
  • 2
  • 11
2
votes
1 answer

Polygon Rasterization in Python

How to rasterize a polygon in python? for example i have this polygon: [(20, 13), (21, 12), (20, 12), (19, 12), (21, 13)] This is a border and I need to find all points (tiles) inside it. How can I do it with python without any external…
Farshid Ashouri
  • 16,143
  • 7
  • 52
  • 66
2
votes
1 answer

FreeType: how to rasterize non-filled outline

I'm currently trying to create glyph bitmap which contains only outside border of the glyph, without any filling inside. Using FreeType library for this. Here is my code which is similar to example 2 code from FreeType reference: Spans…
user1687498
  • 61
  • 1
  • 7
2
votes
1 answer

Japanese symbols are not shown in raster image in WinRT

I have a small trouble with Japanese symbols when I save rasterized PDF document into PNG. I tried to convert PDF file into the PNG with help of pitron.PDF.Rasterizer in my Windows Store application. Another files with embedded fonts are converted…
Katzzz
  • 25
  • 5
2
votes
1 answer

How do I detect when phantomjs is done rendering?

I'm using phantomjs to render several specialized html pages to PDF; since this is a service that will need to scale, I'm trying to reduce as much overhead as possible. All pages are the same structure, use the same CSS, and are in most ways…
taxilian
  • 14,229
  • 4
  • 34
  • 73
2
votes
1 answer

extract barcode in pdf using c#

Is there a way to extract barcode numbers from a pdf document (spanning several pages) in C#. The pdf document is basically obtained from a scanner. If possible, I wouldn't like to use any third party library. Thanks.
blue piranha
  • 3,706
  • 13
  • 57
  • 98
2
votes
1 answer

What is the interval when rasterizing primitives

Usually in computer science when I have something from a to b the interval is [a, b). Is this true when rasterizing geometric primitives? For example when I have a line that starts at position (0, 0) and ends at position (0, 10) will the line…
Mircea Ispas
  • 20,260
  • 32
  • 123
  • 211
2
votes
1 answer

Triangle rasterization troubles

I'm trying to write a couple of functions to draw (filled) flat-top and flat-bottom triangles. For the large part they work however cracks are still sometimes seen between adjacent triangles which share a side. I use an interpolating technique…
Frank
  • 335
  • 2
  • 10
2
votes
3 answers

Vectorize a triangle scan line in MATLAB/Octave

I am new to Octave/MATLAB. I want to vectorize a simple scan-line fill for a triangle. Here is the while loop I want to eliminate: #Iterate over all the scan lines from bottom to top while(yCurr <= 200) #VARIABLES: # img - Zero matrix…
ahoffer
  • 6,347
  • 4
  • 39
  • 68