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

Plausibility of Software Rendering

I've recently considered writing my own software render-er for a project I've been working on. I was able to find some scholarly articles on important concepts like perspective correct interpolation, perspective matrices, etc. However, due to the…
0
votes
2 answers

Determine if a triangle is left-facing

If you have a set of three vertices at (x1, y1), (x2, y2) and (x3, y3), how would you determine whether the triangle defined by these three vertices is left-facing or right-facing? Currently, I'm taking the cross-product to determine whether the…
T .
  • 4,874
  • 3
  • 23
  • 36
0
votes
1 answer

How to best use a scene graph when either rasterizing or ray-tracing?

So this was a question on my Computer Graphics final to which I still don't know an answer. What is a scene-graph? How is it best used when rasterising or ray-tracing an image respectively? A scene-graph is a way to manage hierarchical…
Aero
  • 59
  • 6
0
votes
1 answer

Can I print the content of a

I am using jquery.printElement.js to print a calendar table i have created. It is inside a div, and it works mostly as expected. I am having great trouble with my CSS though. As described in my earlier question My cells expand to fit the content,…
jumps4fun
  • 3,994
  • 10
  • 50
  • 96
0
votes
2 answers

Unable to find a function in R

I have been using this function for a while now. It is weird that all of the sudden the fun=mean is not working for raster package of R!! rasterize(data_r[,1:2], r, data_r[,3], fun=mean) Error in .pointsToRaster(x, y, field = field, fun = fun,…
ToNoY
  • 1,358
  • 2
  • 22
  • 43
0
votes
1 answer

R: Species distribution modeling. Raster and/or Spatialdataframe mirrored

I am trying to create a Spatial point data frame from a .csv file. It works (in general), but the output is mirrored, so the rastered map I create with it is "upside down". I used this approach here (Creating a RasterLayer) to create the raster. I…
0
votes
1 answer

Ghostscript compatibility question between 8.15 and 8.70

I was using ghostscript 8.15 for pdf rasterization on a x86_64 system. Now because of new features I want to switch to version 8.70. However, I noticed that Ghostscript made a note about supporting only 32 bit postscript integers in version 8.70. I…
0
votes
1 answer

Phantomjs - set border (and color) of created image

I use this to generate html page as image. So, my command looks something like this: $ phantomjs rasterize.js 'http://example.com' image.png Is it possible to set border and color for generating image via phantomjs?
ExiRe
  • 4,727
  • 7
  • 47
  • 92
0
votes
1 answer

Rasterizing Delaunay triangulation in Matlab

I have computed a Delaunay triangulation using DelaunayTri() in Matlab R2010b. Now I would like to burn a subset of the triangles (i.e. 12200 triangles) into a matrix (Raster). Is there any fast/efficient way of doing this? I have tried using both…
jatobat
  • 749
  • 3
  • 8
  • 21
0
votes
0 answers

Triangle drawing (Rasterization)

I'm trying to draw(/fill) a triangle, it works.. sometimes, I've got a problem when 2 of the point have y-coordinates that get really close to eachother. the dx/dy gets reaaalllyy big (And could even go infinite..) Here's the code I use to find the…
0
votes
3 answers

Programming my own triangle rasterization for OpenGL?

I am trying to render rounded triangles to increase performance. To illustrate what I mean, see the picture below: I tried in the CPU, now is there a way to move this algorithm somehow to the GPU? I can change the method's code that calls the…
Fijiwiji
  • 1
  • 1
  • 2
0
votes
1 answer

OpenGL pixel precise rasterizing on different archs

for an application I'm developing I need to be able to draw lines of different widths and colours draw solid color filled triangles draw textured (no alpha) quads Very easy...but... All coordinates are integer in pixel space and, very important:…
O'Blivion
  • 21
  • 2
-1
votes
1 answer

Why rasterizing in Python using GDAL does not work?

I am reading a shapefile that contains data ranging from 0 to 100 in Python using GDAL. Unfortunately, while it does not give errors, the result is not correct (compared with QGIS). I have tried different NoDataValue, but have not found the right…
Ari
  • 11
  • 4
-1
votes
2 answers

Rasterization algorithms with anti-aliasing in Python

I have vector graphics. (In my first case, it's the epigraph of a function whose formula is given. So it is a shape whose outline is given by a parametric curve.) I want to rasterize this image with anti-aliasing. So I want raster graphics, i.e. a…
root
  • 1,812
  • 1
  • 12
  • 26
-1
votes
1 answer

How to rasterize a vector image in C++ Win32 API

recently I have been trying to experiment with vector graphics in C++. I want to make a Win32 app that reads an svg file and shows it on the screen. The program currently is simple. A window opens using the Win32 API and a .svg file is selected.…
1 2 3
18
19