graphics
Getting R plots into LaTeX?
I would recommend the tikzDevice package for producing output for inclusion in LaTeX documents: http://cran.r-project.org/web/packages/tikzDevice/index.html The tikzDevice converts graphics produced in R to code that can be interpreted by the LaTeX package tikz. TikZ provides a very nice vector drawing system for LaTeX. Some good examples of TikZ output are located at: http://www.texample.net/ The tikzDevice … Read more
What are Vertex and Pixel shaders?
DirectX 10 and OpenGL 3 introduced the Geometry Shader as a third type. In rendering pipeline order – Vertex Shader – Takes a single point and can adjust it. Can be used to work out complex **vertex lighting calcs as a setup for the next stage and/or warp the points around (wobble, scale, etc). each … Read more
Can I run CUDA on Intel’s integrated graphics processor?
At the present time, Intel graphics chips do not support CUDA. It is possible that, in the nearest future, these chips will support OpenCL (which is a standard that is very similar to CUDA), but this is not guaranteed and their current drivers do not support OpenCL either. (There is an Intel OpenCL SDK available, … Read more
What are the practical differences when working with colors in a linear vs. a non-linear RGB space?
Let’s say you’re working with RGB colors: each color is represented with three intensities or brightnesses. You’ve got to choose between “linear RGB” and “sRGB”. For now, we’ll simplify things by ignoring the three different intensities, and assume you just have one intensity: that is, you’re only dealing with shades of gray. In a linear … Read more
Most underused data visualization [closed]
I really agree with the other posters: Tufte’s books are fantastic and well worth reading. First, I would point you to a very nice tutorial on ggplot2 and ggobi from “Looking at Data” earlier this year. Beyond that I would just highlight one visualization from R, and two graphics packages (which are not as widely … Read more
GraphViz – How to connect subgraphs?
The DOT user manual gives the following example of a graph with clusters with edges between clusters: IMPORTANT: The initial compound=true statement is required. digraph G { compound=true; subgraph cluster0 { a -> b; a -> c; b -> d; c -> d; } subgraph cluster1 { e -> g; e -> f; } b … Read more
Ball to Ball Collision – Detection and Handling
To detect whether two balls collide, just check whether the distance between their centers is less than two times the radius. To do a perfectly elastic collision between the balls, you only need to worry about the component of the velocity that is in the direction of the collision. The other component (tangent to the … Read more