Screenshot Modding Thread

Threads that no longer serve a purpose. Read-only.
User avatar
Quirinus
Team Member
1510 | 184
Common Posting Badge
Posted over 1.000 messages
Legendary Popularity Badge
Has a thread with over 250.000 views
Great Love Badge
Earned over 100 cookies
Common Supporter Badge
Donated 1 time
Legendary Contribution Badge
Median XL Team Member
I think both of those are probably solvable with a script. I have a few rough ideas, but I'm sure after thinking a bit I'd come up with something solid. anyways, as I said, remind me in about 2 weeks and I'll be happy to help. :)

thanks for explaining!
"but if it's simple it's not that hard" - Quirinus 2017
"small things like this are not a big deal" - Quirinus 2017
User avatar
RollsRoyce
Djinn
523 | 51
Common Love Badge
Earned over 20 cookies
Great Supporter Badge
Donated 5 times
Legendary Patron Badge
Patreon Contributor
Common Contribution Badge
Has collaborated to our forums, realms or mod
i guess you would need to extract some sort of SIFT features and search for the special points in the other images, this way you can calculate a shift between the different frames and maybe center them automatically

https://en.wikipedia.org/wiki/Scale-inv ... _transform

alternatively you could fix offsets for a few (no idea how many youd need) by hand and try to use machine learning and learn the function that shifts those offsets
User avatar
Inertia
Abomination
141 | 72
Common Popularity Badge
Has a thread with over 10.000 views
Common Love Badge
Earned over 20 cookies
Common Supporter Badge
Donated 1 time
Great Contribution Badge
Is an active collaborator / developer
This might help:

1. In photoshop, make a new image with 500x500 dimensions (doesn't have to be that much, just big enough to fit every frame within it).
2. Fill the layer with a color.
3. Open each frame from your animation and place them wherever within the canvas you made manually using the move tool. You can undock the tab with the frame of animation and then drag the image into the new image you made.
4. Select the first layer you made, hold ctrl and then select the first frame of animation and go to Layer > Align > Vertical Centers. Do the same for Horizontal Centers.
5. Repeat step 4 with every frame.

EDIT: forgot that you have to go to Window > Animation and in the window that pops up, select the drop-down arrow and click "Make Frames From Layers" and then click the arrow again and select "Reverse Frames" this will create an animation out of your layers, but you select "Reverse Frames" because photoshop loads each frame in backwards. Also, this animation tool might not work with your PS, I use cs4 and 5 which both work.

This won't work perfectly, but it helps if you want to place things manually.

You can then select and area to crop and then choose "Save for web & Devices" to save as a gif.
User avatar
Quirinus
Team Member
1510 | 184
Common Posting Badge
Posted over 1.000 messages
Legendary Popularity Badge
Has a thread with over 250.000 views
Great Love Badge
Earned over 100 cookies
Common Supporter Badge
Donated 1 time
Legendary Contribution Badge
Median XL Team Member
@rolls & inertia:

yeah I had something similar in mind. here's a few points:
* get bg color
* get the total number of used pixels (without bg) and their locations
* calculate a center of mass
* calculate the offsets from left/right/top/bottom (excluding some few disconnected points if there are any, either by a lame but reliable loop or by filters)
* calculate the compactness of the image (ie. if most of the pixels are together or if some are separate)

this allows for a rough centering with either the center of the mass or offsets (or a combination of both), and cropping with biggest offsets from all frame. or even some kind of a higher centering which takes the distances to be more significant.

then just loop trough all frames and pixels and find a same pattern of pixels, preferably as low as possible (eg. a non-changing leg), and maybe align all frames by the lowest position of that pattern (or some combination with the center of mass/offsets).

I'll probably think of smarter things when I put my mind to it... any suggestions/ideas are welcome though.

machine learning is too complicated imo and kinda not faultless. well, I never did it, so I'm also unfamiliar with it, though I want to learn how to do it one day.
"but if it's simple it's not that hard" - Quirinus 2017
"small things like this are not a big deal" - Quirinus 2017
User avatar
RollsRoyce
Djinn
523 | 51
Common Love Badge
Earned over 20 cookies
Great Supporter Badge
Donated 5 times
Legendary Patron Badge
Patreon Contributor
Common Contribution Badge
Has collaborated to our forums, realms or mod
isnt the center of "mass" changing during the animation (especially when something is turning and you only have access to the 2D projection). However i have to admit that i really like your ideas.
User avatar
Quirinus
Team Member
1510 | 184
Common Posting Badge
Posted over 1.000 messages
Legendary Popularity Badge
Has a thread with over 250.000 views
Great Love Badge
Earned over 100 cookies
Common Supporter Badge
Donated 1 time
Legendary Contribution Badge
Median XL Team Member
yeah it changes, that's why I'm suggesting using it with left/right/top/bot offsets etc. to enhance the precision. it will still not be perfect, but a rough estimate will be a good start, especially if it gets at least some of the offsets correctly in the end. we'll have to see on an example.
"but if it's simple it's not that hard" - Quirinus 2017
"small things like this are not a big deal" - Quirinus 2017
User avatar
suchbalance
Team Member
1756 | 513
Common Posting Badge
Posted over 1.000 messages
Legendary Popularity Badge
Has a thread with over 250.000 views
Legendary Love Badge
Earned over 500 cookies
Common Supporter Badge
Donated 1 time
Common Guide Badge
Created a complete character guide
Common Skill Badge
Experienced Player
Legendary Contribution Badge
Median XL Team Member
Great Mind Badge
A Median XL guru... a true book of knowledge
Since there is no SQT for this section I guess I'll ask here if anyone knows: how much distance does 1 subtile span in terms of in game yards?
User avatar
Marco
Team Member
1952 | 1347
Common Posting Badge
Posted over 1.000 messages
Legendary Popularity Badge
Has a thread with over 250.000 views
Legendary Love Badge
Earned over 500 cookies
Common Supporter Badge
Donated 1 time
Common Multiplayer Badge
Has won a multiplayer contest
Legendary Contribution Badge
Median XL Team Member
Common Auction Badge
Won 50 auctions
User avatar
suchbalance
Team Member
1756 | 513
Common Posting Badge
Posted over 1.000 messages
Legendary Popularity Badge
Has a thread with over 250.000 views
Legendary Love Badge
Earned over 500 cookies
Common Supporter Badge
Donated 1 time
Common Guide Badge
Created a complete character guide
Common Skill Badge
Experienced Player
Legendary Contribution Badge
Median XL Team Member
Great Mind Badge
A Median XL guru... a true book of knowledge
Cheers Marco.
Mophius
Dark Huntress
13 | 1
Common Popularity Badge
Has a thread with over 10.000 views
No one has posted anything