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
1 answer

How to really rasterize text in Actionscript 3?

Actionscript Bitmap (or BitmapData) is weird. Not only it's cacheAsBitmap is false by default, but it seems BitmapData is not really just a bitmap! I found out, that animating Text Lines alpha will make them blink. I tried to workaround it in many…
1
vote
1 answer

Rasterizing a triangle in Java

Is there a Java graphics library that will rasterize a triangle given the coordinates of the vertices? I'm trying to analyse the pixel values of an image for the triangular region defined by three points. I have the pixel values in memory, so I just…
Don Kirkby
  • 53,582
  • 27
  • 205
  • 286
1
vote
0 answers

Is Apple Metal triangle rasterisation rule top-left?

Does Metal use the "top-left rule" to decide whether a pixel center that is exactly on a triangle edge is considered inside the triangle? Or what is the rule used? Thank you for help!
Céline
  • 185
  • 7
1
vote
1 answer

Converting PDFs, .AI, .PSD files to PNG and keeping transparency with ImageMagick

I am trying to convert any file to a PNG with transparency if the original file has transparency, of course. This works with a transparent PNG but I can't get it to work with with a PDF, AI, or PSD file. Everything just converts with a white…
1
vote
1 answer

How does a rasterized render pipeline select the correct mipmap level

The theoretical knowledge i learned already is the following: when selecting the mipmap level first the footprint of a fragment onto a texture is calculated. Based on that the mipmap level can be calculated using the log2. For raytraced renderers…
1
vote
1 answer

Can anyone tell me why my projection perspective matrix isn't working?

I'm a beginner in WebGL and graphics programming in general. I'm trying to render procedurally generated terrain. My first stab at this seemed to work and I get the following result. I want to add perspective projection to this, but I end up just…
1
vote
1 answer

Sector rasterization JavaFX

I have method drawSector, where boolean function isInsideSector checks if point in circle is inside sector and color it. But output sector is wrong with its coordinates, and I don't know where the problem is. Here is my logic and code: public static…
eques
  • 33
  • 4
1
vote
0 answers

How to use options parameter from rasterizeHtml.js?

I tried this logic but it didn't work: var canvas = document.getElementById("canvas"); document.body.appendChild(rasterizeHTML.drawHTML(document.body.innerHTML, canvas, {height:'1000px'})); Options is an object and I tried to pass in it the width…
1
vote
1 answer

Trouble With Barycentric Rasterizer (based on the ryg blog)

I have been trying to implement the optimized rasterizer outlined in this blog: https://fgiesen.wordpress.com/2013/02/10/optimizing-the-basic-rasterizer/. The naive approach outlined in his prior blog post…
aurreco
  • 21
  • 3
1
vote
0 answers

Can I read line pixel coordinates in Skia, without actually rendering a line to bitmap?

I have quite unique use case for Skia 2D-graphics library, where I require the maximum performance. This puts some limitations to my code. Requirements: Calculate pixel coordinates (x,y) of hundreds of lines from (x0, y0, to x1, y1) Each line has…
1
vote
1 answer

How to find coordinates of every point of vector created from on point to another

I have 2 points, for example A(1, 30), B(20, 10). I should draw in console the vector with nearest path of *. I should get every point of path, how can I do this?
1
vote
0 answers

C Triangle Rasterizer rendering problems

Im trying to write an Software Renderer using this tutorial series: https://www.youtube.com/watch?v=2U-4_vpw1lQ&list=PLEETnX-uPtBUbVOok816vTl1K9vV1GgH5&index=13 But the problem is I try to render a Ico Sphere but it doesn't look right. See image:…
Mori TM
  • 11
  • 4
1
vote
1 answer

R - Convert points into points in the centre of raster of 30 x 30m

I want to transform a specific dataset of spatial points to points in the centre of a raster. The result sould be spatial points and for each point in the original dataset a point in the centre of the raster. I made this example code to get a better…
1
vote
1 answer

How to convert .shp file into .tif file in R or Python?

I have a .shp file (2 columns: Total population and POLYGON objects as geometry) and I want to convert it into a .tif file. How can I do it in Python or R? My shapefile
MarFat
  • 11
  • 2
1
vote
2 answers

Rasterizing polygons with complicated weighting

Imagine a regular 0.5° grid across the Earth's surface. A 3x3 subset of this grid is shown below. As a stylized example of what I'm working with, let's say I have three polygons—yellow, orange, and blue—that for the sake of simplicity all are 1 unit…
Sam R
  • 172
  • 11