Pixel position reconstruction

Sometimes we need to know, in a fragment program, a pixel’s position in eye space. We usually need this in postprocessing operations, where we will tipically send an eye-facing quad filling the whole screen, executing an specific fragment program along with information about the scene (usually textures that contain surface normals, depth, materials, etc) that has been previously rendered in a previous pass.

So, during this postprocessing step, each fragment belonging to this quad corresponds to a little area on the surface of the previously rendered scene, although by now we only know its position within the eye-facing quad being rendered.

The question is: Which was its exact position in the scene in eye space?
Continue reading

Blender hotkeys

Blender is an amazing software for the modeling and rendering of 3d images and animations. In the very beginning, it was far from being intuitive and most of the operations were done by means of shortcuts. Nowadays, since the 2.5 beta version was released, its user interface has improved considerably. Anyhow, a good knowledge of its hotkeys is important in order to work efficiently with it. In this post I would like to gather the most important keyboard shortcuts or at least those ones which I find more useful.
Continue reading