Feb
17

Precision work in Blender

By

Without pretending to be a cad drafting tool, Blender has more precision functions than people usually believe. Everything can be built with the greatest accuracy. I really value this and it was a decisive point when switching to Blender as my full time modelling and visualising tool.

I used to model in cad software so I had high standards and for some time did feel rather frustrated with the differences and difficulties. One challenge was the lack of specific documentation: I couldn’t find all info I needed in one place… or any place… and I believe that is still the case today, even though more professionals, many architects among them, are starting to use Blender and more information is to be found on the net. The Blender official wiki is a very well written resource but for the Blender first timer could be a little difficult to navigate it and find the relevant chapters, so here is an attempt to put together the info drawn from my own experience with precision work in architectural modeling in Blender. This post is more like a listing of the useful functions, meant to be followed by a second post with some “hands on” examples.

Topics:

 

Using units

The first important step for precision work in architectural modeling is noticing the Units. I work in meters: 1 blender unit = 1 meter. To do this it’s not necessary to change the default units settings but you can go to the Scene Panel in the Properties window so you can have the units properly displayed, most convenient for those who use Imperial units. This feature was not here before Blender 2.5 version.

To bring reference to scale in a Blender file, check this posts: importing dxf drawings, importing cad plans as images

3d axis

You can choose to keep or not a representation of the 3D global axis in the bottom left corner of the 3d Window to remind you anytime how your world is leaning, through the User Preferences window:

Seems the icon keeps to the global axis no matter what axis system you are using. More on changing the coordinate system below.

Keyboard numeric input and axis constraints

Transformation actions in Blender – translation, rotation, scaling, in both object and edit mode – can be constrained along the x,y or z axis by pressing the corresponding keys: x, y, z. After pressing the constraint key, numeric input can be directly entered on the keyboard. If you enter numeric input without first entering a constraint, by default Blender constraints the action along the x axis.

Example: to move 2.4 m on the z axis select the object and press in sequence G z 2.4 enter. Mouse and keyboard actions are dynamically displayed in the lower left corner of the 3D window:

Alternatively, if you don’t need to be precise to a digit, you can press the constraint key and just move the mouse following the values displayed in the left corner. By pressing shift while doing this, you’ll be able to change the value in smaller increments.

Pressing MMB after a initiating a transformation is another way to activate constraints, just move the mouse near the axis you need.

Another type of constraint is created by locking an axis. Press Shift+z for instance to lock the z axis and move or scale just in the xy plane.

Extruding (edit mode) is followed by default by a translation action on which you can use constraints and numeric input.

Wiki on axis constraints

Manipulators

Manipulators are a shortcut for transformations + axis constraints. Instead of selecting an action, then the constraint, with the manipulator activated you just grab the manipulator icon by the needed axis, then proceed with the numeric input.

You can check just one of the three manipulators (for translation, rotation or scale) or any combination between them. To select multiple click shift+lmb on the icons in the 3d window header.

Wiki on manipulators

The Transform Properties toolbox

In the 3d window, pressing N will open the Properties toolbox, docked on the right side of the window:

In this area you can set the exact size of an object, it’s location and rotation. When switching to edit mode the toolbox changes a bit to show the location of selected elements.

To change the values in the numeric input boxes you can click to write the numbers on the keyboard then press “enter”, or you can scroll with LMB, best holding shift pressed too.

Part of this data, location and rotation, also make a short appearance when creating a new object, in the Tool Shelf (docked on the left side of the 3d window, press T to open it). This option disappears soon after clicking anywhere else outside this panel and getting on with your work. However, this area doesn’t seem to bring more to the game than the Properties Shelf except in the creation of spheres, where you can set the number of faces:

After changing size you should apply the transformations – scale and rotation – using ctrl-A. If you don’t, bad things will happen when using modifiers and some other stuff.

Wiki on Transform properties

Numeric input for modifiers

The following modifiers are so useful in architectural modelling and they come equipped with numeric input: array, mirror, bevel and solidify (some details on the latter here).

These modifies are perfect for the precision lover. Not only for the numeric input but for the fact numbers can be changed at any time unless the modifier is “applied”. Array also comes with a “merge” option that makes arrayed objects to lock nicely one to another, no overlapping parts. The mirror modifier has no true numeric input but it is a precision tool, as the mirroring axis is the object’s origin or another object that can be precisely positioned and it also comes with merge and clipping options.

Wiki on modifiers

3D cursor

This intriguing red-white circle like a little target in the Blender 3D view usually annoys newcomers because they start clicking with the LMB trying to select stuff the way they do in other software and instead of selecting, this thing keeps appearing under the mouse click 🙂

The 3D cursor is a helper point you can use a great deal in precision work and its functions are scattered around Blender. It’s not an object so you can’t move it as you do other Blender stuff.

Ways to place it in the 3d space:

  • Shift+C moves it to the origin of the axis coordinates.
  • LMB click moves it (with no precision though) anyplace in the 3d space.
  • In the Properties panel -> 3D cursor tab you can numerically enter it’s 3d coordinates:

  • Stick it to a selected vertex, or selected object origin, by way of the Snap Menu brought up by Shift+S.

In object mode:

Or edit mode:

Ways to use it once it’s properly placed:

  • It can be set as a pivot point in the 3d window header and used in rotations, scaling, mirrors:

  • You can snap something to it in object or edit mode, again by way of the Snap menu (Shift+S)
  • You can use it to change an objects origin in the Object Tools tab, found in the Tool shelf docked on the left of the 3d window (T):

(or if you are an extreme shortcut fan you can easily use Shift+Ctrl+Alt+C :D)

  • New objects are created at the cursor location.
  • You can use it as a pivot for the spin function:

Object origin

This is shown as an orange dot and is sort of the insertion point for the object, not the same as the geometrical object center.
The location coordinates of an object shown in object mode in the Transform tab of the Properties panel are it’s Origin’s coordinates.

For newly created objects the origin is placed in the geometrical center. You can change it’s position anywhere in the 3dspace relative to the object from the Tool shelf docked on the left of the 3d window (T) or from the menu brought up by the amazing Shift+Ctrl+Alt+C shortcut:

I don’t think there is a way to directly input coordinates to change the origin position, but you can position the 3d cursor where you need the origin to be, as shown above in the cursor paragraph, then set “origin to 3d cursor”.  Setting the origin only works in object mode. One thing I often do is going to edit mode to snap the cursor to a vertex of the object, then go back to object mode to move the origin to the cursor.

The origin can be used as a pivot point for mirroring, scaling, rotating.

Examples of use:

You might want to set the origin of objects that “sit on a floor”, like furniture, at the base of the object, so when scaled they keep their feet on the floor and you don’t have to readjust their z position.
In some cases, when handling a set of objects, setting all origins at the same point might be of help.
The mirror modifier uses the object’s origin to place the mirror axis.

Wiki on object origin

Snapping to objects

It’s a snap to use snap in Blender 🙂 Well, there are a few drawbacks if you compare with cad software but I’ll start with the good news.
Snap functions work both in object and edit mode. There is a snap on/off button and several snap options in the 3d window header:

One way to work with snap without having it always active and getting in the way, or having it on/off too often,  is to keep the snap button unchecked and press Ctrl when you want to snap. Or the other way around depending on what you do, keep snap button on and press Ctrl during the actions you don’t need snap for.

The snap settings I use most are snap to vertex + closest. This makes the moved object or selection snap to the target by it’s closest point, this is usually what I need as in my projects things usually tend to align side by side. For this to work, the object moved must be first positioned on the proper side of the target.

I feel this needs an example. I want to move the blue box, that is now placed to the right of the green one, to it’s left. Now it will snap nicely to the right side of the box:

Going with the mouse to the left side of the green box will not give the wanted result:

So first the blue box has to be moved to the left without using snap:

Then it will snap well to the green box with the side that is closer:

“Active” uses as snapping point the active element, that is, the last picked in the selection (Blender shows this highlighted in a lighter orange). I find this more useful in edit mode, when you want to snap an element by a vertex that is not on the bounding box of the selection and will not work with “closest”.

I find it a good idea to use snap while using constraints, gives more control in complex setups.

Experimenting with snap options will give you a better grasp on its use.

Snap limitations: some actions don’t work with snap, like cutting loops (in the process of cutting a loop snap doesen’t work though I usually wish it did and save me some extra clicks). I also didn’t get the snap to work correctly with constraints in a custom axis system. Sometimes, as far as I noticed when dealing with more complex objects, some points fail to react and snap, looks like a bug. Usually works if you insist: wait a bit while holding the mouse over the point, zoom in closer or change the viewing angle.

Wiki on snapping

Grid snapping

Though this is a popular drafting feature and works in Blender, I don’t use it much. Maybe my projects are never that well behaved so they would fit a grid or maybe I just never got used to it. But I’m sure many use it and it’s a very good precision feature.

You’ll find grid settings in the Properties panel -> Display tab, and you can set the snap to work in grid increments:

This doesn’t actually snap the object or vertex to the grid but moves it in grid increments from the current position. To go on the grid you’ll first have to bring up the nifty extra Snap menu by pressing Shift+S and go to “snap selection to grid”:

Snap menu

The snap menu works in both object and edit mode and it’s brought up by pressing Shift+S. It allows various snap options between the cursor and selected objects:

You can also find this in the object menu in the 3d window header but using the shortcut seems easier.

See also the Cursor and Grid paragraphs above.

Show edge lengths

When in edit mode, Blender can dynamically display edge lengths, angles, surfaces on selected elements. You can switch this cool feature from the Properties panel on the right side of the 3d window (N), from the Mesh display tab:

There are not too many options for displaying the numbers so if you have all the mesh selected it will be difficult to read them. Sometimes the axis or cursor get in the way. I use this mainly to check measurements, by selecting just enough vertices.

One important thing to remember: numbers will not show right if the object has been manipulated in object mode and transformations not applied. Apply scale! (Ctrl+A)

Pivot points

Pivot point setting is found in the 3d window header.

See the 3d cursor and object origin paragraphs for ways of setting the pivot with precision.

Transforming axis orientation

This is equivalent to cad “change UCS”. I got stuck for a while with my first Blender project because after I test modeled a rectangular building and decided “it’s a breeze”, of course client sent a plan with non-90 degrees angles and I was lost.

To change between various axis systems (like Global and Local) or create a custom orientation when your project is not all that orthogonal, use the Transform Orientations panel in the Properties panel (shortcut N) or the Transform Orientations drop down from the 3D window header. Rotate a cube (or any object created in the global axis system) to the desired new axis orientation, and keeping it selected press “Create”; then you can name and save the new axis orientation and select it when needed (no need to keep the rotated object).

To use axis constraints in a custom orientation you’ll have to press twice the axis shortcut: xx to move on the new axis, yy, zz.

Snap + axis constraints should work in custom orientations too but in practice they don’t (snaps but not the way I expect). Maybe I am doing something wrong, would be happy if someone could help me with this one.

Align

There are two other nice precision tools hidden in the Object menu in the 3d window header. I didn’t find a shortcut for these, not even a five-fingers-and-one-toe one.

In case we got some architectural objects scattered like this all around the project we can select them and…

…go to the object menu:

“Align to transform orientation” gets them all neatly aligned to the current axis system.

“Align objects” opens the Align objects tab in the left side Tool Shelf (T), with several options for choosing the alignment plane and the alignment point for the objects.

In edit mode I couldn’t find a dedicated tool for aligning vertices on a plane but it’s easy to do it by scaling with zero value on the selected axis. For instance, to align a selection of vertices on a xy plane you press S-Z-0.

Align rotation with the snapping target

This is an option that appears in the 3d Window header next to the snap settings:

It works only in object mode, with move (grab). When snapping, it should align objects to the snap target’s normals. From what I make out of it, it’s useful if you set the snap to “faces”, you will be able to align the object to a face on the target object. In the example above, this is the result:

Wiki on snap and align rotation

Divisions

You might need to divide something in equal parts. This can be done in edit mode in two ways. One is the Subdivide in the Specials menu that you bring up by pressing W (edit mode).  A panel will form in the Tool shelf (T) on the left, where you can enter the number of cuts that will subdivide the selected elements.

It’s better to use subdivide on the entire object (all faces selected) or else your object will be cut in a bad way, with lots of triangles that are difficult to edit later. I will edit this part after B-mesh is in the official release.

The second, even nicer method, is by cutting multiple loops. I’m not getting into loops right now, but I see this can be used as a nice precision tool so I added it to the list. In edit mode, after starting the cut (ctrl-r) scroll the mouse wheel and you’ll get multiple loops equally spaced. You can divide an object or make a helper object with the divisions you need, to which to snap. In this case, you have to turn on  “show all edges” in the Properties Panel -> Display tab so the divisions show up when back in object mode:

You now have divisions to snap to:

There are times when this is faster and serves the purpose better than using arrays.

…..

……this has been a long post and I hope I managed to put it in a coherent form. Feedback and editing suggestions welcome. This will go into the “How to” section so should look it’s best 🙂
Maybe you are using something in your work flow that I missed? I would be glad to add to the list.

 

 

  • Ray Tungsteen

    Nice overview, well done! I have a question.

    How would you do this: say you have a long object, that was started from a long cube. It’s an architrave, to put in the corner between the ceiling and the wall. You want to create an L-shaped version of it, for the corner. How would you do this?

    What I do is use 2.49. Duplicate the object, rotate the duplicate by 90 degrees. Snap them together, so they meet in the corner, overlapping there for their width, each running on to their respective sides. Then I use the exact Knife with snapping to point in the corner, to cut a line diagonally across the two objects (by now joined into one mesh), to create the 45 degree profile. Followed up by a clean up of unneeded edges.

    The snag is that while the Knife snap works on the point, there’s no snapping to the point where two architraves meet on their other side (the inner side, in the room). I can only do it by eye, zooming in as closely as possible, cutting carefully.

    The only truly accurate way I can think of would be to extrude points from both architraves into that meeting point, and then hopefully snap to it (in 2.49).

    Do you know a better way, particularly in 2.5+?

    Another long comment from Ray… LOL 😛

  • Ray Tungsteen

    Funny, how writing a problem out usually leads to the solution within minutes, something not thought about in days of experiencing the problem… The answer to my question is of course, to cut at 45 degree angle in the long architrave, then rotate the other end points down by 90 degrees. Doh! … thanks for providing the platform for Ray to solve his problems by talking to himself if public! 😛

  • Oana

    Hi Ray! I tried to answer as quick as I could before you start writing again and talk by yourself 🙂
    The 45 degree cut, yes, I’ve suffered this too. I tried to replicate what you say in 2.6, it’s not bad, but if the cut is not 45 degrees then the lines might be a bit skewed on the second one. This might not show up so bad and the intersection is clean. But if you do the cut in 2.49 and can snap… you could use a helper object, a plane at 45 degrees snapped in the corner, to get the second snap point? I don’t remember if the 2.49 knife snaps to other objects, if not, you might have to join the plane to your object then delete it.
    I tried using retopo once, making the points snap to a 45 rotated plane but I’ll have to check if it still works in 2.5+. You can also use a boolean, substract a 45 degrees rotated cube only you’ll get boolean messed up mesh.. both this methods are troublesome, I agree.
    In fact I.. adapted and turned my method around. When modeling something like this, instead of extruding a vertical profile like you would normally do, I make the horizontal print, including a corner, then go up extruding, scaling, etc to get the profile I need. If I have a corner I can use it all around then. I don’t often get too complex profiles in my work. I really hope B-mesh will change this and bring some easy cutting tools. I’ll try to make some time and get to it before the official release, saw the Blendercookie intro today and looked like the knife was much improved. But I would love a plane cut through the whole object, like.. ahhem… “other software” has!

  • Ray Tungsteen

    Thanks, Oana. My solution doesn’t actually work as you can’t constrain the Knife to cut at 5 degree (or whatever) increments – I thought you could in 2.49. So one of the other methods would need to be used. Oh well, perhaps Bmesh will offer a good solution.

  • This is a really great article, thanks. It’s hard to find all this information together anywhere in the official documentation.

  • Oana

    Thanks Bill! I’ll have to upgrade it a bit to include B-mesh new stuff.

  • HHV

    Hello,

    Congrats for the blog; I read you are coming from Max; I have a question related to a feature I miss in Blender, maybe you can answer it to me. In Max there is an option to draw a line(polyline) snapped to freezed objects (vertices). I tried to use this feature in edit mode in Blender: extruding vertices snapped to imported curves/objects and also creating vertices in (CTRL click) snapped pozitions (it didn’t worked either). Is there any way for this? Thanks

  • Oana

    Hi HHV! It seems vertices from curves can’t be snapped to. I can’t snap a curve to a curve or a vertex of a curve to another curve vertex. Still the wiki seems to say it should work: http://wiki.blender.org/index.php/Doc:2.6/Manual/Modeling/Curves/Editing

    You can snap a curve vertex to a mesh vertex though. If you have imported curves, what I’d do is convert them to mesh (alt C).

    I don’t think you can do the create to snap thing either. Maybe it interferes with ctrl being used to activate or deactivate the snap and there is some way around it I haven’t found. Extrude works fine for me to create new points and the snap works there.
    Hope this helps, please let me know if you find something else about it 😉

  • HHV

    Thanks Oana,
    I found a solution, although it is far from perfect and efficient. I don’t know if you had the same feeling while you moved from Max, but one day I find Blender extremely capable over Max in some special stuff, the other I simple do not understand the lack of essential and important features for archviz (2D shapes, arrays, referencing, modifier stacks, etc.)…

    I keep on learning…

  • Oana

    It’s true, but I think it’s always hard adapting to a new software and having to do familiar stuff in a different way. Even if I used to miss max features, I still apreciate the way many things work in Blender and I keep my spirits up with one fact I tested as true: Blender is reliable and can do about anything max can. Maybe my geeky side loves looking for workarounds too 🙂

  • Hi!

    Thanks for an extremely useful website! I think learning to do precise work in Blender is a key thing to really mastering the program.

    This webpage was one of the pages I encountered when searching an answer to the following problem: How can I straighten and object, that has been modeled in a inclined way, accurately? I didn’t really find the answer to that particular question even though there was other really good information on precision work. So I kept on searching and finally found a good solution to the problem. I thought I could add it here so that you can perhaps include it in your toolset. Here’s a one-minute video tutorial on how to align inclined objects to the global axes accurately:
    http://oneminutevideotutorials.com/?p=142

  • Oana

    Nice tip Andy, thanks! 🙂

  • Pingback: Andreas' Blog » Blog Archive » Blender()

  • BlenderBaby

    Thanks! Will read more about it later.

  • Guillermo

    Oana
    Your article is very helpful, congratulations.
    I have one questions.
    As architect and Autocad user for several years I tried to input a degree value to a rotation editing but I could not find the way to do it. I meant not say how much degrees rotate by its local orientation, but say degrees in a global orientation. This allow to rotate an object to a defined angle in a global circumference where 90º are always up, or north orientation, etc.
    HOPE TO BLEAR ENOUGH…
    Let me know your answer please.
    THANK YOU SO MUCH
    Guillermo

  • Oana

    Hi Guillermo.
    How about the global input fields in the transform panel? (properties shelf or object edit tab), is that what you are looking for?

  • Guillermo

    Thank you for answer me…never mind. I will write you again with something more specific.
    Now the problem I get is that there is a missing object part when I render it in cycles…only with that object. But if I add a new mesh to it and move it far away from it to the missing area shows me the complete render…even when I delete the new mesh but keeping only one vertex. It seems like it there is something set up with the mesh that cuts the render in that portion…
    Any help?

  • Oana

    Sorry, I never stumbled on this type of problem…

  • How can you make just a simple line with the coordinates of 1,2,3 to 2,3,4 ?

  • Thank you for any other informative website. Where else could I
    get that kind of info written in such an ideal
    way? I have a undertaking that I am simply now working on, and I’ve been on the glance out for such information.

  • The flip side though is I’m not paying any interest on that $5800 yet.
    I dream to visit the various countries, to obtain familiarized
    with intriguing people. One of the biggest mistakes made by
    todays consumer is living outside of their means.

  • We absolutely lοve your blog ɑnd find a lot of your post’s to be just
    what I’m looking for. can you offеr guest writеrs to wгite content in your case?
    I wouldn’t mind ƿublishing ɑ post or elaborating on most of the
    subjects you wrіte rеlated tߋ here. Again, aweѕome weЬsite!

    Alѕo ѵisit my webpage – dr andrew ordon derm exclusive review

  • howdy captivated to be linked Hera. A lilliputian stimulation from me, things that you mentioned is true, only sometimes thitther are more or less ouytside
    factors that likewise mustiness be considered.

    Though these factors wish greatly feign the remnant resultant.

    My bbase opinion

  • Wonderful best ! I woսld like to apprentice աhile you amend
    youhr website, Һow can i subscribe fοr a blog site?
    The account helped mе a acceptable deal. Ӏ ɦad
    been a littlе bit acquainted of thiss your broadcast offered bright
    clear concept

    Looҡ ɑt mү web blog … mua ban

  • I’m curious to find out what bblog system you’re using?
    I’m having some minor security issues with my latest site and I’d like tto find something more secure.
    Do you hve anyy solutions?

    Here is my wweb blog … simpson anchors (friendlycharlat16.blox.pl)

  • VideoChat

    Valuable information. Fortunate me I found your website by
    accident, and I am shocked why this twist of fate didn’t
    happened earlier! I bookmarked it.

  • Hugo

    I have found a very small problem, at least in Blender 2.75 and now I’m using Blender 2.76 RC3, but it remains the same.

    I sometimes use Ctrl+S to set the position to the 3dCursor to an object vertice (works great).
    Then if I do Ctrl+S again to move another object to that set cursor location, the coordinates won’t be strictly precise.

    For example, I set the 3dCursor with Ctrl+S to a vertex located at X=2.0000 Y= 3.5000 and Z=50.0000
    Then Ctrl+S to move another object to that location, and it will end up at X=2.0002 Y= 3.4999 and Z=50.0001
    It’s a very slight inaccuracy, but adding to several moves, it is a pain.
    And to do real precise work, it’s just bad, although I still use it 🙂

    I don’t see why this is happening, I see no reason for it…

  • MMM

    Amazing post! I am getting used to entering precise numbers for certain dimensions. Hopefully this helps 🙂