Showing posts with label Magic. Show all posts
Showing posts with label Magic. Show all posts

Sunday, July 29, 2012

Everything You Need to Know About NP-Completeness: 1

Let's play a game.
THE RULES
Number of players: 2
Materials needed: 2 pencils, scratch paper.

ORDER OF PLAY:
■To begin the game, one of the two players names a mathematical (counting) problem, and how many tries it will take her to solve it.  She may generalize the number of tries as an equation.  The problem may be as general or specific as she like.
She should write this information down on a piece of paper, and give it to the second player.
She is now Player 1.
This ends her turn.

■Player 2 now has at least two choices.**
     1) She can change one and only one element of the problem by making the necessary alterations to the text.  She returns the paper to Player 1.
     2) She can challenge Player 1 to solve an instance of the problem in the stated time.
She may not do both.  This ends her turn.

■Player 1
    1)  If the problem has been changed,  she must  offer a new number, or equation, to describe the amount of time it will take her to solve the revised version of the problem.
She may also Dispute the Change, as described below.
She then returns the paper to Player 2.
This ends her turn.

Play returns to Player 2, who has the same choices as her previous turn.

     2) If Player 1 has been challenged, she must then solve the instance of the problem.  If the solution is an equation, it must be of the same order as what she has written on the previous turn.
If she is successful, she WINS, and if not she LOSES.

■Ending the Game
Play repeats until  Player 2 challenges Player 1, at which point one of the players will WIN and the other will LOSE.

**I have selected two choices, to demonstrate a winning strategy.   Players 1 and 2 are free to invent any number of alternatives.  Player 2 may, for example, decide to play airplane instead.  Though it is unlikely to help Player 2 win the game, I will not argue with the merits of this choice.  If you do not know what I mean, then when you reach the end of this sentence, I ask you to stop reading, step away from the computer, and play airplane.
There is no wrong way to play.

SPECIAL RULES
  • Disupting a change:  When  Player two changes the problem, there must be agreement that only one element has been changed.  There need not be a precise definition of "element", but a successful dispute must be mathematically sound: she must name an alternative change which satisfies the following sentence.
     
    "The change made by Player 2 is composed of this change, and at least one other."She is not required to identify the other change(s).  She does not have to offer a time in which she can solve her change.  If her dispute satisfies the sentence, and the composition is mathematical, then the dispute carries.  
       a) The disupte is successful, the problem is returned to Player 2, who may agree to the change made by Player 1, or offer a new one, following the same rules as before.  In either case, this ends her turn.

    It is now Player 1's turn.
     
          If Player 2 agrees: Player 1 cannot dispute her own change. She must now solve the problem
          If Player 2 offers a new change: Play passes to Player 1 in the usual way and she has the right to dispute the change. 

       b) The dispute is unsuccessful:  Player 1 resumes her turn and must offer a solution time in the usual way.
      
    c) If no agreement can be reached, the game is DRAWN.  A draw is not a permanent state.  If one player demonstrate a resolution which is accepted by both players, play resumes.   
  • Time limits:  There are no time limits on any action.

The rules are incomplete. The game can be improved by playing it. If a rule fails to help us identify the structure of a problem, we should change it.

But the rules are just for fun; an invitation.

A WAGER
I will be player 1.  Would you like to be Player 2?  Have a seat.  See?  I even have cookies and tea.

I say that you, Player 2, can always win.
What is the winning procedure?  {My answer}
■
__________________________________
In the attic of the theater: Anna, in perriwinkle tights. 
Tucked in the prow of a small boat, his room meanders on and off stage.  Boys and girls in white shirts and blue caps, blue ribbons around the waist, march down the tiny stairwells; left, right, zigzag.  Pointed newspaper hats and painted wood swords.  Anna, perched in the rafters.  Two seamstresses, green eyes, and dense, blanket legs, sew shut her shoulders.  The cloth falls aside and she is again mottled pink-and-white.  And the blue, crawling up her sides.  Two cloth frowns, the seamstresses drift away.
 When time is akilter, his room hovers translucent over the crowd, he threads the muscles of his arms and legs through the pulleys, stretches his back along the walls, crouches behind the sets, each with a small network of baskets and chairs and roomless corners for him. He watches the attic, invisible.
The bows.
The cast walks on and off, and she among them.  In a clatter and clump, toy trumpets, they proceed through the left wall of his kitchen and vanish.  Anna stops.  When she puts her hands on him, the muscles unhook from the pulleys.  Concave limbs bound in circles unbind, fatten.  Into his right hand she places the slow winding and unwinding of her skin --in and out of blue--,  and breathes it into his mouth.  The two pour from finger to tongue, in the attic of the theater.  Her fingers bloom. His wrists fall open in orange circles of sleep, and in the evening their skin falls as sunlight on the faces below.  Leaf-tongued, his words spiral her thighs, and her mouth flowers around his neck, murmurs in the deepening furrow of his spine.       

Tuesday, June 5, 2012

Blizzard, June

To Our Brown-eyed Cousin,

Selky daughter, split-tongued; who wears the river, skirt-and-trouser;

I have always preferred to mock the donning of garlands, and laugh at each pronouncement of the phases of the moon.  Today the stories are no longer a game.  Your friends have been murdered and a white sill advances into the chest of the living.  None of this is alright, and I was foolish to say otherwise.

We know the Queen abducts the body.  She took us as presents; bound in furs and sleep.  This is why we practiced.   The chill curtain is our common enemy, and we are not without recourse: we are at ease with winter; the ice moon is ours.

There are three months between us and the boyish Harvest-moon, and then the Blood.  You intend to our shore by September. Then, come.  The vote has been called, and counted.  We request your presence among us, by the Harvest moon.

This date passing without sign of your arrival, I am prepared to hunt you, bring you across the river. You never have to go back.

The objections have been heard, and dismissed.  We summarize:

That we are allied with the Snow Queen.
We stole the bodies of boys and unknotted her violet dresses.  It is true.  I wear the bolt through the chest, still.  The allegiance is renounced.

On the division Seele - Unseele
We declare it null.  Let them say fortune, misfortune.  Favor and disfavor.  Nonsense.  We have not found our hearts so divined, nor the navigable world so divided.  The storm is everywhere.  Dreams come, regardless.  Terror creeps under the windowsill; I shake in the arms of lovers.  Neither pole withholds itself.
The borderlands are undivided and we believe this fact is plain to you.

That our mouths are dangerous
Well.  We are toothed.  So are you.

We love our neighbor, crooked, and hope that she is crooked in turn.
Let me walk alongside you in the dark.

It is therefore decided to send for you , to live the winter among us.  All hands assent.
Promulgated this second rose day of June.


     We remain your most humble & c.

     The wolves.

Saturday, May 5, 2012

And Then You Fight the Cakes

In video games like Fable there are mercenaries and pirates, swordsmiths; adventurers and pickpockets-by-profession. In the coinpurse hanging at your smartly burnished buckle, three axes, seven cutlasses, a broadsword and three jeweled blunderbusses have been carefully packed. They shift soundlessly against a year's supply of immortal perishables and several thousand pieces of gold as you sneak by an encampment of Goblins.  Every enemy was born to fight you; Evil men wear black and have a glitter in their eye, and each has taken the same acting classes.  Bodies vanish into rainbow droplets of pixie blood.  Trolls never buy groceries, quest-givers never sleep, and if three hundred pounds of cobbler are too much to carry, any shopkeeper who knows five sentences will be happy to buy all of it, though no one but you has bought a saleable item in all the kingdom since last spring.  Pants, pies and pewter cups know their owner by touch and there is not a man or woman alive who won't fight to the death over a stolen wood plate.  Crabs can talk, boats never travel unless you're on them, and for the last seven years, the inhabitants have been ritually burying their possessions in small, perfectly covered caches throughout the realm.  To find them, there is only one important question: Do you have a cute dog?

Everyone is barking-dog crazy.
I have no quarrel with any of it.  I want more.

Suppose we re-enter our ordinary D&D-meets-faerie actio-adventudrama, and the madness escapes the confines of rhetoric and trope.  So when you ask where to find the mercenary camp, and you stumble across the talkative chap who tells you what mercenaries like...

"...and as everybody knows, mercenaries like cake.  When I was a mercenary, I liked cake.  When I was a mercenary,  I got paid  in cake.  I was a cake mercenary.  I fought for cake.  I fought cakes.  I fought for cake against cakes and then I ate them."

...if you think, what clue lies nestled in this dialogue, which discloses the location of the camp?
... there will be none.   He is neither lying nor crazy.

And then you have to fight the cakes.
You, against a mad army of cake-based desserts.  Maybe they have an alliance with the fillo nation.  Certainly the pies and doughy legions are among them.  Brightly colored, layered, frosted and assembled cakes, cakelike derivatives:  eclairs, operas.  Spongecake, rumcakes.  



Cakes.
All frightfully fragile and nearly tumbling apart.  Their tools, weapons, uniforms and garnishes are pastel and pressed-sugar hard-crumblies: wedding party figurine arms, thin paper hats and parasols. They fire silver decorative balls out of frankensteined kitchen implements and clown accessories.

Wobbling slits of cherry pie stoop to pick up their bloody, aborted filling as it dribbles out of folds and joints.

Their blood is pureed and reprocessed brains.  Stiff and slender recruits are held down, and the remains of the dead are pumped into their bellies.  Their mouths are stained with cannibal crushed raspberry, marionberry, salmonberry.  They march in rows by color, assorted and munitioned by rhyme.  Mouths and arms, whole floors of cooked, spongy thorax fall off when they talk and move.  They have very little magic.  To you, their weapons are at most a nuisance, an adorable surprise.  Their bodies break in your hands, you squish and puncture them.  Tear them to pieces, knock them down, scrape off their faces and limbs.

The battle will not go well.  You are a self-contained annihilation. Oh, they might get lucky; perhaps you drown in a well banana pudding and poison a whole state with your rotting meat and iron-filled, pulsing blood.  Accident, freak chance are their only salvation.  At night they shield themselves from the fragrant dead with white-ribboned gauze, hard, transparent plastic.  Perhaps your inscrutable design is satiated; rubbing sugar cubes on one another's crowns, they pray.   It is not.  The hours of slaughter stretch into days. 

The cries are sweet, and the swell murmurs low through the grass.  Unsettled, uncooked platoons bulge forward and expire.  Eyes stretch, plump, explode in gasps.  Roccoco, rainbow gutworks spill about you in fountains.  Their voices gurgle; the vibrations of wailing rend their soft throats.  You carve a single swath of silence through hillsides of horrified wailing, the width of your arms, through the countryside.  Still they advance.  Bodies fall apart on-the-march.  You splatter a thousand bodies with a gunshot.  You pause and shove a tray of babies in your mouth.  The horror eclipses them, their mouths fall off from screaming.  Plastic and sugar eyes bend desperately toward the mouth on the ground.  It continues to move, soundless.

Fresh poundcake ramparts rise on the horizon, petit fours hardened in chocolate fan nimbly through the galeries.  Volleys of tiny  pretzel sticks rain down, the doughy heads winking with brandy fires before they are extinguished in flight.  A mille-feuille drawbridge cranks upward, shudders, and disgorges its ribs into the egg whites below.   You begin to work on the curtain wall, hollowing a funnel through the dense frosting while hot peach cobblers are butchered and poured onto you from above.  The air is heavy with cinnamon.

You work mercilessly, back and forth to the river, pouring milk into the widening gap.  At last, hillsides of cake soldiers totter to avalanche.    Biscotti leap from the parapets to clog the flood and filled pastries teem about you with doughnut packets of flour, misstep, pop their innards into absorbent waists of bundt militia.  The mingling with death can never be undone.  Behind the walls, pens of tiramisu groan anxiously.


Now.  Perhaps you, the player, have inched along the borders of rotting fens, moved under cover of night, waded the rivers to avoid the maddened plains of soldiers.  Cradled your precious halo through the congealed wastes, the rank, expired cricks.  Well.  As the days lengthen, the choice must be faced:  even the kindest of heart must eat.   Scrape them up off the ground, cradle handfuls of bodies to your lips.  Pop them into your mouth, dip writhing crescents into a cup of coffee.  The army must be faced.  Only through the dense, mountainous cities at the heart of their civilization, can your mission be completed.  Omnipotent, you will wade through, feeding; wipe their fatty, whipped guts off your mouth with a sleeve, burp, and march grimly forward.

Maybe they get lucky. The first time through you're stupid and take a nap lying down.  
A blue-eyed cupcake with a paper hat holds a squirming, severed macaroon above you, traces a wordless spell, and the stoic biscotti advance,  cram terrified, defenseless tarts into your mouth, ears and nose.  You convulse once, your nostrils filled with angelic, white-and-strawberry pus, vomit, shit.  

Saturday, March 31, 2012

Learning to 3D Model : 6 Days in December


6 Days in December is the steamy paranormal romance zombie... {read more}

...apocalypse rabies-sex movie recently announced by newly united writing trio Christine Feehan, Cecily von Ziegesar and Michael Bay.


A series of mysterious, slow-motion plane crashes in the Rocky Mountains has left thousands of Texas housewives in turn-of-the-century gowns with no oily-chested rogues to screw in the stables, and an army of sex-hungry vampire brides descends on the crash sites where the victims have become baby robot zombies through a chemical interaction with the plane's smoking fuselage.  Meanwhile our hero and his sweetie are mere miles away in an isolated cabin supplied with only the necessary birth control, cakes, and military-grade explosives.


    von Ziegesar: "Basically we've taken Jane Smiley's Ten Days in the Hills, and turned it into something people want to see."
  So you kept the sex.
  "Right.  Plus some vampires, haughty girls, machine guns.  Some kind of plague?  Dunno.  My job was the bitches."


The most intriguing part of 6 Days is the introduction of a new theater technology championed by Michael Bay.  He calls it AntethInc.  We caught up with Mr. Bay at an Adidam colony in Bermuda and he graciously agreed to an interview. {Continued in MOVIES: HILARY HAHN IN THE HILLS} 
_____________________________________________
MODELING THE HUMAN FIGURE
December 6th is my birthday.  This last winter, I gave myself a present.  For the first week of December, I modeled the human body.  Every waking hour.  I rose early, and stayed up into the tiny hours.  Remember to eat.  I slept little.
"Blenederella" is a DVD tutorial by Angela Gannette.   40 hours of screencast are condensed to 8 hours of video with timelapse and voice over.  She models directly from reference images.


I'm not an artist.  I  am learning to see in the reverse order:  surface normal, tension, line, cheek.  I practice seeing, and I will learn to draw.  Angela Guenette's approach was perfect for me: she is a subdivision vert-pusher.


It is not designed to teach anatomy or subdivision modeling.  It is for artists.  I used it to learn anatomy and organic subdivision modeling anyway.  Everything was new.   Time-lapse meant "...and so on," for the knowledgeable artist.  I have no such knowledge; I copied the time-lapse, vert-by-vert.  The video for the hand is 20 minutes long.  I spent over a day with it.  Often, I would advance through a few seconds of footage in an hour.


The DVD includes the finished model.  I examined it three times, for details not clear in the videos.  I did not use it as to place vertices, I borrowed no geometry.   I only corrected  what I could see.

 Thursday, December 1
Friday, December 2
Prepare the reference images: front, side, back, 3/4 profiles.  Align them in Photoshop: match height and body positions.  

Begin with the eyes.  Raccoon mask face, the bridge of the nose, trailing off at the cheeks.  Eyes.  Eyelids.  The socket.  Eyeball.

It took me three days to complete the face.  It was nothing like hard surfaces.   Thursday, on just the eye and socket.  Each new form caused me trouble.  The transition from the eye socket to the forehead is my mortal enemy.  We fight in space.

End of Day 2



Saturday, December 3

The chronology is off.  I must have started on the last day of November.  I spent three days on the head.  And I spent Saturday on the ear.
I was thoroughly vexed three times: the ear, the elbow and the hand.  All Saturday, the ear.  Perhaps sixteen hours. The ear is compact, folded, and thin.  I screwed it up.  Some subdivision mistakes can escalate. I made them.  Fixed it.  Screwed it up again. When I moved verts enough change the shape, my mesh became unruly.  I had made a mess of  the base geometry.  
Irreparable.
No. 
I almost gave up, which made me angry and I reworked the entire ear.  I talked to myself.
Why is it doing that?
Because you're telling it to.  Ask a better question.
Damnit! Okay.  Think.  Describe what is going wrong.  Describe how you want it to change.  Look at your geometry.  What do you need to fix?

Here is a consistent strain.  The most difficult obstacles, which caused me the most doubt and fear have been those of which, when overcome, I am most proud.  Not because I did it.    I look back, and it is my best work.

Sunday, December 4
Now I was worried I wouldn't finish by my birthday.  I  planned it out, set limits for the amount of time I could fiddle with a problem. 

The torso.  Here I learned the most about human form.  After building a rough cage, she added guides along the body.
Guide lines of the body; shaping the shoulders

Orthographic and perspective views
I spent most of my time with two viewports: orthographic on the left, with reference image.  Perspective on the right, shaping the body in space, and adding detail.  The back is shaped with few vertices: Guenette described each adjustment, the bones and muscles she was following.  I want more than ever to learn anatomy; to draw.

This is when I started to understand what can be done with subdivision.   When I removed the guides, I was stunned.  Even my mistaken placement, causing an extra, odd bulge, shows clearly as if the musculature and bone were there.

Monday, December 5
The elbow caused me no end of trouble: I never got it right. To move on, I promised myself a return visit, with pencil, paper, and anatomy books.

Okay, look.  I knew the hand would be hard.  I had plenty of warning.  
Artists tell stories about hands.  And I work with my hands.  About the motion of fingers, I have a very good idea of the difficulties.  I still had no idea how hard it would be to model.
First go at the hand
The first hand.  I didn't like what I was building.  My lines were wrong and I wanted more detail. My tendons looked like metal rods.  So I started again.  Her fingers, I left the same as here.  But I deleted the palm, turned my hand over, and worked it out, using the muscles and creases of skin as guides. 


Tuesday, December 6
I stitched the wrist to the rest of the body on my birthday.
Of all my 3D work, I am most proud of this hand.  

Test render of the final mesh


Follow-Up: Hair, Clothes
Rigging and Animation


I've done the hair and the basic clothes.  I will finish the clothes from the tutorial, which includes boots, to cover her missing feet.  Still have the entire process of rigging a bone system, and beginning to make basic movement.  After that, materials to replace the placeholders shown here.

After that, there is still a lot to do before I have a Snow Queen.  Clothing is altogether a new matter.  What I intend, I have never seen.


A Promise
205 left to go.
 ■
__________________________________

{PARANORMAL ROMANCE cont'd - read more}
R:    How's Adidam treating you?
M.Bay: {grimaces} Too much Bulgar wheat.  Where are the goddamn spaceships?
R:     ...sssspace?
MB:   Astral messiah my ass. The little fat guy over there keeps painting himself like an Asian and trying to pork my wife.
R:    So we've heard rumors about "Six Days in December."
MB:   Well, first of all it's "6" Days in December.  And second, it's the first ever AntethInc movie.
R:    And what exactly is AnteThink?
MB:   It's post-thought.  The evolution of story to its highest form.  In a post-thought world your brain can stop completely.  No message.  Just 102 minutes of Hilary Hahn's bare ass, brainthirsty-
R:    Wait... Hilary Hahn?
MB:   -zombies, and giant robots.   And, yes.
R:    The violinist?
MB:   The what?
R:    Violinist
MB:   Ungaramist!
R:    .... curly hair?
MB:   Vagosaurus!
R:    ...plays Bach like the sky is
MB:   Paleidobak!  BOOM!
R:    -trying to spea-
MB:   AERODROME!
R:    CHACONNE!
MB:   ROBOTS.  Giant fucking robots. Giant robots, fucking.  Bigger-Than-A-House-bots.  Zomboloid Bots.  Talking robots that talk. Talkybots.  They say, 'BOOM', and 'POW', and they run on energy,  but mostly blow things up.  They're made out of babies I mean zombies. They're made out energy fucking zombie babies.  It's cold and they kill shit and the zombies spread rabies by infecting the robots with spores.  It is the greatest thing I have-
R:    Um.   You were saying about AntethInc-?
MB:  ever done.  Yes.  Right.  For one hundred two straight minutes you will not think at all. We're passionate about this goal.  Thinking will cause you pain.  Before, I would have said, No, that's not possible.  But after meeting Ms. von Ziegesar...... well..... she opened my eyes to a whole new world.  102 minutes of ass.
R:    ....Hilary Hahn?
MB:   Yeah.
R:    ...the violinist.
MB:   Flabbelotist?  Magzamanist?  Speak English.  Stop wasting my time.  I order you to stop thinking.
____________
Ed:  ...The Violinist.
Try on the Bach Chaconne.

Saturday, March 17, 2012

Learning to 3D Model

Ten months ago, I made my first 3D model.   I have no training or skill at art.  Bust out the crayons and I hold my own with the nine-year-olds.  I don't know perspective.  I can't shade.  I can't make an outline of a head.  But I'm stubborn.  How to explain?
"Giving up makes you angry."
Right!  That's just it.  Thanks, Peter.
Giving up makes me angry.  So I refuse to do it.  I have learned  to 3D model.

Blender
I don't steal software.   It shouldn't have to be said, but it does.
3D Studio is a $3000 application.

Blender is free.  It weighs in at 80MB of hard drive space.  It is a fully functional, workstation-class 3D suite.  It includes a Z-Brush style sculpting interface with full, pressure-sensitive artist tablet support.  IK/FK bone systems, animation.  Blender is only infrequently a compromise.  Compared with 3DStudio Max, there are some things I wish I had.  The biggest oversight, to me, is the lack of N-Gons.  The community is large, and the last year has been spent in a push to consolidate the feature base, integrate new features, including a cleaner, friendlier workspace.  The improvements are impressive.

Did I mention  Blender is a professional, workstation-class 3D suite?  Just download it. http://www.blender.org
Don't worry about hardware.  I do all of my work on a 2-year old Mac Mini.

If you have tried Blender in the past, it is not the same application you used.  I began with version 2.49b, less than a year ago.  The current version is simply a different program.

The next thing to do is watch tutorial videos.  Do not attempt to use the online manual, or you will lose your mind.  You have been warned.

In addition, I found this thread at Polycount (about Subdivision modeling) to be a self-contained course in 3D modeling in general.


Andrew Price Tutorials
{Blender Guru website}
Andrew Price taught me to 3D model.  He is funny.  He works quickly and efficiently.  His work is professional.  The final renders for most of his tutorials look like photographs.  He opens each video with a screenshot of the scene to be built, talks about it, and then does something wonderful.  He closes the final project, opens a brand new, empty scene, and builds it again.
And at the end of a one-hour video, although it may take me six hours to complete, I have built the same scene.  He covers all aspects of the 3D process: modeling, lighting, textures and materials, rendering, compositing; rigging, animation, simulations.
I do not know how to thank you enough, Mr. Andrew Price.

I. Subway Tunnel
Final Render, Composited

I learned a lot about modeling and modifiers from the Subway scene.  He works very quickly, making efficient use of arrays and paths.  Vague outlines of objects become the correct shape like magic, with a SubD modifier.   There will be a train in the heart of the Asteroid, but I still needed to adapt the scene a bit...

I have only made a few changes.  My goal was to prepare the assets for a game engine.  Utility tunnel systems will ramify throughout the Asteroid Museum, and I sought an aesthetic which would translate well to a game engine.  in this case, a design where unnatural, hard shadows are an integral and descriptive part of the world.  The reflections still have to go, but  mostly I need the sheen, and a sliver of light, which can be faked in the floor material.  The important issue here is that these lights can be dynamic, without compromising the lighting quality.  The geometry is extremely simple, and enclosed, allowing more complex and dynamic lights.

II.  Asteroid
This was a fascinating tutorial.  If you know how to 3D model, you can guess just how easy this was to make.  Modern 3D programs are incredible.  The smaller rocks are a particle system; they are animated in time.  In Blender, the scene looks like this:
The black box in the upper left corner is the camera.
As time passes, the rocks fly past the camera.  I have not rendered an animation, but it is as simple as pushing a button.  The dispersion camera effect is done after the scene is rendered, in the Compositor.

III.  
Bullets! 

Final Render - Composited
Another astonishingly easy, eye-opening tutorial.  This is all texturing.  And the textures are not from bullets.  A grungy wall texture, some dirty concrete, and an image of deep scratches in some uknown material.  The actual modeling of the bullet takes 2 minutes.  The camera effects are all done in the compositing stage.

IV. Architecture - Modern Korean Kitchen:
Here, I have done a lot of my own work.  I made my own toaster, knife, utensils, bottles, oven, which are not covered in the tutorial.  The red pot, and the cute little Sorapot below are both from scratch, from reference images.  For a game environment, I modeled the inside of cabinets and drawers so they can be opened.  I also added surrounding hallways and rooms, a window. This room will live in a full house, in the game world.  

The tutorial moves on to a physically-based renderer.  All the materials are simple, and rely upon accurate lighting and reflection.  None of this will do for a game engine, so I stuck with Blender's internal renderer, and changed the setting.  In the following images, I am weaning myself off reflections, and toward soft, white moonlight and specular highlights.
    What to do about reflections?                   ...Soft moonlight to the rescue!
I have not completed the transition, but I think the approach is clear.


IV. Realistic Earth

Sometimes you just have to be done.  I am used to freely manipulating shader nodes in UDK, and I kept trying things Blender's aging  (and now replaced) renderer was not equipped to do.
So I'm done.  I will work out an approach to 3D starscapes when I finish modeling Saturn's Ice Queen moon, Helene.  The Cassini Orbiter's public image library is now sufficient to construct a full, 3 dimensional model.  Incredible.

V. Fluid Simulation
Meet Blender's new render engine, Cycles:
Now, these are meshes.  The water is a fluid simulation/animation, stopped at a particular frame, and rendered.  It is a series of solid objects.  Andrew has a clever approach to modeling ice cubes.

VI.  Rendering with Cycles
The tutorial is an introduction to lighting and materials with Blender's new render engine, Cycles.  He spends no time on modeling; this is the only time I have used the reference meshes, which weigh in at a total of just over 1600 vertices.  Tiny.

To me, this scene is an advertisement for Cycles.  I don't have the hardware to explore Cycles in depth, and  time spent this way is of little practical value for game engines.

I have three uses for such work.  First, the more I know about real lighting, the better  I can manipulate shader code to fake it.  Physically accurate render engines are that good.  I can ask it questions about light, and it will show me answers.
Second, I will be ferrying light from place to place in the Asteroid using natural and artificial prisms and vault lights, liquids, scattering over distances and through different media.  I can build concept art in Cycles to help guide me, and test the physical behaviors to construct the materials and scenes.
Third, Cycles allows direct manipulation of node-based shader materials, in a physically accurate environment.  This is an excellent way to learn about the capabilities of graphics hardware and languages.


More to come... 

Saturday, March 10, 2012

Your Concern That It Is Awful

 to be me is misplaced.

Nine days ago, in the evening, and after throwing off the bear shoulders, I grew a celesta. My lungs were glass bells. Washboard, guitar string hips.  Accordion bellow arms.  I waltzed the orange light as she slipped upward through  my hands, opening to gray-blue. Alone with the cool-waisted dusk, I ran wood wrists against my grooved, silver legs.  I sang.

But you were not worried about the dreams.  It is the machine-work you do not like. It is plain on your face.  "Strange."  Say it again.

"I would hate to think { } caused you to think this way."
It has not.  My mind is what I have made.  There are two persons in your frown, one broken and one fixed, and I am neither.   I know it seems to you I am unwell. And if you were wrong?  How would you check?  I do not say to you, "my wood wrists."  I said nothing about the Snow Queen.  I said, that I reason. That it is not difficult, it is not intelligence.  The times I am misunderstood are oftenest when I use words in an ordinary way.  I do not expect people to think "on the same level."  I expect them to mean what they say, and when they choose to declare truth, when the words are "therefore" and "because", I expect those words to hold.  I am not the one who has chosen them.  This is strange to you when I say it, that I choose to reason.  This conversation is no longer about me.

You write it down,
"... the idea that what I understand to be thought; what it means to me to be alive and possess a mind, is somehow fundamentally wrong or broken..."  You like this sentence.

"Are you sure you've always thought this way?"

"Yes.  In fact, I think this way so completely, that I did not even realize--"

"I mean, even when you were younger?  When you were 10?"

Oh.  I see. The window has shut.
"Yes."

This question is irrelevant; I am not broken.  And I am not a child.  I have had a lifetime to consider; to choose what I will think and how.  Those things about my mind, body and heart which are beautiful, of which I am the most proud, did not exist when I was 10.  I built them.  It is the one thing  I have done which is the most beautiful.

Wednesday, October 5, 2011

What I am up to

    If you are my friend, you may wonder what I have been doing for the last year and a half.   I constructed an experiment in me: a way forward with my life.  I built a story.  In this story I can be whatever I wish; I can do anything, and reach to the top of whatever I choose, unassisted.  This story also gathers my body and heart and brings me closer to those I love.

     I have chosen to work in sound design and have been teaching myself everything I need.  Here is an approximate list (Entries in braces, I have not yet begun):

Music:
Mixing
Mastering
Learn new instruments
Instrumentation
Song styles
Counterpoint

Recording:
Field recording
Studio projects

Mathematics:
Advanced Calculus
Differential Equations
Linear Algebra
Signal Systems and Transforms
(Harmonic Analysis)
Algorithms and Numerical Methods

Visual asset design:
Planning and lighting a scene;
Hard surface 3D modeling;
Organic modeling;
Rigging and Animation
Asset creation:
    Texture and material construction;
    Unwraps, Normal maps, <*.maps>
    Optimizing and Exporting game-ready content

Code:
C++
Game Engine:  UDK
    Familiarize myself with all features of the interface
(DirectX)
(XAudio2)

Writing:
The mechanics of language and the elements of storytelling.

Game project:
Construct a game world
     Build all assets from scratch: visual, audio, code.


Selection Criteria:
Some topics may appear unusual.  What do normal maps have to do with sound?  Why hard-surface modeling and animation before XAudio2? There are several reasons:

     Sound is motion:  Sound does not exist without movement.  Game worlds are nonlinear, interactive.  At least two questions arise: What moves? How?  New tools must provide reusable, generalizable answers to these questions.   But to have motion, there must first be a world.

     Logical integration: A game editor like UDK is a complete logical environment.  Everything in the world - a 3D mesh, the sound of a foostep, a light - is an object. In game design, a good tool is a piece of object-based logic: a set of rules by which objects can be made to work together.  Making tools means developing a code base.   And in relation to other game objects, sound is a result:  New audio tools must be integrated into the existing logic which operates and animates in-game objects.

     Spatialization:  Real-time phase manipulation in 3-space is a defining question of the video game.  Representing audio in 3D is an open question. Epic Games (UDK), for example, takes the position that it is hard, so do not try, i.e. record in mono and pan it. This is the least effective way to spatialize.  A sound image is a field: movement changes the phase relationships within the field, and from these phase relations, we distinguish position.  Panning a mono file does not reproduce, or simulate, motion in a field.

Fortunately, graphics programmers and hardware developers have constructed a considerable body of knowledge and experience in the attempt to simulate a similar question of light propagation. Efficient computational methods in harmonic spaces exist, they have physical representations, sample code is available, and specialized hardware for its execution lies in every game console. I believe apprehending and adapting these graphical and geometric methods is the best and fastest way forward; the mathematics and programming skills are fundamental to the question of audio in a game world.

     I love it: If it is on this list, I do no tire of it. I wake in the middle of the night to do it. I dream about it. I draw crowns in my Advanced Calculus book, and stay up until 4AM recording for a friend.


The Job I Seek:
I want to do the everyday work in audio design. I want to record and make sound effects; match audio to keyframe animations; record, edit, mix and master dialogue. Compose and arrange. This is what I do with all of my time, when I am free. I am at my best when I am the least experienced person in the room. I learn quickly, and I love it.

I do not want to be a team lead or a programmer. Making new tools, for me, is an outgrowth of hands-on work with audio. I have begun building what I need to do that job better and faster. I believe many things can be done which are not commonly believed possible, but I do not have a paradigm to peddle: I am always willing to be convinced. That is why I state my position clearly, and defend it. Code is invention and construction: to posit new ideas and test them requires believing they can be done, and trying every way to make them work.

I have a rough map in my mind of the game engine, and every way audio occurs. I also dig further into the methods that exist, to clarify the map. For each place there is sound, I have thought through at least one way to move forward. These structures are primitive, but similar, and often identical, to what the best audio software companies are building. I do not do this by examining their products. I figure it out first, alone, then I check to see who else knows. This is how I find Valve and iZotope. It is better than finding them. I know how to begin building these tools myself, because those elements I understand, I, too, have invented.

I do not expect you to believe me on my word. I expect to convince you. I will post a series of blogs on various audio and game topics, with examples of my own work.

The rest of me:
There is a parallel story which accompanies these mechanical steps: a boy and a wolf, bound together, ducking in and out of the lands of snow. The mechanics of belief are important; they demystify momentum, and demonstrate that anyone may do likewise. Watever we make up, it becomes true when we build it.  The mind is a magic operator. Its scope cannot be given by a rule; the only reasonable approach is to believe that anything is possible; to believe in ourselves and others, beyond what any argument or theory can give. This assertion holds so easily, it can be tested, exactly as I am testing it now.

There is more than me in this test.  I have carried it around my whole life, Anything is possible. I want to know it, then, from you. I want to see you throw lightning into the world.

Wednesday, January 12, 2011

Magic

Once a year I have a one-hour appointment with my neurologist.

I have roped my jeweled heart into a robin's head.  My tongue is made of feathers.  This new year, the crow says, is going to be beautiful, because we will make it so.  Did I tell you I am afraid I will fail?  Loud-mouthed bluejay, stealing all the pretty birds' songs, calling my thief's tongue a ruby crown.

My appointment is at 8 in the morning.  The sky is only beginning to tumble pink into the treetops when I arrive.  It is January 4th of the year we are new; the year we  begin to say, I am beautiful.

Near the end of my appointment, my doctor asks me a long question, which runs like this:
I don't want to offend you, but [....] The way you describe how your mind works is unusual.  It can get you into trouble; most people don't think the way you do. [...]I believe that your decisions may be right for you.  There are some places I couldn't follow you because I don't know what presumptions you made to get from one place to another.  If this were a conversation at a bar, I'd ask you about those presumtions, and if I were your best friend I would already know what they are.  Like I said, most people don't think like you, and the way you are talking today is different from how you've ever spoken to me before [....] Now let me finish where I was going with that thought [....] I'm not questioning the changes [...] I mention it because amphetamines can change the way your mind works [....] It doesn't sound to me like the amphetamines have anything to do with it, but I have to consider the possibility.  [....] I hope I didn't insult you.

Insulted?  I am elated.  I made the changes.

A year ago, I began to change.  My heart and mind were not what I believed in.  I had said, I cannot give you what you ask of me in friendship.  I don't know how to do it.  But that was not true.  Cannot is a strange way of lying with words.  To think clearly, I have to change it to will not, because I am alive.  But when I took responsibility for these words, they became this:
I will not give you what you ask of me in friendship.  I will not learn how to do it.

That was not good enough.  So I changed my answer; I erased two nots.
I will give my love in friendship.  I will learn how to do it.

And that was the beginning.  One thing I would not say or believe and so I changed it.  Because we can learn and change, and have wills.  New questions appeared, shouted at me.  What is the difference between the person who believes she can do anything, and the person who does not believe?  What if it is the belief itself?  What if this is the only thing?

I pretended it would work.  It would be true, because I would make it true.  Some days this seems small, and others it is everything.  The days I am new are better: the days I cry on a bus, reading Edna St. Vincent Millay explain that her heart is a daft bird, charging the storm and making her nest in the shadow of the hawk.

And in the dark I have worried every choice thin.  And still, I am new.  Still, I unbutton in the dawn, tumble out of my nest into its quick, chill arms and sing.  Still a sunrise breaks open my chest.  I am unappeasable, daft; I will charge storms.  When I am blind to obstacles, they no longer exist.   I am new because I have said so, and I will not stop.  You are beautiful and I will learn to say how I am stitched up the wrists with the velvet ache of you.

You.  Friend.  Father, mother, uncle, aunt.  Love.  New stranger on the sidewalk.  I am in a daze.  I am alive.  I am thrown to the ground on a pair of eyes, confusing the skin with apricots, my tongue with the feathers tied into your hair.  When the wales open across your legs, my wrists hurt.  It is okay; I will tell you that you are beautiful.

It is true about us.  We are who and what we believe, if we choose to be so.  Or, if you wish:
The empricial change was sufficient to raise the question of its origin, and my doctor was ethically obligated to ask.  I am not offended.  It was the highest compliment, and I did not go looking for it.  You surprised me with this question, Dr. Stolz.

I bluffed, and now it's true!  I like this.  I think I will see where I take myself with it.

Have I repeated and fluttered about?  Words will fall away in time: I will learn how to edit and make neat, organized paragraphs.  Words are not so easy with me yet, and that is alright.  It is okay to go on.  It is okay to dump words of love out windows, keep each other up at night with them, spill a few too many about.  Here, I will try for a middle ground.

One more thing, then.  This:

SandmanMoon.  You are my friend, and you have my love, without qualification.  This has always been the only honest answer.  You said that other people, too, need to know it can be done.  It is possible to grasp everything we love, reach upward, and surface, carrying the whole treasure of our hearts.  Possession can be broken, it is possible to love one another, all of us, and there is no measure: love is not stolen or cheated, one from the other.    You are right.  This is not a message to be tucked away in secret.  It is hard to trust myself, and I must learn to do it.  I am no longer angry that people did not understand.  They were worried.  And they, too, need to know that we succeeded.  That we found the in the same parts of ourselves that got them to worrying about us, answers.  Being alive is dangerous, we tangle up in people.  And this is right for me.  It is more important for me to love, for no good reason, to give myself in every action and word; the moment this choice is made, everything changes.  It is not just true about wedding rings, about husbands, wives and children.  I wrote to you, I said,
I will love.  The open, jeweled heart is scarce. We have kept ours.

And that is no small thing.  We made it up ourselves; neither is that so small or common.

All of that you already know, SandmanMoon.  I have said it, safe near you; or you have said to me.  It is time I put those words where other people can see them, as we had hoped to find them in the mouths of others and did not.  Say what I believe openly, as you have done.  The poetry book cradled in the corner of a bookshelf lining the eaves and fingertips with such discoveries, plucking at the frightened heart, was only abstract until I launched myself into the sky and made it true.  Other people will see, and that, too, is more than it seems.
 
Thank you, SandmanMoon.  Thank you for every word you have placed beside me, for every moment of your life that you have shared with me.  You have helped me become a different person, one that I love.  I do not think there is more that one could ask for, from anyone.