Hosting multiple flask applications in nginx

Posted on 2017-09-24 in flask • Tagged with flask, nginx, programming, web-programming

This article describes configuration details related to running flask application from within nginx subdirectory using uwsgi.

This article turned out to be big and messy, and it deals with one specific configuration detail. For a simple/clean introduction to python/flask I'd recommend to check out this tutorial first: The …


Continue reading

Generating aruco markers in python

Posted on 2017-09-24 in programming • Tagged with aruco, ar, python, programming

Few weeks ago I suddenly had to deal with aruco markers as a part of an OpenCV AR project.

For those who are not familiar with them, aruco markers are a type of marker used in AR application to indicate where something is.

They often look like this:

Aruco marker #0409
(aruco marker …


Continue reading

Unity3d - Importing indexed textures using native plugin.

Posted on 2017-05-30 in unity3d • Tagged with unity3d, C++, C#, programming

So I wanted to import an indexed color texture into unity as a grayscale gradient, where gray level would correspond to original color index.

One would think there's an easy way to do it, but nope. System.Drawing.Graphics is not accessible in unity, and no indexed color support is …


Continue reading

Weighted blended transparency in Unity

Posted on 2017-04-19 in shaders • Tagged with unity3d, shaders, programming

A long time ago I uploaded a video showing a WIP approximated order-independent transparency project. Unfortunately, I've run into a few issues, and shelved the project.

Anyway, I decided that it wasn't a good thing that this kind of project is collecting digital dust on my hdd, so I uploaded …


Continue reading

"Semi-automatic shape transfer between object topologies using 'equivalence maps'"

Posted on 2016-03-23 in programming • Tagged with programming, blender, python, algorithm

Consider this scenario: you're making a game and are using some character creation system, like MakeHuman, Mixamo Fuse, or something similar.

Now, imagine that you're in a situation where you created a nice character in one system, but need to transfer it to another. For example, from MakeHuman to Mixamo …


Continue reading

"Simple triangulation algorithm in python"

Posted on 2016-03-17 in programming • Tagged with programming, algorithm, python, opengl

Last week for whatever reason I've been tinkering with triangulation algorithms. Basically, I've been attempting to make something similar to marvelous designer's clothing triangulation algorithm.

You see, blender has clothing sim, that is, although quite slow, can be used as a basic replacement for Marvelous Designer. The tools are inferior …


Continue reading