{"id":18271894,"url":"https://github.com/simplegeo/SGARViewStyles","last_synced_at":"2025-04-05T02:30:48.964Z","repository":{"id":764488,"uuid":"440005","full_name":"simplegeo/SGARViewStyles","owner":"simplegeo","description":"An example of stylizing and using the AR view included in SimpleGeo's iPhone SDK","archived":false,"fork":false,"pushed_at":"2011-01-14T23:22:51.000Z","size":6186,"stargazers_count":14,"open_issues_count":2,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-05T01:51:12.404Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/simplegeo.png","metadata":{"files":{"readme":"README","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2009-12-17T01:41:25.000Z","updated_at":"2016-11-24T13:02:38.000Z","dependencies_parsed_at":"2022-08-16T10:50:09.855Z","dependency_job_id":null,"html_url":"https://github.com/simplegeo/SGARViewStyles","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simplegeo%2FSGARViewStyles","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simplegeo%2FSGARViewStyles/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simplegeo%2FSGARViewStyles/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simplegeo%2FSGARViewStyles/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simplegeo","download_url":"https://codeload.github.com/simplegeo/SGARViewStyles/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247279298,"owners_count":20912857,"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-11-05T11:39:34.666Z","updated_at":"2025-04-05T02:30:46.689Z","avatar_url":"https://github.com/simplegeo.png","language":"C","readme":"ARViewStyles\n\n================================================================================\nABSTRACT:\n\nThis project demonstrates the different ways to implement and use the augmented\nreality (AR) library in the SGiPhoneSDK. The library is completely independent from the\nSGLocationService.\n\nDifferent Styles:\n\n1. Default - This is just the default style. SGAnnotationView are present as red pins\nwhile the radar mantains its default images. When pins are touched, the default inspect\nbehavior occurs where the view is removed from the AR enviornment and then added as a \nsubview of the ARView.\n\n2. Forest - This style sets the SGAnnotationViews into inspect mode while being\npresent in the AR enviornment. It can be considered to be the reverse of the default style.\nWhen the SGAnnotationView is touched, it is removed from the AREnvironment, placed into,\ntarget mode and then added as a subview of the SGARView.\n\n3. Damsels in Distress - There are two types of SGAnnotationViews used here. One with\na static position and another that changes everytime the SGAnnotationView needs to be\nredrawn. The main note to take away from this style is that SGAnnotationViews can move\naround within the AR enviornment and still be represented properly by the radar.\n\n4. Kettle + Escher - SGAnnotationViews allow subclasses to draw themselves in OpenGLES.\nInstead of setting up the subview layout, we just load in the teapot vertices and normals\nand we are able to draw the teapot model in the proper location.\n\nNote: At the moment this is throw-away code. Plans to make things nice-and-pretty \nwill happen very soon.\n\n================================================================================\nBUILD REQUIREMENTS:\n\niPhone SDK 3.1\n\nFrameworks\n- CoreLocation\n- Foundation\n- MapKit\n- OpenGLES\n- CoreGraphics\n- UIKit\n- AVFoundation\n\n================================================================================\nRUNTIME REQUIREMENTS:\n\niPhone OS 4.0\niPhone 3GS (Nothing particularly exciting happens when running it in the simulator)\n\n================================================================================\nPACKAGING LIST:\n\nSGARViewStylesAppDelegate\nStandard AppDelegate implementation. Once the applicationDidFinishLaunching: is \ncalled, the SGStylesViewController is added to the main window.\n\nSGStylesViewController\nThis is the main view controller for the application; it is in charge of configuring\nstyles and loading the AR enviornment. Each style is setup using there own\nconfiguration method, see #pragma Style config methods. Since there is no reset\nbutton for the AR enviornment, each setting must be addressed in order to produce \nthe proper style.\n\nSGSimpleAnnotation\nA simple class that implements the SGAnnotation protocol. Its used to provide\na title and subtitle for SGAnnotationViews when they are inspected.\n\nSGForestAnnotationView\nInitalizes the SGAnnotationView with a randomly chosen forest critter and then\nuses one of the view properties (distance, coordinate or bearing) to display\nas the title while in inspect mode.\n\nSGDistressedDamselAnnotationView\nSetups up the SGAnnotationView to have the glassy style along with a random\nprincess to be used as the target image.\n\nSGKettleAnnotationView\nThis SGAnnotationView draws itself. By setting enableOpenGL to YES and implementing\ndrawAnnotationView, we are able to render a model at the proper location in the AR\nenviornment. The AR library will ask to SGAnnotationView to draw itself at the origin.\nIt will then apply the proper transformations to place the model inside the enviornment.\n\nSGGargoyleAnnotaitonView\nA random scary SGAnnotationView that increments its position in the AR enviornment.\nIt does something tricky though. It overrides the annotation get property and does\nsome readjustment to the coordinate. Everytime the view needs to be drawn, the annotaiton\nis accessed to obtain the coordinate of the view.\n\n================================================================================\nCHANGES FROM PREVIOUS VERSIONS:\nVersion 0.9.5\n- Merged the iOS 4.0 version of the SGAREnvironment library into the project\n\nVersion 0.9.4\n- Upgraded to use the public release of the AREnvironment\n\nVersion 0.9.3\n- Added license\n\nVersion 0.9.2\n- Updated project structure to use the new static libraries\n\nVersion 0.9.1\n- Updated to v0.3.0 of the SDK\n\nVersion 0.9.0\n- Added icon and iTunesArtwork.\n- Updated the SDK to v0.2.3\n\nVersion 0.8.1\n- Added more comments to the code.\n\nVersion 0.8.0\n- First version.\n\n================================================================================\nCopyright (C) 2009 SimpleGeo Inc. All rights reserved.","funding_links":[],"categories":["etc"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimplegeo%2FSGARViewStyles","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimplegeo%2FSGARViewStyles","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimplegeo%2FSGARViewStyles/lists"}