rsanchezsaez / CardboardSDK-iOS

iOS port of Google's CardboardSDK (mobile VR toolkit)
Other
334 stars 104 forks source link

How could I add a sphere inside the virtual world? #25

Closed tomtomtong closed 8 years ago

tomtomtong commented 8 years ago

I would like to add a photosphere image and map it to a sphere. Are there any example codes for this? Thx.

rsanchezsaez commented 8 years ago

Hey @tomtomtong

I'm afraid I don't have specific example code on how to map a photosphere photo onto a sphere.

In case it helps, we have recently merged a SceneKit+SpriteKit example onto the main repository, look for the CBDSceneKit example project. Maybe you can use SceneKit and SpriteKit to map textures into spheres with relative ease. Look for example into this SO question, which is not exactly what you're looking for, but may point you in the right direction.