Open
Description
Hello! I've been using 360 screenshot to generate vids. However the file size and VRAM requirement makes the generation risky, which means that my PC always crashed during the process.
Recently I saw someone shared a modified dll for KK's screencap, which is able to capture 180 screenshots:(https://www.iwara.tv/post/20hnPDq0emf58K)
I tried that in KK and the alising was way better than 360, under the same resolution setting. Because my data are compatible with KKS only, I want to make a kks version plugin. Do you have any idea about how to turn the KKS plugin into a 180 version? I can code and contribute if you don't mind.
Metadata
Metadata
Assignees
Labels
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
ManlyMarco commentedon Jan 19, 2025
If someone makes a PR that adds this feature then by all means I will merge it.
I made an attempt at merging the changes made in that modified dll here https://github.com/IllusionMods/BepisPlugins/tree/3d-180 but got stuck on something, I don't remember what exactly was the issue. At the moment I don't plan on working on this any further.
mellona0821 commentedon Jan 25, 2025
@jasonbarthes
I’m not sure if it’s okay to write this here, but since I received a request, I’ll share it here
I was considering preparing a PR myself, but it seems there’s more to take care of than I expected.
Instead, I’ll just share the parts I modified here.
It’s been quite a while, so I don’t remember everything exactly, but I’ll do my best to write down as much as I can.
First, to change the 360-degree view to 180 degrees and apply tilt, I modified the shader at the following link:
https://github.com/mellona0821/BepisPlugins/blob/master/src/Core_Screencap/shader_source/EquirectangularConverter.shader
To match the modified shader, I also updated the code at the following link accordingly:
https://github.com/mellona0821/BepisPlugins/blob/master/src/Core_Screencap/Renderers/I360Render.cs
Even though it worked fine with just these changes, I analyzed the code to improve performance and found that the part where the two images (for the left and right eye) are combined was quite inefficient.
So, I combined the capturing and image-stitching code into a single method.
I originally modified this for personal use, so the code isn’t exactly high quality.
Also, since I rewrote this based on memory, it might not be entirely accurate.
Still, I hope it can be helpful in some way!
jasonbarthes commentedon Feb 17, 2025
Thank you for the response. But I'm stuck where I try to compile the plugin
jasonbarthes commentedon Feb 17, 2025
I tried these steps but the result was the code wants to access properties that are not accessible for Unity 5.6.x.(eg.RenderTexture.dimension). I could not compile it until I replaced these lines. However, the dll I generated was still giving me 360 results
mellona0821 commentedon Mar 14, 2025
Are you still working on the issue?
If so, could you give this one a try?