Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Youtube360 and complete all directions field of view

Author
Message
Mage
Valued Member
18
Years of Service
User Offline
Joined: 3rd Feb 2007
Location:
Posted: 15th Jul 2015 06:32
https://www.youtube.com/watch?v=j81DDY4nvos

Take a look at this video.

I am wondering if there is any way to get game footage that I can capture with recording software where the game renders to screen like this.

The full 90 degrees up and down, 180 degrees left, 180 degrees right.

Essentially every angle on screen like in the video.

Would be cool to make a walk through video like this.

-Thanks

Van B
Moderator
22
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 15th Jul 2015 11:53 Edited at: 15th Jul 2015 11:55
I did something like this in DBPro, but it involved sampling every pixel with a camera render, so real slow to capture.

It's not practical to capture gameplay footage with the method I used, but it does work for say, capturing a screenshot that you can view from any angle, like a bubble snapshot of what is happening in 1 frame.

It's slow, but fairly easy - just rotate the camera by X then pitch it up by Y. If your render image is 1024x512 for example, you'd divide 360 by 1024 then multiply it by the X pixel position to calculate the camera Y angle. The X angle of the camera only needs to extend 180 degrees, so 180/512 * Y to get the camera Y angle. Sync the camera, store the mid-screen pixel colour and draw it onto your render image. In DBPro you can fudge around with the camera FOV and render area to improve performance, but I'm not sure that's something AppGameKit can do yet.
If you did this, then you could easily make an app to preview these spheremaps, might be kinda cool to make a tablet version so you can rotate the tablet to look around.

So it's certainly possible to capture a spheremap bubble screenshot, and can effectively capture several to make a video, but it would take so long that it's impractical. In DBPro it might be possible to render separate cameras and consolidate them into a cube map, but that's not really an option for AppGameKit right now.

Mage
Valued Member
18
Years of Service
User Offline
Joined: 3rd Feb 2007
Location:
Posted: 17th Jul 2015 06:19 Edited at: 17th Jul 2015 06:21
No Its easy to capture camera footage by simply using OBS. Or FRAPS.

What I'm talking about is expanding the FOV horizontally to 360 degrees, and 180 degrees vertically.

To merely render the game that way, and use FRAPS to just record it.

Also the projection would need to be Fisheye instead of Rectilinear. That way the objects in front of you wouldn't be extremely small due to the wide FOV.

Van B
Moderator
22
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 17th Jul 2015 12:40
I don't think it would be possible, the projection just won't ever support that. It's a shame, because it would be great for capturing sphere maps as well, like snapshot then use that as a sphere map to give a metallic object reflection, just using 1 render pass.

Mage
Valued Member
18
Years of Service
User Offline
Joined: 3rd Feb 2007
Location:
Posted: 18th Jul 2015 03:22
I was hoping some interesting use of FOV and display commands could be used.

A straight up shader based conversion of Rectilinear projection to Fisheye, how ever wild the calculations would look, would likely be extremely degraded in quality since the stuff dead ahead in the camera would be supremely overscaled in the conversion, to correct for the supreme shrinkage.

Mage
Valued Member
18
Years of Service
User Offline
Joined: 3rd Feb 2007
Location:
Posted: 18th Jul 2015 03:23
I bet having lower level access to Direct X would allow this sort of thing.

Green Gandalf
VIP Member
20
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 18th Jul 2015 16:54
Would it be possible to use a dynamic cube map for this?



Powered by Free Banners

Login to post a reply

Server time is: 2025-05-13 06:37:09
Your offset time is: 2025-05-13 06:37:09