{"id":13743631,"url":"https://github.com/tcha-tcho/EZFLAR","last_synced_at":"2025-05-09T01:31:35.810Z","repository":{"id":670363,"uuid":"313673","full_name":"tcha-tcho/EZFLAR","owner":"tcha-tcho","description":"a little wrap to ez the augmented reality works","archived":false,"fork":false,"pushed_at":"2010-07-13T14:33:50.000Z","size":14546,"stargazers_count":41,"open_issues_count":1,"forks_count":18,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-08-03T05:02:26.327Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://www.ezflar.com","language":"ActionScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tcha-tcho.png","metadata":{"files":{"readme":"README.textile","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2009-09-21T21:41:35.000Z","updated_at":"2024-08-03T05:02:26.328Z","dependencies_parsed_at":"2022-08-16T10:40:07.812Z","dependency_job_id":null,"html_url":"https://github.com/tcha-tcho/EZFLAR","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tcha-tcho%2FEZFLAR","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tcha-tcho%2FEZFLAR/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tcha-tcho%2FEZFLAR/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tcha-tcho%2FEZFLAR/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tcha-tcho","download_url":"https://codeload.github.com/tcha-tcho/EZFLAR/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224796533,"owners_count":17371507,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T05:00:54.079Z","updated_at":"2024-11-15T14:31:37.659Z","avatar_url":"https://github.com/tcha-tcho.png","language":"ActionScript","funding_links":[],"categories":["Multimedia"],"sub_categories":["Augmented Reality"],"readme":"h2. The EZest way\n\nOk, download the package of thinks and put this on your frame:\n\u003cpre\u003e\n\timport com.tchatcho.EZflar;//tcha-tcho.com\n\timport com.transmote.flar.FLARMarkerEvent;\t\t\n\tprivate var _ezflar:EZflar;\n\tprivate var _symbols:Array = new Array();\n\t_symbols.push([[\"EZFLAR.pat\", \"cube\"]]);//0\n\t_ezflar = new EZflar( _symbols );\n\t_ezflar.initializer(stage);\n\u003c/pre\u003e\n\n\nh2. A full complex case\n\ninitiate your code\n\u003cpre\u003e\n\timport com.tchatcho.EZflar;\n\timport com.transmote.flar.FLARMarkerEvent;\t\n\tvar _ezflar:EZflar;\n\tvar _symbols:Array = new Array();\n\u003c/pre\u003e\n\n_symbols will take all your markers and models and work with this in couples... ezflar can handle a lot of formats for you, so enjoy  :)   you can also create names for your models to group or to access this models for your names later. Look how to do that in \"myoptionalname\". The markers will be access by your numbers, so remember that: begin with 0\n\u003cpre\u003e\n\t_symbols.push([[\"EZFLAR0.pat\", \"swffilename.swf\"],[\"myoptionalname\"]]);//0\n\t_symbols.push([[\"EZFLAR1.pat\", \"flvfilename.flv\"]]);//1\n\t_symbols.push([[\"EZFLAR2.pat\", \"daefilename.dae\", \"OPTIONALtexture.jpg\"]]);//2\n\t_symbols.push([[\"EZFLAR3.pat\", \"md2filename.md2\", \"OPTIONALtexture.jpg\"]]);//3\n\t_symbols.push([[\"EZFLAR4.pat\", \"picturename.jpg\"]]);//4\n\t_symbols.push([[\"EZFLAR5.pat\", \"picturename.jpeg\"]]);//5\n\t_symbols.push([[\"EZFLAR6.pat\", \"picturename.png\"]]);//6\n\t_symbols.push([[\"EZFLAR7.pat\", \"picturename.gif\"]]);//7\n\t_symbols.push([[\"EZFLAR8.pat\", \"audioname.mp3\"]]);//8\n\t_symbols.push([[\"EZFLAR9.pat\", \"text\", \"here goes my text up to 40 chars\"]]);//9\n\t_symbols.push([[\"EZFLAR10.pat\", \"twitter\", \"nameoflogin\"]]);//10\n\t_symbols.push([[\"EZFLAR11.pat\", \"url\", \"http//www.myexample.com\"]]);//11\n\t_symbols.push([[\"EZFLAR12.pat\", \"cube\", \"OPTIONALtexture.jpg\"]]);//12\n\t_symbols.push([[\"EZFLAR13.pat\", \"wire\"]]);//13\n\t_symbols.push([[\"EZFLAR14.pat\", \"empty\"]]);//14\n\u003c/pre\u003e\n\u003ci\u003eNote about twitter: im a ruby developer, i dont know much about AS3. Connect Twitter from a external server need some adjustments in cross domain think. I made this by usin a rails server... someone can help me with this cross domain issues?\u003c/i\u003e\n\nNow its time to build our AR\noptionally you can give: size, framerate and etc.\n\u003cpre\u003e\n\t_ezflar = new EZflar(_symbols);\n\u003c/pre\u003e\n\nlets begin! you can put your AR in any DisplayObject, like MovieClip or in this case \"stage\"\nif your resources folder is in other place than your swf folder then you can give this\npath in another argument in a string\n\u003cpre\u003e\n\t_ezflar.initializer(stage);\n\u003c/pre\u003e\n\nwhen ezflar dont find a camera he gonna show a message  :)\nyou can customize this message for your language and etc.\nthe second color is the font color, the last is the background\n\u003cpre\u003e\n\t_ezflar.customizeNoCam(\"Precisamos de uma webcam\", 0xFFFFFF, 0xCCCCCC);\n\u003c/pre\u003e\n\ncheckout how your software are responding your changes with a framerate\n\u003cpre\u003e\n\t_ezflar.viewFrameRate();\n\u003c/pre\u003e\n\nis a little annoying to play with AR with the webcam going to the wrong way\nyou can mirror the image, and de-mirror when you want\n\u003cpre\u003e\n\t_ezflar.mirror();\n\u003c/pre\u003e\n\nthis will make somethink when your app start\n\u003cpre\u003e\n\t_ezflar.onStarted(function():void {\n\t\ttrace(\"hey! im alive!\");\n\n\t\t//you can work with more than one model for marker!!\n\t\t//ez like that to add more thinks to some marker\n\t\t_ezflar.addModelTo([1,\"wire\"]);//1 is the number of the _symbols remember?\n\t\t_ezflar.addModelTo([0,\"cube\", \"OPTIONALtexture.jpg\"], [\"thecube\"]);//here you can give names too\n\t});\n\u003c/pre\u003e\n\nand you have methods ready to work when markers are showed to the cam\n\u003cpre\u003e\n\t_ezflar.onAdded(function(marker:FLARMarkerEvent):void {\n\t\t//hey! remember the names you gave?? you can pick models and change it!\n\t\t_ezflar.getObject(0,\"myoptionalname\").rotationX = 90;\n\t\t_ezflar.getObject(0,\"thecube\").rotationZ = 270;\n\t\t_ezflar.getObject(3);//if you dont have a name he gonna take all without a name :P\n\t});\n\u003c/pre\u003e\n\nthis will be used in each frame rendered\n\u003cpre\u003e\n\t_ezflar.onUpdated(function(marker:FLARMarkerEvent):void {\n\t\t//he returns this marker that you can use to look where the markers are and etc.\n\t\ttrace(\"[\"+ marker.marker.patternId+\"]\u003e\u003e\" +\n\t\t\"X:\" + marker.x() + \" || \" +\n\t\t\"Y:\" + marker.y() + \" || \" +\n\t\t\"Z:\" + marker.z() + \" || \" +\n\t\t\"RX:\" + marker.rotationX() + \" || \" +\n\t\t\"RY:\" + marker.rotationY() + \" || \" +\n\t\t\"RZ:\" + marker.rotationZ() + \" || \"\n\t\t);\n\t});\n\u003c/pre\u003e\nplay around with ezflar... we are in beta now and a lot of work to do.. pls help us :)\n\u003cpre\u003e\n\t_ezflar.onRemoved(function(marker:FLARMarkerEvent):void {\n\t});\n\u003c/pre\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftcha-tcho%2FEZFLAR","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftcha-tcho%2FEZFLAR","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftcha-tcho%2FEZFLAR/lists"}