When Photo Blogging Goes Bad

IMAGE_005.jpg

I Live In Sydney

 

IMAGE_030.jpg

I Catch A Bus

 

IMAGE_031.jpg

My Son Thinks This Phone Is Silly

Posted in Downtime | Leave a comment

Sil 3112 + Western Digital = Pain

Some lunch time browsing – I am now seeing a pattern. There seems to be a common sob story.

Sil 3112 + Western Digital = Pain

http://www.short-media.com/forum/showthread.php?t=32717

http://forums.hexus.net/archive/index.php/t-27260.html

http://www.hardwareanalysis.com/content/topic/25671/

I did however find the latest and greatest driver.

http://www.short-media.com/download.php?dc=46

There even appears to be a modded driver…

http://www.short-media.com/forum/archive/index.php/t-20543.html

And from this I found a link to the old SIL CMS stytem, which seems to be the repository for even the latest drivers and BIOS 🙂

http://12.24.47.40/display/2/index.asp?c=12&cpc=ULwO0A442oKs512Q04X5i0UupP4SveI6dt2WJi7&cid=2&r=0.4921533

Posted in Downtime | Leave a comment

Some Interesting XML Standards relevant to future MetaWrap development..

Relevant to future MetaWrap development..

BPEL – Business Process Execution Language

http://www-128.ibm.com/developerworks/library/specification/ws-bpel/

XFORMS

http://www.w3.org/TR/2003/REC-xforms-20031014/

 

Posted in MetaWrap Server | Leave a comment

Bushism, Blog And Google Video

“And I think the world would be better off if we did leave ….. if we didn’t … if we left, the world would be worse. The world is better off with us not leaving. It’s a mistake to pull out.”

George W Bush September 20, 2004

New blog version – I can edit and not publish to XML – so you can all miss out on my intermediate musings 🙂

Google has released their video service that indexes the closed caption and takes thumbnails of the videos as they play. Shame they didn’t fix the obvious gotchas with indexing closed caption. How many times in a subtitled film have you seen the text [Music]?

http://video.google.com/videosearch?q=Music

Its PooBah’s all the way to the bottom…

video_google_music_tiny.png

Posted in Uncategorized | Leave a comment

Anti-Aliasing Tessellated Polygons in GL – Part II

In the end RTFM was the solution…. and a bit of simple algebra..

7.2 Polygon Antialiasing

Antialiasing the edges of filled polygons is similar to antialiasing points and lines. However, antialiasing polygons in color index mode isn’t practical since object intersections are more prevalent and you really need to use OpenGL blending to get decent results.

To enable polygon antialiasing call glEnable() with GL_POLYGON_SMOOTH. This causes pixels on the edges of the polygon to be assigned fractional alpha values based on their coverage. Also, if you want, you can supply a value for GL_POLYGON_SMOOTH_HINT.

In order to get the polygons blended correctly when they overlap, you need to sort the polygons in front to back order. Before rendering, disable depth testing, enable blending and set the blending factors to GL_SRC_ALPHA_SATURATE (source) and GL_ONE (destination). The final color will be the sum of the destination color and the scaled source color; the scale factor is the smaller of either the incoming source alpha value or one minus the destination alpha value. This means that for a pixel with a large alpha value, successive incoming pixels have little effect on the final color because one minus the destination alpha is almost zero.

Since the accumulated coverage is stored in the color buffer, destination alpha is required for this algorithm to work. Thus you must request a visual or pixel format with destination alpha. OpenGL does not require implementations to support a destination alpha buffer so visual selection may fail.

Ok so the cognitive leap I failed to make was the whole background thing. if you draw your background – all your final colors are blended with it – this is what I battled against tonight. To end up with the colors you want, you need draw your polygons in inverse order. Nearest first. Thats the counter intuitive part. The background gets drawn last. So if you want a non-black background you need to draw a Quad to the screen last. The reason is obvious if you think of the math of the blend function.

Source and destination scale factors are referred to as (SR ,SG ,SB ,SA) and (DR ,DG ,DB ,DA).

Source and destination color components are referred to as (RS ,GS ,BS ,AS) and (RD ,GD ,BD ,AD).

They are understood to have integer values between zero and (KR ,KG ,KR ,KA), where KR = 2mR 1, KG = 2mG 1, KB = 2mB 1, KA = 2mA 1 and (mR ,mG ,mB ,mA) is the number of red, green, blue, and alpha bit planes. This is a fancy way of saying 8 bits = maximum value of 256, 16 bits = maximum value of 65536 and so on. For our example below we can assume that k? = 1.0 as it simplifies the math.

Colours are blended by combining the defined source and destination blend factors and source and destination pixels using the following equation.

R (d) = min(KR,RSSR+RDdR)

G (d) = min(KG,GSSG+GDdG)

B (d) = min(KB,BSSB+BDdB)

A (d) = min(KA,ASSA+ADdA)

AS = Alpha source which is material opacity, ranging from 1.0 (KA), representing complete opacity, to 0.0 (0), representing complete transparency.

AD = Alpha destination

The essential components of the solution is as follows

glClearColor

( 0.0, 0.0, 0.0, 0.0 );

You must start with RGBA values all at zero – this becomes obvious when you look at the maths.

glEnable( GL_BLEND );

glEnable( GL_POLYGON_SMOOTH );

We need to turn on blending and polygon smoothing.

glDisable

( GL_DEPTH_TEST );

Depth is useless – sorting is futile.

glBlendFunc ( GL_SRC_ALPHA_SATURATE , GL_ONE );

GL_SRC_ALPHA_SATURATE

 in the source scale factor signifies (SR ,SG ,SB ,SA) =  (i , i , i, 1)  where i = min (AS , kA – AD) / kA

GL_ONE

in the destination scale factor signifies (DR ,DG ,DB ,DA) = (1 ,1 , 1, 1)

Assume a destination pixel starts with 0,0,0,0 (so Ad = 0)

We write 1,0,0,0 to the display at a pixel location

We can assume that KA is 1

so

(RS , GS, BS, AS)  = (1,0,0,1)

(RD ,GD ,BD ,AD) = (0,0,0,0)

min (AA , KA – AD) / K-> min (1 , 1 – 0) ->i = 1

so

(SR ,SG ,SB ,SA)  = (1, 1, 1, 1)

(DR ,DG ,DB ,DA) = (1 ,1 , 1, 1)

R (d) = min(1,1*1+0*1) = 1

G (d) = min(1,0*1+0*1) = 0

B (d) = min(1,0*1+0*1) = 0

A (d) = min(1,1*1+0*1) = 1

So we have written a 100% opaque red pixel

Now lets write a green over the top of that…

so

(RS ,GS ,BS ,AS)  = (0,1,0,1)

(RD ,GD ,BD ,AD) = (1,0,0,1)

min (AS , KA – Ad) / K-> min (1 , 1 – 1)/1 -> i = 0

(SR ,SG ,SB ,SA)  = (0, 0, 0, 1)

(DR ,DG ,DB ,DA) = (1 ,1 , 1, 1)

so

R (d) = min(1,0*0+1*1) = 1

G (d) = min(1,1*0+0*1) = 0

B (d) = min(1,0*0+0*1) = 0

A (d) = min(1,1*1+1*1) = 1

And thats still Red – not Green because of the destination alpha. As soon as a pixel gets to an alpha of 1 – its is no longer changed by subsequent writes. As long as you write the pixels closest first they will naturally clip. All the tessellated polygon artifact alphas will saturate instead of cancel out – so you will get no artifacts.

The explanation of why it works is all in the maths.

Posted in GL | 2 Comments

A Similar Search Meme

http://www.tenbyten.org/10×10.html

http://buzztracker.org

 

Posted in Coolhunting | Leave a comment

New MetaWrap Project Website

Congratulations – Its a Bliki!

http://www.metawrap.com/

Old version is still available at

http://www.set-top.net

I just installed MSN Messenger V7 – comes integrated with search and MSN spaces blogger.

http://spaces.msn.com/members/miaowmiaowmiaow

Posted in Meta-Narrative | Leave a comment

Nanotech

Speaking of old bands – one of my old bad techno songs has been released on http://www.openpodcast.org as The Rhinoceros Song – OpenPodcast.org #759 aka “Mastitis” – people used to just call it “The Rhinoceros Song” so it just kind of stuck 🙂

The Vogon stood up. “No, well you’re completely wrong,” he said, “I just write poetry music to throw my mean callous heartless exterior into sharp relief. …

Been staring at the parser code out of the corner of eye for the last week. I have a fair idea of what needs to be done. I need a pattern that can keep track of the last state of all MwW3ParserLexerStates as they thread through all the MwW3ParserLexerStateGroups– the trick being that the last State in all State theads within a set of optional lexemes needs to be remembered so that the subsequent lexemes of approprate logical precedence can add their first State as an option into each of them and converge/reduce onto a Group for that lexeme.

Makes perfect sense to me at least .. I’m in the process of checking that each of these steps is feasible.

Posted in Meta-Narrative, MetaWrap Server, Nostalgia for Misspent Youth | Leave a comment

The Accelerated Men

And one track that everyone loved was still being played in clubs in Melboune in 2002 – almost 13 years after it was made.

And of all things we are now listed among the seminal Goth bands of Perth by Vince Valentini. Vince, I swear the tiny little font was Jay’s idea. 🙂

A tiny little legend of a band.

I do miss those days.

Posted in Nostalgia for Misspent Youth | 2 Comments

If I had been born a woman… or as a piece of polyhedral dice

Ok – so I have gone exploring those silly online quizes that give you an icon at the end to represent yourself. It started with one and two and…. *sigh*

If I had been born a woman it seems that I would have been…

….very cute 🙂

You are Bettie Page!
You’re Bettie Page!

What Classic Pin-Up Are You?
brought to you by Quizilla

Cool!

I am a d10

Take the quiz at dicepool.com

Yep.. thats me… on a good day 🙂

You are .ogg Even though many people consider you cool and happening, a lot still find that you're a bit too weird to hang out with.
Which File Extension are You?

That hurts.. but Its probably true 🙂

Cocktail

?? Which Alcoholic Drink Are You ??
brought to you by Quizilla

Ohh. Please!! – Is this just a random number generator?

Waterfall
?? Which Natural Wonder Or Disaster Are You ??
brought to you by Quizilla

Get me a bucket.


Take the What animal best portrays your sexual appetite?? Quiz

Giggle!! 🙂

You are

Oh dear 🙂

HASH(0x8c85634)
You are green. Perhaps one of the most balanced of
all the colors. By balanced, I mean balanced
in both bad and good parts. Let me elaborate:
You’re a natural, and somewhat superficial
person. You’re extremely generous, but, to add
to the confusion, you’re frugal and stingy.
You’re a forgiving, but jealous person. You’re
imaginative, but still logical. At sometimes,
you’re a complete neat-freak, and other times,
you’re a total slob. You’re very stable, but
undependable. But onto the other traits that
are associated with this color… You’re a
stubborn person, simply put. Do you believe in
Feng Shui? Green is closely related to the
thought of having a balanced environment, you
know. When in a bad situation, you’re
painfully pessimistic, and when you’re in a
good situation, you’re extremely optimistic. A
fairly outgoing and amused person, you enjoy
talking to people, and hearing their thoughts
on different things. As a plus, when people
hang around you, it seems like time passes by
all the more quickly.

What color are you? (Amazingly detailed & accurate–with pics!)
brought to you by Quizilla

Thats Better!

Pirate Monkey's Harry Potter Personality Quiz
Harry Potter Personality Quiz
by Pirate Monkeys Inc.

Potter!!!

cute but psycho
you are the cute but psycho happy bunny. You
adorable, but a little out there. It’s alright,
you might not have it all, but there are worse

which happy bunny are you?
brought to you by Quizilla

Mad..

You scored as The Sorrow. While lacking combat capabilities, he has the ability of a medium. He can talk to the dead and obtain battle information from the dead. By bringing down spirits of the dead into him, he can assume their combat capabilities. His favourite weapons are the spirits of the dead.

The Sorrow

70%

The End

60%

The Pain

55%

The Fury

50%

The Fear

45%

The Boss

35%

Which Cobra unit member are you?
created with QuizFarm.com

Bad…

You scored as Assault Rifle. You are soldier. Or you want to be a soldier. Or you just like military-grade firearms. You need assault rifle. M16 or AK-47 will make good.

Assault Rifle

100%

Pistol

100%

SMG

88%

Sniper Rifle

75%

Shotgun

75%

Machinegun

63%

Revolver

50%

What Firearm Fits You Best?
created with QuizFarm.com

And dangerous to know…

you are Nick Cave!
Nick Cave… dark and creepy. You’re a bi-polar
genius, with equal passion for the most
degrading aspects of humanity, as well as the
beauty & wonder of God and Heaven.

Which fucked-up genius composer are you?
brought to you by Quizilla

See 🙂

What Is Your Star Wars Sex Life?

Yay….

You scored as Gunshot. Your death will be by gunshot, probably because you are some important person or whatever.

Gunshot

80%

Stabbed

67%

Bomb

53%

Cut Throat

33%

Accident

33%

Suffocated

33%

Dissapear

13%

Disease

0%

Suicide

0%

Drowning

0%

Eaten

0%

Posion

0%

Electric Chair

0%

How Will You Die??
created with QuizFarm.com

Damn…

20s
The Twenties.

Which Decade Are You?
brought to you by Quizilla

Can’t…

Orange
Orange is your Lightsaber color. Orange represents energy and enthusiasm. It also
symbolizes strength and endurance. People with
orange lightsabers are curious about life, and
the world around them. Fascination catches them
at every turn, and they are creative enough to
understand life’s potential.

What Colored Lightsaber Would You Have?
brought to you by Quizilla

Stop…


Geek

What’s Your Personality Type?
brought to you by Quizilla

Now…

How random are you?
this quiz was made by alanna

Aw…

You scored as Satanism. Your beliefs most closely resemble those of Satanism! Before you scream, do a bit of research on it. To be a Satanist, you don’t actually have to believe in Satan. Satanism generally focuses upon the spiritual advancement of the self, rather than upon submission to a deity or a set of moral codes. Do some research if you immediately think of the satanic cult stereotype. Your beliefs may also resemble those of earth-based religions such as paganism.

Satanism

92%

Islam

83%

Buddhism

83%

Paganism

83%

agnosticism

75%

atheism

75%

Judaism

42%

Christianity

33%

Hinduism

33%

Which religion is the right one for you? (new version)
created with QuizFarm.com

Yes!!!

Oh God…

OK – thats enough of that….

Posted in Downtime | Leave a comment