René's URL Explorer Experiment


Title: Enhancement - SceneKitExtension / map a lat / lng coordinate to scenekit earth planet of where user is · Issue #47 · ThumbWorks/AugmentedSolarSystem · GitHub

Open Graph Title: Enhancement - SceneKitExtension / map a lat / lng coordinate to scenekit earth planet of where user is · Issue #47 · ThumbWorks/AugmentedSolarSystem

X Title: Enhancement - SceneKitExtension / map a lat / lng coordinate to scenekit earth planet of where user is · Issue #47 · ThumbWorks/AugmentedSolarSystem

Description: let earthNode = PlanetoidGroupNode(planet: Planet.earth) earthNode.updatePlanetLocation(earthAA.position()) currently these lines map SwiftAA into the scenekit. however, I don't believe there's any way to get scenekit camera to specific ...

Open Graph Description: let earthNode = PlanetoidGroupNode(planet: Planet.earth) earthNode.updatePlanetLocation(earthAA.position()) currently these lines map SwiftAA into the scenekit. however, I don't believe there's any...

X Description: let earthNode = PlanetoidGroupNode(planet: Planet.earth) earthNode.updatePlanetLocation(earthAA.position()) currently these lines map SwiftAA into the scenekit. however, I don't believe there&#...

Opengraph URL: https://github.com/ThumbWorks/AugmentedSolarSystem/issues/47

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Enhancement - SceneKitExtension / map a lat / lng coordinate to scenekit earth planet of where user is","articleBody":"```swift\r\n        let earthNode = PlanetoidGroupNode(planet: Planet.earth)\r\n        earthNode.updatePlanetLocation(earthAA.position())\r\n```\r\n\r\ncurrently these lines map SwiftAA into the scenekit.\r\nhowever, I don't believe there's any way to get scenekit camera to specific point  of latitude / longitude.\r\n\r\nthis plist contains a bunch of cities with lat / lngs\r\nhttps://github.com/op1000/EarthTravel/blob/master/EarthTravel/Resources/AllCititesToTravel_258.plist\r\n\r\n\r\n```objective-c\r\n\r\n        NSString* filePath = [[NSBundle mainBundle] pathForResource:@\"AllCititesToTravel_258\" ofType:@\"plist\"];\r\n        NSDictionary* objectData = [NSDictionary dictionaryWithContentsOfFile:filePath];\r\n        \r\n        NSArray* arrayList = [objectData valueForKeyPath:@\"list\"];\r\n        NSMutableArray* arrayCordinate = [[NSMutableArray alloc] init];\r\n        for (NSDictionary* dicInfo in arrayList) {\r\n            \r\n            NSString* cityName = dicInfo[@\"dest_name\"];\r\n            float lat = [dicInfo[@\"lat\"] floatValue];\r\n            float lng = [dicInfo[@\"lng\"] floatValue];\r\n            NSString* countryCode = [dicInfo objectForKey:@\"country_code\"];\r\n            \r\n            // drop some pins\r\n            KGLEarthCoordinate *pin = [KGLEarthCoordinate coordinateWithLatitude:lat\r\n                                                                    andLongitude:lng\r\n                                                                andPinIdentifier:cityName\r\n                                                                  andConturyCode:countryCode];\r\n            [arrayCordinate addObject:pin];\r\n        }\r\n        [self dropPinsAtLocations:arrayCordinate];\r\n\r\n\r\n-(void)dropPinsAtLocations:(NSArray *)pinArray\r\n{\r\n    // remove any existing pins\r\n    for (SCNNode *node in _currentPins) {\r\n        [node removeFromParentNode];\r\n    }\r\n    _currentPins = [NSMutableArray array];\r\n    \r\n    // create new pins\r\n    for (KGLEarthCoordinate *coord in pinArray) {\r\n        KGLPinNode *newPin = [KGLPinNode pinAtLatitude:coord.latitude\r\n                                          andLongitude:coord.longitude\r\n                                                 title:coord.pinIdentifier\r\n                                           countryCode:coord.contryCode];\r\n        if (coord.pinIdentifier) {\r\n            newPin.identifier = coord.pinIdentifier;\r\n        }\r\n        [_shadedNode addChildNode:newPin];\r\n        [_currentPins addObject:newPin];\r\n    }\r\n/*!\r\n * @discussion Convenience method for creating a pin, with internal nodes set up, at a specified location, assuming an Earth at the center of the scene with a radius of 50 units.\r\n * @param latitude The pin's latitude, in degrees.\r\n * @param longitude The pin's longitude, in degrees.\r\n * @return An instance of the KGLPinNode class.\r\n */\r\n\r\n+ (KGLPinNode *)pinAtLatitude:(float)latitude\r\n                 andLongitude:(float)longitude\r\n                        title:(NSString*)title\r\n                  countryCode:(NSString*)countryCode\r\n{\r\n    KGLPinNode *pin = [super node];\r\n\r\n    if (pin) {\r\n        pin.latitude = latitude;\r\n        pin.longitude = longitude;\r\n        pin.countryCode = countryCode;\r\n    }\r\n    \r\n    pin.name = @\"pinWrapper\";\r\n\r\n    SCNBox* pinScene = [SCNBox boxWithWidth:1.0 height:1.0 length:1.0*108.0/159.0 chamferRadius:0];\r\n\r\n    //SCNPyramid* pinScene = [SCNPyramid pyramidWithWidth:1.0 height:1.0 length:1.0];\r\n    SCNNode *pinNode = [SCNNode nodeWithGeometry:pinScene];\r\n    NSString* strCountryImagePath = [NSString stringWithFormat: @\"icon_%@\", countryCode];\r\n    {\r\n        // ambient light\r\n        SCNMaterial *greenMaterial              = [SCNMaterial material];\r\n        greenMaterial.diffuse.contents          = [UIColor clearColor];\r\n        greenMaterial.locksAmbientWithDiffuse   = YES;\r\n        \r\n        SCNMaterial *redMaterial                = [SCNMaterial material];\r\n        redMaterial.diffuse.contents            = [UIColor clearColor];\r\n        redMaterial.locksAmbientWithDiffuse     = YES;\r\n        \r\n        SCNMaterial *blueMaterial               = [SCNMaterial material];\r\n        blueMaterial.diffuse.contents           = [UIColor clearColor];\r\n        blueMaterial.locksAmbientWithDiffuse    = YES;\r\n        \r\n        SCNMaterial *yellowMaterial             = [SCNMaterial material];\r\n        yellowMaterial.diffuse.contents         = [UIColor clearColor];\r\n        yellowMaterial.locksAmbientWithDiffuse  = YES;\r\n        \r\n        SCNMaterial *purpleMaterial             = [SCNMaterial material];\r\n        purpleMaterial.diffuse.contents         = strCountryImagePath; // 위를 쳐다보는 면\r\n        purpleMaterial.locksAmbientWithDiffuse  = YES;\r\n        \r\n        SCNMaterial *magentaMaterial            = [SCNMaterial material];\r\n        magentaMaterial.diffuse.contents        = [UIColor clearColor];\r\n        magentaMaterial.locksAmbientWithDiffuse = YES;\r\n        \r\n        \r\n        pinScene.materials =  @[greenMaterial,  redMaterial,    blueMaterial,\r\n                           yellowMaterial, purpleMaterial, magentaMaterial];\r\n    }\r\n    \r\n    // add the pin geometry to the pin node\r\n    [pin addChildNode:pinNode];\r\n    \r\n    // pins are small, especially from directly above or zoomed out, so wrap a larger rectangular node around the pin\r\n    // this will create a greater touch area\r\n    SCNBox *touchBrick = [SCNBox boxWithWidth:5.0f height:7.5f length:5.0f chamferRadius:0];\r\n    SCNNode *touchNode = [SCNNode nodeWithGeometry:touchBrick];\r\n    touchNode.hidden = YES;\r\n    touchNode.name = @\"TouchPin\";\r\n    [pin addChildNode:touchNode];\r\n    \r\n    // position the pin\r\n    // calculate the pin's position along the Y axis of the Earth, based on the given latitude\r\n    float yPos = sinf(DEGREES_TO_RADIANS(latitude)) * 27.8f*ZOOME_RATIO;\r\n    // calculate what the radius of the horizontal circle that cuts through the Earth is at the given Y position\r\n    float localRadius = [KGLEarthCommonMath radiusOfCircleBisectingSphereOfRadius:27.8f*ZOOME_RATIO atHeight:yPos];\r\n    // using the local radius, calculate the X and Z positions of the pin, based on the given longitude\r\n    HorizontalCoords coords = [KGLEarthCommonMath horizontalCoordinatesAtDegrees:longitude ofSphereRadius:localRadius];\r\n    pin.position = SCNVector3Make(-1 * coords.x, yPos, coords.z);\r\n    \r\n    // rotate the pin so it stands vertically at 90 degrees from the surface of the Earth\r\n    // first, set the pin's euler angles such that it lies flat against the surface of the Earth, given the pin's location\r\n    // the yaw angle positions the pin so it faces out from the surface of the Earth at its location\r\n    float yawAngle = atan2f(-1 * coords.x, coords.z);\r\n    // the pitch angle tilts the pin so it lies on the ground\r\n    float pitchAngle = -1 * DEGREES_TO_RADIANS(latitude) - M_PI_2;\r\n    pin.eulerAngles = SCNVector3Make(pitchAngle, yawAngle, 0);\r\n    \r\n    // now rotate the pin by 180 degrees vertically, so it stands up\r\n    SCNMatrix4 latRotation = SCNMatrix4MakeRotation(DEGREES_TO_RADIANS(180),1, 0, 0);\r\n    pin.transform = SCNMatrix4Mult(latRotation, pin.transform);\r\n    \r\n    //==============================\r\n    // label\r\n    //==============================\r\n    SCNText *text = [SCNText textWithString:title extrusionDepth:0.1];\r\n    \r\n    SCNMaterial *magentaMaterial = [SCNMaterial material];\r\n    magentaMaterial.diffuse.contents = [UtilManager colorWithHexString:@\"ec4f30\"];\r\n    magentaMaterial.locksAmbientWithDiffuse = YES;\r\n    text.materials = @[magentaMaterial];\r\n    \r\n    SCNNode *textNode = [SCNNode nodeWithGeometry:text];\r\n    textNode.position = SCNVector3Make(-1+M_PI_2, 0, 0);\r\n    textNode.transform = SCNMatrix4Mult(SCNMatrix4MakeScale(0.05, 0.05, 0.05), textNode.transform);\r\n    [pin addChildNode:textNode];\r\n        \r\n    return pin;\r\n}\r\n}\r\n```\r\n\r\n\r\n","author":{"url":"https://github.com/johndpope","@type":"Person","name":"johndpope"},"datePublished":"2017-11-17T20:47:31.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/47/AugmentedSolarSystem/issues/47"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:0beba9f2-70d5-f750-c922-6f3107c2b3c5
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8048:2B96DA:20276EA:2CBFA5F:6A5F4005
html-safe-nonce0ac136d6d9345fad05a16ebd0cc01411f65b3852685fb2a35bcfd96f33c1a11a
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MDQ4OjJCOTZEQToyMDI3NkVBOjJDQkZBNUY6NkE1RjQwMDUiLCJ2aXNpdG9yX2lkIjoiNDYwNTM1MzYxNDkyMDA3MzIyMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacbbb8fefc2db0739f71bbface723bddbb0f8cd046f553d00bc459e074c09d3680
hovercard-subject-tagissue:274991989
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/ThumbWorks/AugmentedSolarSystem/47/issue_layout
twitter:imagehttps://opengraph.githubassets.com/f168c52f1412e183cd5b87ed7e1f59edf9070005ba2d7e36af25a11c9223dab2/ThumbWorks/AugmentedSolarSystem/issues/47
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/f168c52f1412e183cd5b87ed7e1f59edf9070005ba2d7e36af25a11c9223dab2/ThumbWorks/AugmentedSolarSystem/issues/47
og:image:altlet earthNode = PlanetoidGroupNode(planet: Planet.earth) earthNode.updatePlanetLocation(earthAA.position()) currently these lines map SwiftAA into the scenekit. however, I don't believe there's any...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamejohndpope
hostnamegithub.com
expected-hostnamegithub.com
Noneab2497d9345a59709926b385d88458fa5932c82ec066288448eb68b34cbcbbda
turbo-cache-controlno-preview
go-importgithub.com/ThumbWorks/AugmentedSolarSystem git https://github.com/ThumbWorks/AugmentedSolarSystem.git
octolytics-dimension-user_id10676374
octolytics-dimension-user_loginThumbWorks
octolytics-dimension-repository_id93695109
octolytics-dimension-repository_nwoThumbWorks/AugmentedSolarSystem
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id93695109
octolytics-dimension-repository_network_root_nwoThumbWorks/AugmentedSolarSystem
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releaseba0ac57287507693938b0a2de45402a22cda0785
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/ThumbWorks/AugmentedSolarSystem/issues/47#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FThumbWorks%2FAugmentedSolarSystem%2Fissues%2F47
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
Code QualityEnforce quality at mergehttps://github.com/features/code-quality
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FThumbWorks%2FAugmentedSolarSystem%2Fissues%2F47
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=ThumbWorks%2FAugmentedSolarSystem
Reloadhttps://github.com/ThumbWorks/AugmentedSolarSystem/issues/47
Reloadhttps://github.com/ThumbWorks/AugmentedSolarSystem/issues/47
Reloadhttps://github.com/ThumbWorks/AugmentedSolarSystem/issues/47
Please reload this pagehttps://github.com/ThumbWorks/AugmentedSolarSystem/issues/47
ThumbWorks https://github.com/ThumbWorks
AugmentedSolarSystemhttps://github.com/ThumbWorks/AugmentedSolarSystem
Notifications https://github.com/login?return_to=%2FThumbWorks%2FAugmentedSolarSystem
Fork 25 https://github.com/login?return_to=%2FThumbWorks%2FAugmentedSolarSystem
Star 74 https://github.com/login?return_to=%2FThumbWorks%2FAugmentedSolarSystem
Code https://github.com/ThumbWorks/AugmentedSolarSystem
Issues 20 https://github.com/ThumbWorks/AugmentedSolarSystem/issues
Pull requests 1 https://github.com/ThumbWorks/AugmentedSolarSystem/pulls
Actions https://github.com/ThumbWorks/AugmentedSolarSystem/actions
Projects https://github.com/ThumbWorks/AugmentedSolarSystem/projects
Security and quality 0 https://github.com/ThumbWorks/AugmentedSolarSystem/security
Insights https://github.com/ThumbWorks/AugmentedSolarSystem/pulse
Code https://github.com/ThumbWorks/AugmentedSolarSystem
Issues https://github.com/ThumbWorks/AugmentedSolarSystem/issues
Pull requests https://github.com/ThumbWorks/AugmentedSolarSystem/pulls
Actions https://github.com/ThumbWorks/AugmentedSolarSystem/actions
Projects https://github.com/ThumbWorks/AugmentedSolarSystem/projects
Security and quality https://github.com/ThumbWorks/AugmentedSolarSystem/security
Insights https://github.com/ThumbWorks/AugmentedSolarSystem/pulse
Enhancement - SceneKitExtension / map a lat / lng coordinate to scenekit earth planet of where user ishttps://github.com/ThumbWorks/AugmentedSolarSystem/issues/47#top
https://github.com/johndpope
johndpopehttps://github.com/johndpope
on Nov 17, 2017https://github.com/ThumbWorks/AugmentedSolarSystem/issues/47#issue-274991989
https://github.com/op1000/EarthTravel/blob/master/EarthTravel/Resources/AllCititesToTravel_258.plisthttps://github.com/op1000/EarthTravel/blob/master/EarthTravel/Resources/AllCititesToTravel_258.plist
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.