Source Filmmaker

Source Filmmaker

Viewport Resolution Patch
101 Comments
Kiwano  [author] 30 Jun @ 10:23am 
you can't set the width through the old launch parameters, which means you're locked to a 16:9 aspect ratio
plus arbitrary resolutions, since sfm only recognizes -sfm_resolution 1080 and -sfm_resolution 2160 as hardcoded values
WigWoo1 30 Jun @ 9:56am 
Oh.. then what is actually the point of this compared to just using the old -sfm resolution launch command? That also changes the viewport resolution
Kiwano  [author] 30 Jun @ 9:28am 
it's for illustration purposes only, you must restart SFM to set it each time
WigWoo1 30 Jun @ 9:17am 
But how do you change the viewport shape and size in real time like the GIF in this post?
Kiwano  [author] 29 Jun @ 10:05pm 
-sfm_width 3840 -sfm_height 2160
WigWoo1 9 Jun @ 4:11pm 
I patched it and used the command -sfm_3840 and -sfm_2160 but I still only have 720p as my max resolution in the movie render
WigWoo1 9 Jun @ 4:10pm 
So how can I use this to have a super low resolution viewport for better performance, but still have 4K in the render settings?
Fullcaber 28 May @ 2:31pm 
my viewport seems so small now D:
Noreason 14 May @ 3:36pm 
hello, hope you are doing well!

i'm sorry but i am having a little problem, and i wanted to know, is it possible to do the thing that's happening in your viewport resolution patch gif on your workshop file? and if so, how can i do it? i tried everything and could not find the option for it, even my screen went black and i fixed it somehow lol, please help me to find the option to size my camera, and sorry if my english is bad lol
Kiwano  [author] 6 Mar @ 6:47pm 
Use light limit patch and autoinit manager, do not use the patching guide
Harlequin 6 Mar @ 2:35pm 
Hi Kiwi, have you had any time to make a guide for those of us who patched our ifm.dll for the light limit yet?
ThatLemkyGuy 5 Mar @ 1:58pm 
Really wish there was a better way than entering my width and height, oops its wrong, closes sfm, rewrites my width and height, opens sfm, still not the right resolution. :/
dicksalot 7 Jan @ 11:21am 
you made it worse
Evil Joe 5 Jan @ 2:07am 
i got the mod to work but what is your best Resolution suggestion
Marie 7 Dec, 2024 @ 10:49am 
I don t get it how can ı move black bars when ı take the render proporties to 4k black bars get more space :c
gvz_7 30 Nov, 2024 @ 10:32am 
Yes, there are no stripes appearing there, but rather shadows from them, and these shadows are areas of rendering in parts
Kiwano  [author] 30 Nov, 2024 @ 8:33am 
hmm are you using image sequence render?
gvz_7 30 Nov, 2024 @ 6:20am 
When rendering at a high resolution, I get stripes from the borders of parts that are rendered in parts, and to avoid this, I need to render at a low resolution
Evil Joe 30 Nov, 2024 @ 1:22am 
and gives me a error
Evil Joe 30 Nov, 2024 @ 1:21am 
what am i doing wrong?
Evil Joe 30 Nov, 2024 @ 1:21am 
i can't figure out how to use it i did the steps right from the images
Kutekitty43 26 Nov, 2024 @ 8:43am 
currently making a series that is going to be in the format of fake snapchat posts, and this script is great for that because not only can i already render a poster in the exact resolution of a snapchat story (i just figured out how to do that in sfm), now i can also see what the finished image will look like
also as i was writing this i realized you're the person who also made the reference image plugin that i use all the time so i just want to say you're the GOAT :p2cube:
ГРЕШНИК 16 Nov, 2024 @ 5:40am 
I did everything that was said in the instructions. I launched "resolution patch" and received a corresponding notification that everything is OK. I specified the required resolution using the commands "-sfm_width" and "-sfm_height" and despite all this, nothing works for me. :goldengun::9mm::cranium:
Fullcaber 14 Nov, 2024 @ 10:44am 
i get ifm.dll has changed please restore original file before patching
i guess it dosent like the light limit mode? or
Silkworm 12 Nov, 2024 @ 12:23pm 
@Xeno The script backs up the files it modifies when it's run for the first time, so you can just put those back in their place. Check the Notes section above.
Xeno 12 Nov, 2024 @ 12:13pm 
is there a way to remove this patch without reinstalling sfm? like turn it off?
Fullcaber 13 Sep, 2024 @ 11:47am 
honestly would be more awsome if we could just do it in egine xD but alas
mountaindewdz 5 Sep, 2024 @ 6:04pm 
nvm im dumb
mountaindewdz 31 Aug, 2024 @ 6:30pm 
read everything, black screen
Gamer 17 Aug, 2024 @ 3:51am 
Update: I managed to capture a 10K (10240x5760) screenshot, although it takes extremely long to load the map and when I move the camera it feels like it's around ~5 FPS, it's pretty understandable as my PC specs are:

Windows 11
RTX 3050
Intel i5 12400F
16GB RAM
Gamer 16 Aug, 2024 @ 11:35pm 
[3/3]

Also, not sure if this is just me, but I have experienced crashes at the very same point with the "Export Movie" and "Export Image" options even before installing this mod (must be a glitch that was never patched on SFM's end). For example, if I save an image using the "Export Image" option first , then use the "Export Movie" option, selecting the "Export Image" after it will always crash SFM for me, so I have to use the "Export Movie" as soon as I launch SFM then use the "Export Image" option after it (again and like I said, I experienced these crashes at the very same point even before installing this mod). Just click on "Export Movie", specify the custom resolution that you want, click on "cancel" (it still takes effect despite it being called "cancel") and then take the screenshot that you want using the "Export Image" option.

Nonetheless, thank you so much for this mod!
Gamer 16 Aug, 2024 @ 11:35pm 
[2/3]

Just FYI and from my experience at least, I recommend switching your desktop's resolution to the resolution of the screenshot that you want to take in then go back to your original desktop resolution. For example, since I have a native 4K monitor, but can go up to dynamic 8K using Nvidia DSR, for some reason the screenshots were just some weird glitched screenshots when I took them when I wasn't on their resolution (it's pretty understandable though, as even this mod has a warning message when SFM or your desktop's resolutions are bigger/smaller than each other), so I have to temporarily use dynamic 8K, take the screenshot and then switch back to my native 4K resolution.
Gamer 16 Aug, 2024 @ 11:35pm 
[1/3]

@KiwifruitDev Hello! Yes, fortunately, it can let me bypass the 4K resolution cap. As far as I can tell, the -sfm_width (x) and -sfm_height (x) launch options seem to be the maximum cap SFM will allow you to take a screenshot in. For example, -sfm_width 5120 -sfm_height 2880 will make the maximum resolution limit in the "Export Movie" option to be 5120 and 2880 (5K), or setting it to like -sfm_width 7680 -sfm_height 4320 will allow the maximum size to be 8K and so on. FYI, I couldn't take a 16K screenshot as it crashed before the map was even able to load, but that's pretty understandable, no one owns a 16K resolution for now, my PC isn't that powerful either (in fact, it's close to a potato), 8K is the maximum resolution I can go up to dynamically and 8K is more than enough for now.
Kiwano  [author] 16 Aug, 2024 @ 7:43pm 
I believe it should let you, as long as your monitor size supports it. You might want to try VSR (virtual super resolution) and the -w and -h launch options too.
Gamer 13 Aug, 2024 @ 1:08pm 
Can this allow us to bypass SFM's 4K resolution cap and allow us to take like 8K/16K images?
LeonardoFRei 7 Aug, 2024 @ 5:44pm 
I did manage to have it render properly eventually

Ironically only when rendered as a poster
LeonardoFRei 29 Jul, 2024 @ 9:31pm 
Mostly just one to increase shadow quality and one to set the search path for SFM since it's on an external drive

When given the export option is the normal ones so I just went to custom and typed the matching width and height

Obviously I always export as image sequence and not poster due to the quality difference
Kiwano  [author] 29 Jul, 2024 @ 7:38pm 
which launch options are you using? also, how are you exporting? the width and height in the export settings should be the same as your launch options. you might also want to try image sequence export instead of poster export.
LeonardoFRei 29 Jul, 2024 @ 5:14pm 
I might be dumb but I tried a custom ratio but when exported the image is completely distorted

Did I forget to do something or?
Kiwano  [author] 23 Jul, 2024 @ 3:47am 
:(
Pavon 22 Jul, 2024 @ 2:52pm 
Better use blender, and that's it hahaha
Diag 22 Jul, 2024 @ 10:11am 
NO
Jwan 19 Jul, 2024 @ 12:10pm 
Can you make a script that lights up like sunlight? Like the features in Blender
Multiversus ✦ 15 Jul, 2024 @ 5:32pm 
oh i was just using 16:9 ratios, i'll try other cinemascope ratio. 1920 and 804 is pretty good though, thank you
Kiwano  [author] 15 Jul, 2024 @ 5:28pm 
-sfm_width 1920 -sfm_height 1080 doesn't do anything different, it's equivalent to -sfm_resolution 1080
Which other resolutions have you tried? The best use case for this script is to change the aspect ratio, consider using -sfm_width 1920 -sfm_height 804 for cinemascope.
Multiversus ✦ 15 Jul, 2024 @ 5:26pm 
I put -sfm_width 1920 -sfm_height 1080 for viewport, but no matter what resolution I put it doesn't increase. Tried reinstalling the addon again, and the dialog for RPpatch is there. Tryed mutliple resolutions but viewport doesnt fill
Kiwano  [author] 15 Jul, 2024 @ 5:19pm 
I'd need to know more information to help out, please let me know ^^
Multiversus ✦ 15 Jul, 2024 @ 5:18pm 
Doesn't work no matter what I do or put, but good attempt
Silkworm 8 Jul, 2024 @ 4:35pm 
Heya Kiwi.
I don't know if you're still considering suggestions for other scripts, but do you think it's possible to have a rotated Secondary Viewport tab? I'm on an Ultrawide monitor myself and the spare screen space is just perfect for a Portrait image preview. Specifically *just* the second viewport, I know I can use this script to flip orientation for the whole thing.
Currently I'm stuck tilting my head.
Kiwano  [author] 7 Jul, 2024 @ 3:09pm 
I need more information, let me know in a discussion post ^^