Wednesday, October 7, 2015

GPencil - Using bpy to generate strokes programatically

In response to a question on BlenderArtists this morning, I spent a few minutes poking around with the Python API to check whether it is possible to generate GPencil strokes using a script.

Example output from my test script - It just generates a set of 5 lines in 3D space as a demo of how to use this api

For the benefit of everyone, I've included the test/demo script I wrote at the end of this post. You should be able to just copy and paste it into a text editor (fingers crossed it doesn't grab any of the HTML crap in the process) and start playing around.

Use cases for being able to create Grease Pencil strokes using Python include loading in stroke data from other apps, or for providing addon developers additional ways of adding in-viewport annotations without having to hack around with bgl and draw handlers.

Saturday, October 3, 2015

Fiery Sunset

This evening, the sunset was quite spectacular! It's been a while since we've had any really interesting ones - with all the foul overcast weather we've been having over the past month.  Over the past 2 days though, we've been having a period of nice warm weather, with some norwest breezes and generally unsettled spring weather which would've contributed to the display :)

Wednesday, September 23, 2015

Grease Pencil Paper Accepted to Siggraph Asia 2015

I'm proud to announce some exciting news! My paper (with pepeland as co-author) about our work on Grease Pencil has been accepted to Siggraph Asia 2015!  Woohoo!!!

Siggraph Asia 2015 will be held in Kobe, Japan from November 2-5.  I'm excited to be attending and presenting my first paper at an international conference :)

Monday, September 21, 2015

Computational Photography - Removing reflections and obstructions from images

This evening, I stumbled across some amazing work that was presented at Siggraph 2015. I'll let the video do the talking :)

For all photographers out there, this is an awesome development (even if it does need a series of images, or a video stream to function). If you're anything like, me, you'll probably have your fair share of images ruined by unsightly reflection/glare nastiness (my current pet peeve is the sun striking the windscreen from a shallow angle... it's totally impossible to get rid of, from all the ways I've tried!), or maybe there are some shots with some pesky fences in the way...

Now, all that we're still missing is a method to reliably remove camera shake given a single input image (or maybe 2 if we're lucky :). I've got a nice collection of sample images from before I got my 7D that were ruined by that blasted stuff...

Oh, and it wouldn't hurt to get hold of a demo of this code too in the meantime ;)  Hehehe

Wednesday, September 16, 2015

Watch This Space...

A little animation test with Grease Pencil this evening for fun :)

(It's a pity about the video quality. The FFMPEG settings in Blender really need a good shakeout as the ones we've got now are completely unusable!)

Friday, September 11, 2015

Joel Spolsky - "You Suck at Excel"

This afternoon, I came across an interesting link (warning 1 hour long) to a talk discussing some really handy tips for making the most of Excel - you know, that thing you may have used to make silly gridded layouts with ions ago...

For me, these are particularly timely/relevant tips, as next week I'll be teaching a lab of undergraduates (actually, two streams in one day) on how to make use of performance modelling techniques to compare different UI designs.

Tuesday, September 1, 2015

Blender Dev WIP - Sneak Peek of Some Exciting Tech

At long last, it's taking shape...

Monday, August 24, 2015

Rabbit and Cat

This afternoon, I came across this pair in a nearby park/reserve...

It was surprising to see such a large rabbit just hopping around in the middle of nowhere with that cat close by its side. At the time, it looked like they were quite comfortable in the presence of each other, so I can only guess that they are someone's pets. That said, the cat, despite its fluffy tail, looks a bit evil...

Wednesday, August 12, 2015

Siggraph Report/Link - Pixar's Sketch/Silhouette Posing Tools

Some of the first reports are already coming out about the hot new stuff being presented at Siggraph this year. Perhaps of most interest to me personally has got to be the stuff discussed in this FxGuide article though, about the Dreamworks facial rigs and the new tools that Pixar has got in their in-house "Presto" software!

In particular, the most exciting parts of this are the sketch-based and silhouette based posing tools in Pixar's Presto. What probably isn't widely known (but which I have dropped hints about here and there) is that these are exactly the tools that I've been working on for Blender over the past few years. (Truth be told, if I didn't have to do anything else, right now, they'd be what I'd be spending most of my time working on). My first attempt at this was 3 years ago back in 2012 with the Pose Sculpting tools (experience gained from that work is now powering the new GPencil Sculpting tools). More recently, I've been looking into some more powerful/useful "line of action" sketching tools (though this is all still relatively early-stage work, so there's not much to see just yet).

Tuesday, August 11, 2015

Birthday Silvereyes

I've been having a great time over the past few days (snow + great food + fun coding!), despite a few minor hiccups (an early morning start to tutor 2 labs yesterday, and a burst tire the day before). However, what really made my day yesterday was when the lovely silvereyes treated me to a special display of fluff-ball cuteness.

Cosmos Laundromat - Episode 1 Online

Congratulations and thanks to the Gooseberry team for the belated (due to timezones) birthday gift this year :)

Saturday, August 8, 2015


Woohooo! Tonight we've got snow for the first time in years! :D

Yay! Yay! Yay!  This epic weekend is already off to a freakin' awesome start! :D