gsabran / DDDKit

360 video player for iOS written in swift - a subset of SceneKit that works

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Zoom?

maxvonhippel opened this issue · comments

Hi,
I'm trying to replicate the projection used by the GoPro Kolor 360 player, which looks much more "zoomed in" than the default view in DDDKit. Both DDDKit and GoPro Kolor use equirectangular projections (at least if I am reading the comments in DDDSphere.swift and the Kolor release notes correctly. I've tried messing with the radius of the sphere but I don't see an obvious difference. Do you have any suggestions? Any help would be much appreciated.
Thanks!
Max

I'm an idiot, Kolor says it uses a rectilinear projection not an equirectangular projection ....
Well, it's a long shot, but if there's an easy way to make DDDKit use a rectilinear projection, I'd love any advice along those lines! Otherwise no worries, and thanks for sharing your code :)

Hi! I'm not sure what you're looking for exactly. Could you share some screenshots of what you're seeing and what you're looking for?

You can increase the z value of the position here:

videoNode.position = Vec3(v: (0, 0, -30))

Also when running the example project and changing code from the library, I think you've to clear the build cache before running again for your changes in the library to be compiled.

Awesome, thank you! That worked perfectly. I set the position to v: (0, 0, -10), did command-option-shift-k to clear the cache, command-b to build, then ran the app, and it was exactly what I wanted it to be. Thank you very much for your help!

Sure thing. Lmk if you've other comment or feedbacks!