Author Topic: 360 panoramic video  (Read 2293 times)

Offline arianaa30

  • byte
  • *
  • Posts: 44
    • View Profile
360 panoramic video
« on: June 21, 2016, 04:39:38 am »
Hi,
I'm trying to play 360 videos on Android. Basically it needs a shader to morph the video frames (in equirectangular format) into a sphere and such. I was wondering if jPCT supports playing 360 videos? I understand it is for 3D graphics and not really for videos. But talking about shader and stuff, I am just giving a shot to my favorite 3D mobile engine :)

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: 360 panoramic video
« Reply #1 on: June 21, 2016, 07:42:23 am »
I guess you could do something with it...at least it won't prevent you from doing so but it doesn't offer direct support for it either. raft once did an app that played back a video into a texture: http://www.jpct.net/forum2/index.php/topic,3794.0.html. That combined with the option in FrameBuffer to set a shader for blitting might do the trick...somehow...

Offline arianaa30

  • byte
  • *
  • Posts: 44
    • View Profile
Re: 360 panoramic video
« Reply #2 on: June 21, 2016, 05:53:33 pm »
I see. I have a weird question: Currently we are able to map a single media player playing a 360 video into a sphere. How hard is it to map multiple mediaplayers which are glued together (and playing tiles of the original video) to a sphere (a viewer doesn't feel any difference on 2D)? Is it hard to create a shader for that so to map multiple objects into a sphere?

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: 360 panoramic video
« Reply #3 on: June 22, 2016, 08:16:37 am »
Sounds weird. I guess you could do something like this by projecting the textures onto the polygons similar to shadow mapping or projective texturing. But I'm not convinced that it will look seemless. The other question is: Why would you want to? What's the purpose of it?

Offline arianaa30

  • byte
  • *
  • Posts: 44
    • View Profile
Re: 360 panoramic video
« Reply #4 on: June 22, 2016, 05:40:45 pm »
I see. My purpose is somehow only show whatever is visible to the viewer. I want to run some tests about the overhead and how it looks like.