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.

Poser

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!





How to create a drape effect in Photoshop

It’s easy to create an effect of draped cloth in Photoshop, like in the image above. We can do this with the Gradient Tool. It’s the icon with an actual gradient on it, sometimes hiding behind the Paint Bucket or 3D Material Drop tool (if you don’t see it, left-click and hold for about one second for the multiple icons to appear, or press the keyboard shortcut G repeatedly).

Once selected, choose Difference as the mixing mode at the top left of the screen, and make sure that the colours are set to back and white (other colours can give “very creative” effects shall we say).

Now start moving your cursor in short strokes from left to right, then right to left. Every time you change direction, the image is inverted. Add a diagonal stroke in every so often. You’ll create magnificent drape effects in no time!





How to run DAZ Studio on a remote machine via RDP

I’ve been playing with Windows Azure the other day, specifically to hire rendering machines. My idea was very simple: if I have a long animation to render, why not pay a nominal amount of cash, but have the result back within hours rather than days?

So I created a Windows VM, logged in from my Mac via RDP (Remote Desktop Connection), installed DAZ Studio and some content… but sadly I couldn’t start DAZ Studio. I remember having had this problem before on my home network, where I have a similar setup.

This happens because DAZ Studio needs OpenGL 1.3 or higher, and with an RDP connection, only OpenGL 1.1 is supported. Quite rightly so, DAZ Studio throws an error message and quits. However, the app works just fine via RDP, so how can we circumvent it closing prematurely? Continue reading How to run DAZ Studio on a remote machine via RDP