Did I mention my new book?

Lampstack-SoftcoverOver the last few weeks I’ve written a book. It’s about how to run web applications in the comfort of your own home.

Yesterday it went live on Amazon! I have an author page and everything!

Turns out that writing was the easy part: formatting it so that it looks good on Kindle devices was a bit tougher. It’s a tech book after all, which means there are several screenshots and code snippets which need to be formatted to stand out from the rest of the text.

Before I call myself “best selling author”, let me describe how this book came to be.


Continue reading Did I mention my new book?

How to open and convert multiple raw images in Photoshop

Opening several JPG or PNG images in Photoshop is the easiest thing in the world: just select several in the Windows Explorer or in the Mac Finder, right-click to choose Open, and Photoshop brings in each image as a new document.

But when we try the same with raw images, it won’t work: although Photoshop shows us the raw processing dialogue for all our chosen images, and lets us make individual changes, as soon as we hit Open at the bottom, only the current image is opened as a new document.

What gives? How can we open and convert several images at once? Continue reading How to open and convert multiple raw images in Photoshop

How to draw with an image in Photoshop

Sometimes we want to reproduce an image using a brush stroke. It’s a handy way to replicate a 2D object along a path for example. Using the standard brush for this though, we’ll find that we can only reproduce a single colour image. But what if we want to reproduce all colours in our image?

Enter the Mixer Brush Tool. Here’s how to sample an image and draw with it in Photoshop. Continue reading How to draw with an image in Photoshop

How to setup a Height Shader in Blender

While we were discussing how to generate a terrain in my previous post, the next question is of course how to we give our terrain different colour values depending on its height.

For example, at the very top of our terrain we may have snow covered mountains. Slightly further down we have yellowish rocks on the steep walls, followed by green grassy planes, and more earthy brown tones further down.

Blender does not have a specific heigh shader like Carrara does, but we can use a Texture Coordinate node, extracting the Z axis value from it and feeding that into a colour ramp node. The result is something like the render above.

Here’s what the Cycles shader looks like:

There are other approaches, and this does not cover how to give each height a distinct image texture, but perhaps we’ll cover how to do that in another article (when I figure out how it works).

How to scale two axis at the same time in Carrara

Sometimes we need to scale an object in two axis at the same time. Think of making a cylinder thinner rather than shorter at the same time, which would happen if we’d scale the whole cylinder. However, scaling the X and then the Y axis is cumbersome during modelling.

Carrara has such an option: hold down S to scale, then notice the off-centre white squares that appear on every axis. Click and drag one of them, and two axis will be scaled at the same time.

The principle is just like using the middle square to scale all three axis of the object.

Notice that this trick only works in the Vertex Modelling room, not the Assembly room.

Thousand thanks to Diomede who told me about this gem in the Carrara Forum.

How to generate terrains from heigh maps in Blender

Did you know that Blender can create fabulous terrains from nothing but a greyscale height map? Of course it can!

In this article I’ll show you how to do it step by step. Grab your height map, fire up Blender and let’s get started.

Continue reading How to generate terrains from heigh maps in Blender

How to apply textures in ZBrush

I was trying to import a texture into ZBrush from an object I had created and UV mapped in Blender. The above shows an example of such an object, looking all nice and dandy in Blender.

However, when I imported it into ZBrush (after figuring out how to do that), I was shocked to see how ZBrush displayed my texture. Take a look:

That’s neither funny nor necessary. I’ve tested the same principle in DAZ Studio, Carrara and Poser and they all played ball, displaying the texture without a hitch. Only Hexagon wanted the texture flipped vertically, but – just like Carrara – offered handy tick boxes as to which direction an imported texture needed to be mirrored.

Zbrush also has such an option, but it’s not next to where you select the texture.

In this article I’ll show you how to import and apply a texture in ZBrush, to an object that has been created and UV mapped in another application. Let’s do this step by step:

Continue reading How to apply textures in ZBrush

How to map a keyboard shortcut for Local View in Blender

I’ve just learned that Blender has a wonderfully helpful function called Local View. This will isolate a selection, zoom in on it, and hide all other items in the scene. Using Local View again will bring back all items as they were seen before.

Thanks to Darrin Lile for this tip!

We can execute Local View with the default keyboard shortcut “Numpad /” (the division operator on your numpad) – but of course that only works if you have a numpad. On my Windows system I have one, but sadly on my Mac and my laptop I do not.

In this article I’ll show you how to map this shortcut to another key. Let’s get started!

Continue reading How to map a keyboard shortcut for Local View in Blender

How to delete all keyframes of your animation in Poser and DAZ Studio

Sometimes you experiment with keyframe animations, but frequently things can go wrong and you want to start afresh. Like clearing the sheet of paper you were sketching on. How do we do that to a timeline?

Easy: even though there’s no magic button for it, it can be done using the same technique in both Poser and DAZ Studio. Let’s take a look how.


At the bottom of the interface, you’ll find your timeline controls. Notice the frame counter in the middle there.

This means we’re on frame 1 of a 30 frame animation. To clear all keyframes of all objects, set the second number to 1. This will shorten the animation and thereby remove all keyframes from the timeline.

When you’re finished, set the animation duration to the correct length again and keep working.

DAZ Studio

In DAZ Studio we can do the same thing as in Poser: shorten the animation to become only one frame long. This is done in the timeline pane, in the field that reads Total (at the bottom left usually):

Set the total field to 1, then save your scene and close DAZ Studio. When you re-open it and load your scene again, all keyframes will be gone.

I know it’s a hack, and there’s probably a script out there somewhere. If I find it I’ll post a link to it here.

How to select every other vertex in Blender

Hexagon had a really nice nth-selection tool (1 over n it was called). With it you could select every other vertex or edge or face, creating things like the star shaped pattern above. You’ll be pleased to hear that Blender can do this too!

Rather than select every other point though, Blender likes to deselect instead. Here’s how to do it:

  • enter Edit Mode
  • select a whole edge loop
  • head over to Select – Checker Deselect

Blender will deselect your vertices according to the options in the tool shelf (on the left):

Works with vertices, edges and faces. Go crazy!