Welcome to my website. This website pulls together my blog, publications, software and teaching materials. It's always under construction. Tread carefully and don't let the bugs bite.
POV-Ray's scripting language allows for access to bitmap pixel values. In the example above, I've taken the website logo and used it to control whether or not a sphere is placed in a 2d array.This requires that the image is brought in as a texture, which is then evaluated using the UV (as in 0 to 1 in each axis) co-ordinate system to obtain the colour at that pixel. I've then cheated and used the red channel to determine whether or not the pixel is present. Oddities in the design of POV-Ray mean that is necessary to add 0.0 to this value to get a number.
To add some festive colour, I've modified the RGB values depending on the elevation of each sphere, and placed a reflective ripple plane below the array to simulate water. See povray-logo.pov.
For my new business cards, I was shopping around for designs and came across an interesting design made up of lots of little cubes making up one big cube. I thought to myself, how easy would it be to do something similar myself?
Turns out, this is actually quite simple and takes literally a few minutes. The POV-Ray program is a ray-tracer, which takes a text file that describes a scene, and then renders it in 3d to produce a 2d image file. The code was really simple, using a couple of loops and the random number functions. See povray-cube.pov.
It's nice to be able to control the FT817 from a PC, but doing it using Java can be a pain. Plus, it seems a lot of people are struggling to use PorkControl because they don't have Java. There are alternatives, but I decided to go it alone and write my own simple command line control program in C. It is also scriptable and can can take commands from stdin.
One of the nice side affects of this is that the program works on the Raspberry Pi. You can plug a CAT cable into a USB adaptor and run it over SSH, or as an exercise ;-), you could hook up a keypad and write some code that calls pigctl to control the radio.
pigctl is currently 'alpha' quality. Whilst it works OK to issue commands to the radio, it does not currently support reading the radio state. To download it, click here.Updated to HTML5