GLSL Shader Demo

Created a simple demo application that loads video using OpenCV, converts to an OpenGL texture, and renders it in an OpenGL window with a Shader running on top of it. All colorization and animation beyond the original (nearly monochrome) video is in the shader, which was inspired by a Shadertoy Example by Justicle.

Full Image Length Line Art Demo

eyepictures  A recent post I saw here demonstrated   an artists technique of plotting lines across a page so that a series of lines pass through the entire page and together create a recognizable image. This post demonstrates a recreation of the technique using software.

Results are above (original, basic render, buildup render), and the references art image:

View post on imgur.com

 

I initially wanted to perform an exhaustive search of possible lines in the image, or find existing lines using something like a Hough Transform or curvelets. However, the exhaustive search of possible lines at each iteration was slow and complicated, so I ended up just test a couple hundred lines from a random edge to random edge and greedily minimize the remaining energy in the image.

The first iteration simply made a line across the image with magnitude one. This results of a very rough image:

result_buildup01_lines200

The next iteration allows the lines to build up, so lines can become darker and dark with each stroke. This results in a much nicer image while still requiring that each line fall across the entire image from edge to edge.

result_buildup64_lines2130

An interesting extension would be to choose a few colors and process a blue channel, as with the original author, rather than just processing grayscale.

Configuring TeXstudio

TeXstudio is a tool for developing Latex documents. To Configure in Windows, do the following:

  1. Download and Install MikTex
  2. Download and Install TeXstudio
  3. Download and Install ActivePerl for Glossaries
  4. Set TexStudio to use a Build directory
    1. Create a folder called  build in the same directory as the .tex files
    2. Select Options->Configure TexStudio, select Commands tab and configure as
      configuretexstudio
    3. Select Options->Configure TeXstudio, select Build tab and configure as:
      configuretexstudio2

Setting up a New Git Repository on Bluehost Shared Hosting from Windows

I can never remember how to setup a new repository. Here are the instructions:

  1. Create repository in windows folder
    1. Select the folder and right-click, select Create New Repository Here
    2. Don’t make it bare
    3. Commit a first, empty change
      1. Right click and commit -> “Master”
      2. In the message box type “Repo Init commit”
      3. Check the box at the bottom for “Message Only”
      4. Click Okay
    4. Modify Gitolite User Management
      1. Add Gitolite repository
      2. Add User[s] with RW+
    5. Setup Repo on Server
      1. Login with Putty
      2. Goto repositories Folder (example, ‘repositories’)
      3. Type mkdir [newreponame].git
      4. Type git init –bare
    6. Push the new Windows Repository to the new bare repository
      1. In Windows, right click Git root folder, choose Tortoise->Push…
        1. Local: master (default)
        2. Select Remote->Manage button
          1. Remote: Server[reponame]
          2. URL: [coreserveruser]@serveraddy.com:[reponame]
          3. Click Okay
        3. Click Okay
    7. Done!