Lab4IQMintegrated quantitative modelling

Learn

Blender basics for Lab4IQM

Lab4IQM draws real Blender objects, so everything Blender can do with an object works on your graphs too. You don't need to learn Blender to use Lab4IQM, but these few things make the 3D view much easier. Keys are for a Mac; on Windows and Linux use Ctrl where it says Cmd.

The screen

  • The 3D view in the middle shows the figure. Press N over it for the sidebar; its Lab4IQM tab holds the console, the sliders and the examples.
  • The Outliner (top right) lists the objects by name (s1, c2, …). Click a name to select it; the eye icon hides and shows it.
  • The Properties editor (bottom right) has a column of tabs. Two matter most: Object (orange square) and Material (red sphere). For a curve, the Data tab (green curve) holds its thickness.
  • The Timeline at the bottom plays animations and simulations.

Moving around the view

To …do this
turn the view (orbit)drag with the middle mouse button; on a trackpad, two-finger drag
move the view (pan)Shift + middle drag; on a trackpad, Shift + two-finger drag
zoomscroll wheel; on a trackpad, pinch
look from the front, side, topnumpad 1, 3, 7 (Cmd + numpad: the opposite side)
fit everything in the viewHome
fit the selected objectnumpad . (full stop)
flat 2D view / back to 3Dview2d() / view3d(), or the 3D/2D button

No numpad? Click the coloured X, Y, Z balls at the top right of the 3D view, or tick Edit → Preferences → Input → Emulate Numpad. Only a trackpad? Emulate 3 Button Mouse in the same place lets Option + drag orbit.

Selecting, moving, rotating, scaling

Click an object to select it (Shift + click adds to the selection). Press G to move, R to rotate or S to scale, move the mouse and click to finish (right click or Esc cancels). Type a letter to keep to one axis and a number for an exact amount: S Z 2 Enter stretches the object to twice its height. Exact values also go in the sidebar, Item tab. Cmd+Z undoes.

Moving or scaling in Blender changes the picture, not the mathematics: the axes and the console still describe the original function. To change the domain or the values, change the command, for example plot(z=f, x=-1..1, y=-1..1) or set(s1, a=2).

The four ways to look at the scene

The four round buttons at the top right of the 3D view (or Z) switch between Wireframe, Solid (grey, fast), Material Preview (colours and finishes; Lab4IQM switches to it when you draw) and Rendered (with the lamps from lights()). Colour maps and transparency only show in the last two.

Changing how an object looks

Select the object and open the Material tab. In its Surface panel:

  • Alpha: transparency, from 1 (solid) to 0 (invisible). Around 0.4 lets you see one surface through another. If it looks grainy, set Settings → Render Method to Blended.
  • Roughness: 0 is a mirror, 1 is matte. Metallic: 1 for metal.
  • Transmission: 1 for glass. Emission: makes it glow.
  • Base Color: the colour of a curve or label. On a surface it is connected to the colour map; change surface colours with color(s1, cmap=plasma).

Changes made here are kept when sliders move. Curve thickness: select the curve, Data tab, Geometry → Bevel → Depth. Always visible: Object tab, Viewport Display → In Front.

Hiding, deleting, saving

H hides the selected object, Option+H shows everything again. Remove objects with delete(s1), so Lab4IQM knows they are gone. Cmd+S saves the .blend file with everything: objects, sliders, imported modules and your defined functions.

Lab4IQM command or Blender?

The commands do the common cases in one line; Blender's panels do everything else.

You want to …Lab4IQM commandor in Blender
change surface colourscolor(s1, cmap=viridis)—
make a surface see-throughmaterial(s1, glass)Material → Alpha
change a curve's colourplot(f, color=red)Material → Base Color
change a curve's thickness—Data → Geometry → Bevel → Depth
change a parameterset(s1, a=2) or the slider—
hide an object—H, or the eye in the Outliner
remove an objectdelete(s1)—
a picture of the viewrender("fig.png")F12

The same chapter is in the Lab4IQM user guide (PDF).