www.jpct.net

jPCT-AE - a 3d engine for Android => Support => Topic started by: arianaa30 on June 21, 2016, 04:39:38 am

Title: 360 panoramic video
Post by: arianaa30 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 :)
Title: Re: 360 panoramic video
Post by: EgonOlsen 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 (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...
Title: Re: 360 panoramic video
Post by: arianaa30 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?
Title: Re: 360 panoramic video
Post by: EgonOlsen 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?
Title: Re: 360 panoramic video
Post by: arianaa30 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.