Home Menu ↓

Blog

Daily Blender 07

“Candyworm.” A beveled curve hanging out on some checkerboard planes.


Reply via email

Daily Blender 06

“The Creeper.” Playing around with metaballs and orthographic perspective.


Reply via email

Daily Blender 05

“Guardian.” I’m admittedly not very good at sculpting yet. But hopefully over the course of the month I’ll get better.


Reply via email

Daily Blender 04

A sphere on a plane, with an environment map for lighting (using a photo I took a few years ago). On the plane, I’m using some distorted noise to mix together two glossy materials (one rougher and darker than the other).

I’m realizing I really, really like environment lighting. So, uh, there’ll probably be a lot more of that.


Reply via email

Daily Blender 03

The tube-ish things are a torus knot with a displace modifier, and I made the background leaves using the Sapling addon. The ground is just a fractally subdivided plane with a subsurf modifier.

This one is a bit more heavily postprocessed than my first two, mostly because I wasn’t happy at all with the initial render. Lots of Photoshop texturing.


Reply via email

Daily Blender 02

I wrote a Python script to generate the spheres (random sizes, random locations). The main sphere material is a subsurface scattering node mixed with a white diffuse material with Fresnel as the factor, so the white shows at the edges of the spheres. I also did some postprocessing (color correction, slight texturing) in Photoshop.


Reply via email

Daily Blender 01

Inspired by Zuggamasta’s 365 day project, I’m going to be making a new Blender render each day in June (excepting Sundays). Each render will be 800x800, and many of them will be somewhat on the pathetic side. But it’ll be a good challenge for me.

Day 1:


Reply via email

Chairman of the Bored

I’m pretty sure this is the weirdest illustration I’ve done so far, both in content and in style.

Drawn in Photoshop, presumably under the influence of too little sleep.

Reply via email

Sine circle test animation

As I’ve been tinkering around with graphics coding, I wanted to figure out how to map a sine wave onto a circle. Here’s how it went down. (Disclaimer: this is all unoptimized code that is almost certainly not the best way to do this. Also, I’m a beginner, so yes, this is very basic stuff.)

First off, I started a new Processing sketch and drew a circle:

The relevant code from the draw() function:

float x = width / 2;
float y = height / 2;
float radius = height / 3;
float angle = 0;
float angleStep = 0.005;
float twopi = PI * 2;
float dx, dy;

while (angle <= twopi) {
    dx = x + radius * cos(angle);
    dy = y + radius * sin(angle);

    angle += angleStep;

    ellipse(dx, dy, 2, 2);
}

The basic idea: I loop from 0 to 2π radians (a full circle) in steps of angleStep radians at a time. At each angle I calculate the vector from the center of the circle (x, y) to the point on the circle at a distance of radius. And then I draw a little circle at that point. With a small enough step size, you get a continuous line. (More on that later.)

Mapping a sine wave onto said circle really just means that when you calculate the vector, you apply a sine wave to the point’s distance from the center of the circle. So I added that in, including frequency and amplitude variables I could tweak:

float freq = 20;
float amp = 20;

dx = x + (radius + sin(angle * freq) * amp) * cos(angle);
dy = y + (radius + sin(angle * freq) * amp) * sin(angle);

And I got this:

(I should add that I did this first part on my phone in Procoding. But then Procoding crashed and deleted my sketch, so I rewrote it in the actual Processing app on my laptop.)

I pulled this code out into a function so I could loop through it and create a bunch of concentric sinuous circles. I also changed the drawing method to use lines instead of ellipses, so there wouldn’t be gaps. Processing didn’t seem to want to antialias the lines, though, and I’m not sure why. Oh well.

I also saved an alternate version of the sketch that changed the colors to render out a depth map for each frame (the darker it is, the farther from the camera):

Then I animated the amplitude and rotation of each circle and rendered out all the frames, both for the blue-and-white version and for the depth map. I pulled it all into Blender and composited it together. The node setup:

  1. I take the depth map and convert it from RGB to black and white (meaning values from 0 to 1, where black is 0 and white is 1).
  2. Then I invert the depth map so white is 0 and black is 1, because I’m going to use it as a distance map, where white is close to the camera (a distance of 0 from the camera) and black is far from the camera (a distance of 1).
  3. I plug both the rendered frames and my inverted depth map into the defocus node, which gives me depth of field. (It’s postprocessed, so it’s not ideal, but I don’t think there’s a way around that.) The fStop value is how shallow the DOF is (the lower the number, the blurrier it gets). In the camera settings I’ve keyframed the Distance value (the focal point), with a range of 0 to 1. (Ordinarily they use Blender units, but in this case we’re using our depth map and that has a range of 0 to 1.)
  4. I do a fast Gaussian blur to try to make up for the lack of antialiasing. It doesn’t work as well as I’d like.
  5. Then I add a lens distortion with some chromatic aberration (Dispersion) and elliptical distortion (Distort plus Fit so that I don’t get black around the edges).
  6. Finally, I add a Mix node and change it to Soft Light, then plug in some brown-colored noise I’ve painted in Photoshop.

After I rendered the composited frames out to disk, I imported them into Blender’s video editor, added a crossfade to a black color strip at the end, then rendered to H.264 and uploaded to Vimeo. The final result:

The animation itself is somewhat lacking — the timing is uninspiring, the f-stop jumps around too much, etc., and I don’t think it properly conveys a sense of 3D space (of being in a tunnel) — but as a test of the Processing + Blender workflow, I’m quite pleased.


Reply via email

The Accidental Jaywalker

My poem “The Accidental Jaywalker” is now up on the Mormon Lit Blitz site. There’s also a discussion page. Have fun. (I’ll give liner notes after the voting is over. I’ll also post the poem here.)

I originally planned to blog about each finalist each day, but entropy won out and now I’m thinking more just a single recap post at the end. If you want to see the entries as they come out, watch the Lit Blitz blog.


Reply via email