LED光立方制作全过程(四十五)
这篇文章终于进入最后两个步骤了,感谢大家长时间的支持呀,特别那些锲而不舍一直追看的筒子们!遗憾的是由于外文网站,很多视频都没办法分享了,大家都懂的就不解释啦。话说到翻译版,最近是没办法更新了,忙着毕业,呵呵~好了,进入本连载的&
发表于 5/15/2011 8:39:52 PM
阅读(5900)
LED光立方制作全过程(四十四)
Step69PCSoftware:Effect4,ConwaysGameofLife3DTheGameofLife,alsoknownsimplyasLife,isacellularautomatondevisedbytheBritishmathematicianJohnHortonConway.YoucanreadmoreaboutthisonWikipedia,ifyouhaventheardaboutitbefore.Bypopulardemand,wehaveimplementedGam
发表于 5/15/2011 2:17:53 PM
阅读(36296)
LED光立方制作全过程(四十三)
Step67PCSoftware:Effect2,sidewavesThisisbasicallytheexactsamefunctionastheripplefunction.Theonlydifferenceisthecoordinatesofthepointusedtocalculatethedistancetoeachx/ycoordinate.Wecallthispointtheorigin,sincethewaveemanatesfromthispoint.T
发表于 5/15/2011 2:11:21 PM
阅读(2181)
LED光立方制作全过程(四十二)
Step65PCSoftware:CubeupdaterthreadIncube.cwehaveafunctioncalledcube_push().Thistakesthe64bytearrayandsendsitdowntheseriallinetotheLEDcube.Italsohandlestheformatting,sendingevery0xffbytetwicebecause0xffisourescapecharacter.0xffand0x00issentfirst
发表于 5/15/2011 12:12:50 AM
阅读(1943)
LED光立方制作全过程(四十一)
Step63Software:RS-232inputTogeneratethemostawesomeeffects,weuseadesktopcomputer.Computerscandofloatingpointcalculationsandstufflikethatmuchquickerthanamicrocontroller.Andyoudonthavetore-programthemicrocontrollerforeveryeffectyoumake,oreverytime
发表于 5/14/2011 2:09:32 PM
阅读(4203)
LED光立方制作全过程(四十)
Step61Software:Effect5,axisupdownrandsuspendThisisoneofourfavoriteeffects.Thevoxelsrandomlysuspendedinthecubegivesanice3ddepth,especiallyifyoumoveyourheadwhileviewingtheeffect.64voxelsstartoutononeofthesidewalls.Thentheyallgetassignedarandommid
发表于 5/14/2011 1:59:51 PM
阅读(10449)
LED光立方制作全过程(三十九)
Step60Software:Effect4,boxshrinkgrowandwoopwoopiInstructJS.load(['instruct','imagespot'],function(){varspotspot1299877=newImageSpot('spot1299877',{loadID:'FRKNTEEGI0TK2RH',editimagedata:'false',imageDataEditorPlace:'',showInfo:true,
发表于 5/14/2011 12:42:20 AM
阅读(3682)
LED光立方制作全过程(三十八)
Step59Software:Effect3,sendvoxelsrandomZThiseffectsendsvoxelsupanddowntheZaxis,astheimplies.voidsendvoxels_rand_z()takesthreearguments.Iterationsisthenumberoftimesavoxelissentupordown.Delayisthespeedofthemovement(higherdelaymeanslowerspeed).Wai
发表于 5/13/2011 6:47:56 PM
阅读(2095)
LED光立方制作全过程(三十七)
Step58Software:Effect2,planeboingiInstructJS.load(['instruct','imagespot'],function(){varspotspot740584=newImageSpot('spot740584',{loadID:'F6L3GT0GI0TMGUD',editimagedata:'false',imageDataEditorPlace:'',showInfo:true,size
发表于 5/13/2011 6:41:53 PM
阅读(2687)
LED光立方制作全过程(三十六)
Step57Software:Effect1,rainiInstructJS.load(['instruct','imagespot'],function(){varspotspot740426=newImageSpot('spot740426',{loadID:'FOY1PD8GICYB274',editimagedata:'false',imageDataEditorPlace:'',showInfo:true,size:'MEDIUM'});newIma
发表于 5/13/2011 6:37:23 PM
阅读(2027)
LED光立方制作全过程(三十五)
Step55Software:CubevirtualspaceNowthatwehaveacubebufferandanicelittlecollectionoflowleveldrawfunctionstopopulateit,weneedtoagreeonwhichwaysiswhat,andwhatisupandwhatisdown;)Fromnowon,thenativepositionoftheLEDcubewillbewiththecablesco
发表于 5/12/2011 11:10:09 PM
阅读(2470)
LED光立方制作全过程(三十四)
Step54Software:LowlevelfunctionsWehavemadeasmalllibraryoflowlevelgraphicfunctions.Therearethreemainreasonsfordoingthis.MemoryfootprintTheeasiestwaytoaddresseachvoxelwouldbethroughathreedimensionalbufferarray.Likethis:unsignedcharcube[x][y][z];(charme
发表于 5/11/2011 4:07:33 PM
阅读(1801)
LED光立方制作全过程(三十三)
Step53Software:InterruptroutineimagenotfoundTheinterruptroutinepullsOutputEnablehighwhilerunningtodisabletheoutputofthelatcharray.chriimagenotfoundLayer0isonchrLayer1isonchrMyoscilloscopedoesnthave8channels,soIcanonlyshowthefi
发表于 5/11/2011 4:01:06 PM
阅读(2125)
LED光立方制作全过程(三十二)
Step52Software:ModeselectionandrandomseedimagenotfoundblinkblinkblinkchriWhenwefirststartedwritingeffectsanddebuggingthem,wenoticedthatthefunctionsusingrandomnumbersdisplayedtheexactsameanimationseverytime.Itwasrandomalright,butthesameran
发表于 5/11/2011 2:28:27 PM
阅读(2006)
LED光立方制作全过程(三十一)
Step51Software:IOinitializationThefirstthingtheATmegadoesafterboot,istocalltheioinit()function.ThisfunctionsetsupIOports,timers,interruptsandserialcommunications.AllIOportsontheATmegaarebi-directional.Theycanbeusedeitherasaninputoranoutput.Weconfigur
发表于 5/11/2011 10:27:55 AM
阅读(1965)
