homeBlog | Tags | Archives | Projects | Stats | Contact

Retargeting Images Using Parallax

Sep 02, 2009

no comments
Popularity:

I came up with a neat way to retarget images using a mesh that is transformed by rotating and doing an ortographic (non-perspective) projection. This is generally quite interesting since it can be done using a mesh and simple transformations and so can be done almost completely on the GPU. Even using a mesh can [...]

Read more...

OpenGL, Static Arrays and glMaterialfv

Jul 19, 2009

no comments
Popularity:

I stumbled upon weird behavior of OpenGL: I was setting material properties with glMaterialfv and for some reason this did not change the parameters if done multiple times in succession. I.e. when I drew two versions of the same object on the screen side by side with different material parameters, they both looked the same.

Read more...

Out of Memory?

Aug 19, 2008

no comments
Popularity:

It’s a common practice not to check what malloc() or new returns, since in an ideal world you will never run out of memory and so allocating memory will never fail. With a reasonably sized page file that is mostly true. When using a page file, this wouldn’t be a problem since if there is [...]

Read more...

Collision Detection with Occlusion Queries Redux

Jul 23, 2008

no comments
Popularity:

Here we describe a method for checking collisions between arbitrary objects drawn by the GPU. The objects are not limited to any shape, complexity or orientation. The objects that are checked for collisions can be the same objects that are drawn on the screen. The algorithm is pixel perfect but without further refining is limited to 2D collisions.

Read more...

Blog Experiment: More SQL and Text Matching

Apr 25, 2008

no comments
Popularity:

In Viewer2, there is a feature that allows fast text searches on huge databases with tens of thousands of filenames. Here’s how I did it.

Read more...