notes from the bigfug

notes from the bigfug

programming light and other strange tales

notes from the bigfug RSS Feed
 
 
 
 

Twitter Updates for 2009-06-28

Powered by Twitter Tools.

Twitter Updates for 2009-06-21

  • All packed up and ready to go install the hardware for the cafe installation. #
  • Covered in dust from sawing holes in the plasterboard ceiling for speakers. Two down, two to go… #

Powered by Twitter Tools.

Twitter Updates for 2009-06-14

  • Off to the café for projector and camera tests, and lots of measuring to build a 3D model for our video mapping to sit on. #

Powered by Twitter Tools.

PatchBox and Twitter (weird features)

2009-06-08 - 0017It’s an increasingly frequent situation where, having just added some new feature to PatchBox (in this case vector text rendering), it becomes plugged in to a wide range of existing functionality that opens up such a huge amount of possibilities I have to go and sit in a dark room for about an hour.

Well, not quite that bad, but it takes me back a bit.

For example, as the whole of PatchBox is LUA scripted, I bunged together a quick 50 line script that reads the public feed from twitter every 15 seconds and renders the first entry as vector text, seen here with a phong lighting CGFX shader.

I didn’t have to add any extra code as LUA happily loaded some external libraries (luaexpat and luasocket) after I’d copied them into the PatchBox directory, and then it was a simple case of making an HTTP request and parsing the XML.

Pretty basic, but a quick proof of concept and it works!

Thinking it might make quite a fine installation rendering out the real-time twitter feed onto a building using video mapping.

FUN.

Anyway, back to the cafe project…

Adding FreeType2 support to PatchBox

It’s well overdue, but am finally getting around to adding font support to PatchBox.  Rather than using bitmap based fonts, I thought it would be fun to use the font outlines and create proper 3D models.  Here’s how it went:

2009-06-05 - 0002 

Having extracted the glyph outline using FreeType2, let’s draw it with GL_LINES… ah…

2009-06-05 - 0006

GL_LINE_STRIP isn’t correct either…

2009-06-05 - 0007

Ah, good old GL_LINE_LOOP…

2009-06-05 - 0005 

Initially, adding conic and cubic curves didn’t go quite as planned…

2009-06-05 - 0008

Better, but FreeType2 uses long’s to position data, resulting in the rather wobbly lines.

2009-06-05 - 0009

Converting to double’s does the trick nicely…

2009-06-05 - 0010

Now, lets’ fill the outlines using gluTesselate() – oh, FreeType2 uses NONZERO winding by default, whereas GLU uses ODD…

2009-06-05 - 0013

That’s looking better, but there’s still a problem…

2009-06-05 - 0014

Some characters are being drawn weirdly!  Turns out to be a problem with my GLU_TESS_COMBINE_DATA routine.  I’m using a custom vertex format, which I thought was what you returned from your combine callback, but no, you have to return an allocated GLdouble[ 3 ] and remember it so it can be freed later.

2009-06-05 - 0015

The finished result!  All nice and smooth and stored away in vertex array ready for dumping to a VBO…

Next up will be creating a whole string, then multiple lines, then adding depth, colours, textures, etc!

Pictures from the Quadratura Labs

Some eye candy from the last week’s developments!

Edge finding by depth buffer Image segmentation Shadows, finally working! Spotlight and shadows COLLADA loading and 100,000 polygons test Another weird visualisation

Belle Atmos Gig: 25th July 2009

July 25, 2009
7:00 pmto11:00 pm

Belle Atmos will be returning to The Fleapit for another full-on audio-assault and visual trickery!

Hope to see you there!

Details and directions

Twitter Updates for 2009-06-04

  • Yum, ordered me some short throw projectors! #
  • And a new PC, and a Triple Head 2 Go – I love this part of a project! #
  • @alpaykasal Oo, QID looks like fun. Will check into those. Fortunately only need 3 outputs for this job :) in reply to alpaykasal #

Powered by Twitter Tools.

Twitter Updates for 2009-06-03

Powered by Twitter Tools.

Twitter Updates for 2009-06-02

  • Good start to a busy day: free coffee and almond croissant. Got some heavy geeking to do down the code mine this week. #
  • Cooking my aubergine mesh! Tasty! #
  • Oh noes! My aubergine has no normals! #

Powered by Twitter Tools.