Line in WebGL and why you gonna do this on your own.

WebGL as method for generating 3D graphic in browser and it is pretty powerful. You can do really awesome things with this, likeΒ porting Quake 2 to JavaScript or creating model of human body. But all of this 3D object are complex collection of hundreds or thousands triangles. What if you just want to draw a simple thin line? Luckily OpenES have support for that. So it is possible. Lets see how to do that. Continue reading “Line in WebGL and why you gonna do this on your own.”

Cartezian coordinate system in HTML 5 canvas

Normally canvas 2D context is using custom coordinate transform where Y coordinates are flipped vertically. Here is image with example (taken from; it is great book and you should read it πŸ™‚ )

It is a bit inconvenient to use if you are drawing some shapes with points given in classic Cartezian coordinate system. Continue reading “Cartezian coordinate system in HTML 5 canvas”

Curious Case of Visual Studio project compatibility.

Recently I was asked at work for quick review of small project. It was created (or updated) in newest version of Visual Studio – 2012. I don’t have installed VS 2012.

I could install it, yes, but it would be just waste of time since browsing through code in that project took me only few hours.

So I decided to try to open that in VS 2010. Continue reading “Curious Case of Visual Studio project compatibility.”

Why I don’t like Python anymore.

It was few years back on my first year of studies, when my friend told me about Python. Then it was great for me. One-liners could read ftp folders, web pages, interact with operation system, list comprehension, injecting code into life programs, nested functions, procedural as object oriented programming styles etc. etc. All of this in builtin libraries with simple but yet quite functional editor, supported with great documentation. I wrote my first studies project in Python and I was proud with it a little πŸ˜‰ During next years I was using Python for writing simple scripts to automate my professional work as PHP programmer. Python was and I still think is better language then PHP. After that I started to work as .NET/C# developer. It has different syntax but C similarities let me to learn it quite quick. Framework .NET is powerful tool also so I didn’t touch Python for 2 or 3 years at least for anything longer then few lines. Continue reading “Why I don’t like Python anymore.”