SyntaxHighlighter

Wednesday 21 August 2013

Day 48: New environments

Relocation

Shifted Donald over to my original office next to Toby's because I frankly half killed myself the other day by working in the AIG lab where the temperature must have been around 18 degrees. The fact that the lab is cooler than other places in the building is great when it's a hot summer's day, but with the temperature dropping off a bit lately it was too much to handle.

Walter's tower is still in the lab, his screen is with Georgiana to connect to the master Pi so she can run the Pi labelling (which is going very well indeed, almost finished I believe! All 250 Pi's) and so is the ethernet cable. Which means I am back down to a single PC, a humbling prospect but nevertheless when times are harsh we must make do with what we have.

The card readers ran out so the Pi labelling was being inconveniently held up, have asked Steve to investigate.

AR

Made a little list of the models assigned to each MarkerNode. The first model refers to the model shown in ModelSet1, the second one refers to ModelSet2 (i.e. when 1 or 2 is pressed on the keyboard):
             * 0 Sofa, Ant
             * 1 Marvin, Police
             * 2 Gingerbread, Diskette
             * 3 Dude, Bird
             * 4 Mosi, Turbosonic
             * 5 Dragon, Creeper
             * 6 Osaka, Buggy
             * 7 Fire, Golf
             * 8 Guitar, Basketball
             * 9 Clock, Globe

Using this information, and setting a good value for MaxDropouts, I can determine exactly when each model is showing using the isFound method and checking the active Model Set. Then it's simply a matter of playing the right sound at the right time.

I plan to use a for loop to determine whether models with sound are up or not. Then pass them to a method which uses case statements to do the rest:

Loop through all models, if its found then call method processFoundModelAudio:

method processFoundModelAudio takes integer ModelFoundID
if modelset 1 active, perform case statement 1 else perform case statement 2 else heads are visible so process them.
Case statement 1 and 2 switch on ModelFoundID, has cases 0 - 9 for each model with processing info for each.

To play sound cues in xact project use: http://rbwhitaker.wikidot.com/3d-audio-effects-location
To play background music: http://rbwhitaker.wikidot.com/playing-background-music
Attenuation effects: http://rbwhitaker.wikidot.com/3d-audio-effects-attenuation

Sounds great!

No comments:

Post a Comment

Note: only a member of this blog may post a comment.