Version 0.1: trying to fix the VCam
I… almost did a thing.
when reading this post about the vcam not working, i thought, “you know what let’s see why this doesn’t work”, so i looked through the vcam code, made my own (based on the original), and tried to see what’s up.
i think i know why the vcam, in html, does not resize correctly.
- without the vcam, an html export knows how to resize the project on its own
- with the vcam, the html and the vcam are resizing at the same time, causing incorrect resizing
so what i did is that i made the vcam undo the html’s resizing before doing its own resizing. and it works well until the ratio of the width or height of the window to the project’s width/height gets too small.
i also didn’t exactly copy the vcam code (i don’t know why), so there could be bugs.
there’s a side-effect of fixing the html, which is that now in the editor or any other iframe, the resizing is incorrect (in an iframe, the html seems to know how to resize correctly for some reason). i tried to have the code determine whether it’s in an iframe or not, but it doesn’t work, so it’s commented out.
open the html file to see what my changes do. open the wick file to see my code and what happens if it’s used in the editor. any help is appreciated.
original files
Baron’s VCam 0.111-26-2021_14-29-40.wick (7.8 KB)
Baron’s VCam 0.111-26-2021_14-29-45.html (2.1 MB)
edit: turns out, works exactly the same if you just add the canceling-out in the original vcam… don’t need to bother reinventing the vcam with the risk of bugs. download the wick file and export it as html.
Baron’s VCam 0.111-26-2021_14-48-04.wick (9.2 KB)