Currently browsing tag

opengl

Structure From Motion

For our Capita Selecta project – a freeform 2-semester project with prof. P. Dutré and prof. E.Duval – we decided to build something around Structure From Motion. This involves starting from photographs of an object/environment and ending up with a fully textured 3d mesh – a nontrivial task. Tech babble …

OpenGL Depthmap Rendering

A quick and dirty way to render depthmaps. It requires two passes, so it’s not optimal. I’ll be using this to pass a depthmap texture to a sobel edge detector (in GLSL) in order to draw contours by generating them in image-space. Other renders (normal-mapped, regular diffuse) will be tested …

Thesisblooper #4

A new week, a new issue of Thesis Bloopers. In between all the hard, correct work I’m delivering, late night or early morning coding sessions can cause the weirdest bloopers. If you don’t specify the right texture coordinates, it looks like your triceratops is giving birth. Oops. Since some of my …

Markosian Suggestive Contours

I’ve implemented the pick-some-random-faces-algorithm (the algorithm formerly known as the Markosian algorithm, from this paper) for suggestive contours too now. Results are a bit better when it comes to framerate, with the big gains of course in models with more faces. For example, of the 40000 faces of the skull, …

Random Contour Faces

I’ve been implementing an alternative CPU algorithm to draw contours last week. It was pitched by Markosian et. al, and I based my implementation on this Siggraph 2008 class by D. Decarlo. Instead of testing all faces of a mesh for contours, I only test a configurable amount of random …

GLSL Shader Results

After squashing a rather nasty bug this morning (GLSL shader memory alloc is tricky), I made some renders to demonstrate the algorithm. The algorithm is an object-space algorithm.  This has some implications: Operations are performed with direct vertex info. No intermediate rendering+signal filtering is done. Rendering it on the GPU …

Image Space Oddity

I’ve been trying to work out a good CPU-accelerated version the my suggestive contours algorithm during the last few weeks, and after working through some technical difficulties, I managed to compute and draw regular contour lines this afternoon: Hard to see? I know,  it looks craptastic. But after an afternoon …