360 panoramic video

Started by arianaa30, June 21, 2016, 04:39:38 AM

Previous topic - Next topic

arianaa30

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 :)

EgonOlsen

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...

arianaa30

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?

EgonOlsen

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?

arianaa30

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.