xmar / 360Transformations

67 stars 16 forks source link

Quaternion to equirectangular projection coordinates #19

Open bayantaani opened 6 years ago

bayantaani commented 6 years ago

Hello, Thank you for the useful codes and dataset. I would like to know if your code handles the conversion between the HMD head position (in Euler or Quaternion format) to its corresponding pixel coordinates on the equirectangular projection. A simple use case for this is streaming based on the FoV: a client that reads the head movement data instead of a real HMD head orientation data, and then stream the FoV from a server using DASH SRD.

Thanks in advance

xmar commented 6 years ago

Hi bayantaani,

I'm not sure to understand your question. Do you want to know if you can replay Head Movement Data in order to generate the viewport video like displayed in the HMD? If this is your question then indeed the current version of the software is able to do that. It matches with the Scenario 8 in the example section. For the moment it only accepts quaternion as input. To change this behaviour you have to update the class DynamicPosition. The extraction of viewport is done with the class LayoutFlatFixed. The current version can only extract monoscopic viewports, but it can be updated to extract stereoscopic viewports.

I hope it answers your question.

bayantaani commented 6 years ago

Hi xmar, Thank you, this does answer my question. I actually saw your reply on another issue saying that LayoutFlatFixed extracts the viewport after I posted this question.

I am currently trying to build the trans command, but I am facing some problems. I will post that in another issue.

Thanks much!

bayantaani commented 6 years ago

I successfully managed to build the trans command. However, there's no Config_8.ini in the repository. Can you please add it?

xmar commented 6 years ago

Ah indeed, thanks for pointing it out. Commit 8d33938 should solve this issue