
I Live In Sydney

I Catch A Bus

My Son Thinks This Phone Is Silly

I Live In Sydney

I Catch A Bus

My Son Thinks This Phone Is Silly
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 🙂
“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…
In the end RTFM was the solution…. and a bit of simple algebra..
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) / KA -> 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) / KA -> 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.
https://blog.metawrap.com/blog/PermaLink.aspx?guid=a1bda83a-a404-4677-b1d5-3d409d1aeffa | Comments
http://www.tenbyten.org/10×10.html
Strange to see my old band still has a strange cult following. We are listed first in the “The Gothic Music Handbook” and also as the first band listed in the Gothic Rock Black Book by Mick Mercer. An accident of name I know – but we are chuffed.
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.
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’re Bettie Page!
What Classic Pin-Up Are You?
brought to you by Quizilla
Cool!
Yep.. thats me… on a good day 🙂
That hurts.. but Its probably true 🙂
?? Which Alcoholic Drink Are You ??
brought to you by Quizilla
Ohh. Please!! – Is this just a random number generator?
?? 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
| You are |
|
|
Oh dear 🙂
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!
Harry Potter Personality Quiz by Pirate Monkeys Inc.
Potter!!!
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.
|
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.
|
What Firearm Fits You Best?
created with QuizFarm.com
And dangerous to know…
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.
|
How Will You Die??
created with QuizFarm.com
Damn…
The Twenties.
Which Decade Are You?
brought to you by Quizilla
Can’t…
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.
|
Which religion is the right one for you? (new version)
created with QuizFarm.com
Yes!!!
Oh God…
OK – thats enough of that….