From the Burrow

Finding out you OpenGL Version under Ubuntu

2012-06-10 00:00:00 +0000

If you need to quickly find out the version of OpenGL you have along with the version of GLSL you can use then run the following at the command line.

glxinfo | grep -e "OpenGL.*version string"

Remember that if you have 2 graphics cards that you will need to be aware of which one it will be checking. For me that meant running:

optirun glxinfo | grep -e "OpenGL.*version string"

As I am using Bumblebee to enable use of the optimus graphics setup.

Jekyll, Blogging and Emacs

2012-05-15 00:00:00 +0000

For those who are playing around with Jekyll and would like to be able to quickly create and publish posts within emacs then you may want to check out jekyll.el.

I’ve been trying it out and it means that regardless of what I’m working on, when the idea for a post comes into my head I can C-c b n (‘blog new’ I assume) jot down the idea and carry on.

For anyone who needs to be able to unload ideas from their brain in order to focus on the job at hand this is a real boon.

When you have finished the draft it’s C-c b P (blog publish) to move the post from the draft folder to live. I can then preview it and push to the world via git.

Lovely!

Ogre And The Beauty Of Open Source

2012-05-15 00:00:00 +0000

Currently I’m neglecting my other unfinished projects in favour of playing with OpenGL in common lisp.

I’ve been getting my head around lisp for a couple of months and really needed some kind of project so I could test out some of the things I had been reading about. Making some kind of visual extension to the repl sounds perfect and I’m curious to see how fast you can iterate when making games with in-line compilation.

There’s obviously a tonne of maths involved and trying to whittle down what is neccessary from all the articles online would be daunting if it wasnt for the fact that Ogre exists and is open source. I just cant get over that… Every time I open it I get the rush knowing that I can read this thing and use the knowledge I gain to go make something new, and that that is encouraged.

Well anyway thats my little vent, if you are looking at getting into games programming and you have a some programming knowledge under your belt then I heartily recommend going and reading some of their code, it’s very clean and coupled with a good book (I’m reading Game Engine Architecture at the mo) it can really illuminate how to get things done in real life.

Oh and don’t worry if you don’t know c++, neither do I…But if you have good google-foo and are used to programming you won’t have to much difficulty.

Ciao!

First Post In Jekyll

2012-05-14 00:00:00 +0000

Ok so I am currently moving away from WordPress as I really would like to be able to edit my blog fully offline and preferably have it managed via some dvcs.

I’ve was looking at Blohg for a time but the documentation for Jekyll combined with Jekyll Bootstrap was too nice a combo not to use.

So this is it, my new home, hope you enjoy it!

So damn close

2012-02-29 00:00:00 +0000

image

I'm going to be saying this for at least another couple of weeks. I'm in that wonderfully scary bit where I have tip throw the switch and watch for the magic smoke. Wish me luck!

IT LIVES!

2012-02-29 00:00:00 +0000

image

Just tested all the motors and extruded my first blob of plastic. Nothing so fine as a real print yet but also, save a small issue with some wire insulation smoking, no problems.

Next I need to have a good dig into the process of calibration and setting things up for a print.

I’ll keep you posted!

 

What a beast!

2012-02-26 00:00:00 +0000

image

Nearly ready now, there is a meeting of the thames valley reprap'ers this tuesday so I'm hoping to take this there and get some advice on the firmware side of things.

Great material for getting your head around quaternions

2012-02-22 00:00:00 +0000

I’ve been wanting to get my head around quaternions for a long time notw but am often put off by the math heavy texts I tend to stumble upon. Luckily this time around I’ve been having more luck.

I’ll post more details on what I’m doing with this another day but I thought you peeps might find these links handy too!

Part 1 of 2 articles on the origins of complex numbers and quarternions. I find it helpful to see where a subject has come from and what the drive behind it is. Curious Quaternions Part 2 of above Ubiquitous octonions

From the same site as the last two links but give a vague idea of what these things can be used for practically Maths Goes To The Movies

This site goes through the basics you need to know to start implementing quaternions in your code. Very pragmatic and easy to follow. Also even though it says ‘cprogramming’ dont be put off, the code is near enough to pseudo-code. Cprogramming.com: Quaternions and 3D Rotations

These two are useful primarily as they have some source code and easy going tone. I’m going to have a read of the rest of the site as it looks useful. 3D Programming Weekly: Quaternions 3D Programming Weekly: Quaternion Math

Cool, well thats all for now, I’ll be back with more another day. Ciao Bagley

p.s. Ooh and if you are just getting into this I heartily recommend Khan Academy’s course on Linear Algebra

Configuring Emacs

2012-02-13 00:00:00 +0000

…Often feels like trying to get rich by finding a gold seam and then, rather than using a pickaxe, smashing your face repeatedly into the groud. I know I’ll get there but sometimes I’m not sure its worth the pain.

Just needed to vent, no way I’m dropping emacs just tiring working out which way you have to tickle it for it to roll over and play nice.

And just like that...

2012-02-13 00:00:00 +0000

..All is right with the world (of emacs) again.

Turns out sbcl + slime (+ quicklisp?) really doesnt play well if autopair is enabled.

You will know you have the problem if whenever you cause an exception in the repl you are unable to use the minibuffer at all without seeing the following: error in process filter: Wrong type argument: characterp, nil Or something very similar. This effectively means killing emacs and restarting, as killing/switching buffers, closing emacs, loading files, scratching your bum are all inoperable.

Anyhoo how this helps you if it’s caught you out. Ciao