niftools / nifskope

A git repository for nifskope.
http://www.niftools.org
Other
559 stars 240 forks source link

The screenshot feature seems to always fail, and can crash NifSkope. #119

Open DavidJCobb opened 7 years ago

DavidJCobb commented 7 years ago

Test NIF: Skyrim Classic: meshes\actors\character\facegendata\facegeom\skyrim.esm\0001339e.nif

Clicking the "Screenshot" button in the toolbar and attempting to save a screenshot always fails, with the error message "Could not save [file]". Moreover, any attempt to save 4x and 8x screenshots will cause the renderer to go black, and attempting to save another screenshot afterward will freeze NifSkope.

Strangely, if I select 2x and attempt to save multiple times in a row, the renderer seems to actually zoom in... and doing this enough times also freezes NifSkope. It seems like NifSkope tries to render to its own window (i.e. where we see the model when editing it), and then just... fails to save the result; and then it forgets to undo the zoom factor, such that every attempt at taking a screenshot cumulatively zooms the renderer. That would explain the black 3D pane after a 4x or 8x screenshot, too: the pane is zoomed into an empty corner of the rendered image.

hexabits commented 7 years ago

4x or 8x cannot bring the size of the viewport over what your GPU supports in either dimension. This varies by GPU and so 4x/8x are at your own peril (and dependent upon how large you keep your viewport).

The resizing issue is known. You simply have to resize (or maximize/restore) the window to fix it. Obviously I will fix it so that you do not have to do this.

Your claim that simply opening the dialog and pressing Save always fails cannot be reproduced. The default is to save to the NifSkope directory in a screenshots folder. This screenshots folder needs to exist. This screenshots folder had been included in packages for a while, though it seems that at least a few recent packages have left it out by mistake. If you choose the NIF directory or any custom directory it will work.

DavidJCobb commented 7 years ago

I have a "screenshots" folder, and also get the error when using the NIF folder. On a whim, I tried running NifSkope as admin -- no dice. :\

If you can't reproduce the issue on your end, then it's perfectly reasonable not to address it; but if there's anything I can do to help find a solution, please do let me know.