[WIP][AssetStore] Screenshot Evaluator - Score System for in Game Photography

Hello,

I am a relatively new developer on the scene. When I first started using Unity a few years ago, I knew that I wanted to create something different. With Unity already having a solid FPS controller, however, that felt like the easiest place to start. I brainstormed ideas on how to modify the shooting genre, and eventually settled on creating a photography based game as a fun and reasonably unique twist. After significant research into the genre, I was rather surprised at how few resources were available for creating such a game. I hope to offer just that - a resource for getting started with in-game photography.
3556904--286375--logo-1.png

Snapshot Evaluator is a tool designed to help indie developers easily implement a system of screenshot scoring, similar to those of Afrika, Sea Life Safari, or Pokemon Snap. At its core, the asset will be able to analyze a screenshot taken by a player and output characteristics such as which objects are present, which objects are centered, the proportion taken up by each object, and more. Snapshot Evaluator allows you to easily customize settings for scoring screenshots using custom editors and fully open source code.

Currently, Snapshot Evaluator exists as a secondary camera and a few scripts that can be easily added to any project. I’ve tried to make it minimally obtrusive, so it currently uses the main player camera to actually take the screenshots. Depending on feedback, I may develop a more complete photography game with realistic camera settings readily available.

This asset is still in development, and I would love your feedback and suggestions as I move forward.

Here are a few of the current features:

-Easy to use custom editor
-Easily customizable tolerances on parameters
-Fully commented and open source scripts
-Identifies and categorizes photographed objects
-Logs which objects are centered
-Calculates proportion of snapshot that each object occupies
-Logs which objects are facing the camera
-Information about each screenshot is stored until reset by script (even between scenes)
-(Optionally) Writes screenshots to JPG or PNG format for permanent storage
-Allows screenshots to be taken at super-sized resolutions (integer multipliers)

And here are a few in-progress features:

-Log object actions at time of photograph DONE
-Full demo scene with accompanying tutorial
-Primary camera with realistic settings and effects (depending on interest)
-Distinguish which specific parts of an object are visible (head, claws, tail, etc.) DONE
-Demo and guide videos

Below are a few screenshots showing basic functionality with console output, and I’ll hopefully have a video coming soon to show a full preview. The console log displays an example of what can be calculated when a player takes a picture.

Cappy is the red capsule, Spherey is the pink sphere, and Cubey is the blue cube. The total percentage each prefab occupies in the screenshot is calculated by summing the proportion of each prefab instance.



Photography games have been largely left in the dust, and I hope to help reignite interest in the genre. Modern graphics significantly raise the potential of such games, and with your feedback, hopefully, we can put together a solid asset. This is currently my third iteration of such a system, and I can’t wait to hear what you think.

3 Likes

Just a quick update after a weekend of work! I’ve implemented the ability to distinguish which specific parts of a gameobject are visible in a screenshot. This feature can easily be switched on and off, and opens up the possibility for potential missions that require a user to take pictures of something specific (e.g. the weapon used by a boss). I’ve included a couple of screenshots below that show off the functionality in the console.

I’ve also begun testing with a more complex rig from Mixamo to make sure it works for more than just my primitive shapes. Next on the list is to log if the screenshotted gameobject is performing an action. Assuming that goes well, I should have some videos up relatively soon!

As always, I would love to hear your feedback and requests. Thanks for reading!




Just another quick update before the weekend! The asset now detects what GameObjects are doing when they are photographed, and I’ve made some UI improvements so you don’t have to read the console to see information about a screenshot. Below is an example of the new UI for viewing screenshots.


In summary, when you take a picture, you can now track:
-Which objects are pictured
-How much of the screen each object occupies
-Which objects are facing the camera
-Which objects are centered
-Key points on an object
-Animation performed by an object

Everything is assigned a score and summed to generate an overall score for a picture. You can easily tune parameters as you please to tweak how the scoring behavior works. Below are some of the parameters that you can currently modify on the scoring camera.
2938154--217379--ss2.png

And here is an example of key point and animation testing parameters on an object:
2938154--217382--ss4.png

These editors are very much a work-in-progress, and next on my to-do list is to combine them into an easier to use window. I would be happy to answer any questions that you may have, and I welcome any suggestions for additional information to track upon taking a picture. Thank you for reading!

Wow, I’ve been looking for an asset like this for a while, but surprisingly no one has tried to do it until now. Can’t wait to see it released!

Looks like you’ve hit on most of what a person would need to create a Pokemon Snap style game. My only suggestion right now would be marketing-related. When you release, perhaps also sell it as an in-game screenshot creation tool as well, and have a setup that just takes shots and saves them as JPG or PNG. Add the line “Screenshot Evaluator works like a regular screenshot capture tool as well, so you don’t have to buy other assets for that!” to your asset description, just to give it a bit broader appeal, you know?

Thank you so much for the advice - I think that’s a wonderful idea! :slight_smile:

I’ve been extremely bogged down with work lately, but I did make a major revision to the interface of the asset. Previously, all information was contained in the Inspector, and having a ton of photographable GameObjects made it very cumbersome if you wanted to make changes. Now, everything has been moved to an easy-to-use custom window!
2960259--219730--Window1.png

The window consists of two tabs, one for general settings (above), and one for objects:
2960259--219731--Window2.png

I’ve tried to make everything super easy to use and adjust to your needs. For example, you can visually decide what should qualify an object as “facing” the camera using a slider to set the angle.
2960259--219732--facingCamera.gif

Or, you could play with settings for determining whether or not an object is centered.
2960259--219733--centering.gif

Hopefully, the GIFs give some idea of how tweaking the asset will work - I hope to have much more complete videos up as soon as I can get a break from work.

Just wanted to give a quick update that I am still actively working on this project! All of the main features of the asset are complete, and I’m in the (grueling) process of optimizing code and writing documentation. I would love to answer any questions that you may have about asset functionality.

If you would be interested in helping me beta test Snapshot Evaluator, please send me a PM! I’m aiming for a release sometime this summer.

Thank you for your interest!

Good luck with the release! I have one question, not really related to your asset, but still :wink:

How did you make this awesome looking divider thingy in the inspector?

Thank you!

The divider is a little bit of a cheat, but it gets the job done ;). In my custom editor script for that class, the divider is made by simply giving an empty TextArea the default horizontal slider skin.

EditorGUILayout.TextArea("", GUI.skin.horizontalSlider);

This is great news. Best of luck to you! I’m willing to help with beta testing, though I’m a Unity hobbyist, so if you’d like feedback from someone who isn’t expert with game development, add me to your list!

aah sneaky! I’m gonna use it maybe to give my inspector a more organized look. thanks!

Thank you! You’re exactly the type of person that I’m looking for :). I’ll be in touch with you as I get closer to release!

Hey Jayto, hope you’re well and development on Snapshot Evaluator is coming along smoothly :slight_smile: I have a feature suggestion that occurred to me this week: the ability to tell if an object is obscured behind something else. So, for example, if the target is behind a tree we can deduct points from the photo depending on how much of the character is obscured.

Hey Ayk,

Thank you for your suggestion! The way that I currently have the asset setup actually does something to this effect.

Under the hood, the asset works by assigning a “Color ID” to each photographable GameObject in the scene. The score camera then views the scene through a shader that only sees these colors for calculation.

When a screenshot is taken, the proportion of the screen occupied by each unique color is calculated and mapped to each respective photographable object. If the object is blocked by something like a tree, then that part of the object is not seen by the score camera, and thus the proportion of the screen is less than if the object were just sitting in the open.

Here’s a quick example of a fat rhinoceros through the lens of the player camera, and the score camera. This is the same exact view in both screenshots.

Player View:

Score Camera View:

So, because the tree blocks some of the rhino from the camera, the score will be less than if the rhino were directly in front of the camera.

I think that achieves about what you’re describing :). Please let me know if you have any questions!

Thank you again for all of your feedback :).

1 Like

Yes, that is exactly what I was looking for. You’ve thought of everything! Can’t wait to see Screenshot Evaluator get released :slight_smile:

I finally had a break from work and have made a few major improvements to Snapshot Evaluator!

1. Snapshot Serialization
I took Ayk’s suggestion about marketing the asset additionally as an in-game screenshot creation tool and decided to completely revisit how screenshots were being saved. Previously, screenshots were saved in a static list for later reference between scenes. This worked fine for a while, but certainly wasn’t the best way to go about it. Now, everything is saved using JSON serialization. There is a key for long-term storage of screenshot information, and one to just store the latest session.

Snapshot information is now much more accessible in the editor, so I added a tab to view them:

When you click on an image, you can now view scoring information as well as output that image into a .png or .jpg file. An optional file prefix allows you to add a prefix to a filename for easy categorization. (Most of the information about each object is in-progress at this point.)

2. Demo Scene
As you may have noticed, Cubey, Spherey and Cappy have retired and been replaced by a whole plethora of fun animals. They all perform several silly animations and run around the island for testing purposes. This entire scene will be included with the asset as a demo, along with a guide for how I created it.
3120847--236165--Demo.gif

I think that’s all for now - still on track for a release this summer! :slight_smile: As always, please don’t hesitate to let me know of any questions or suggestions that you may have.

2 Likes

Nice! Can’t wait to see it released. Keep up the great work. Will saving pngs and jpgs work in a build as well? That might be a great way to let players save their favourite photos for use as wallpapers and on social media, etc.

Yep! Screenshots are saved as bytes and easily transformed into jpgs or pngs by calling the appropriate method, even in builds. The asset was planned for desktop games, but I built my demo scene for Android and everything still functioned!

Within the next week or so, I should have a basic setup/overview video to show some of the process!

1 Like

Crazy question occurred to me last night: will this also work in 2D mode, or is it just 3D-only?

This is EXACTLY what I’ve been looking for!
Can’t wait to see this asset be released, will definitely pick this up.

I had planned to write a system from scratch to do this, but I’m glad to see an asset which will save me time.
Good job!

Just to clarify my question, I’m wondering if the system will work with sprites, or if it’s purely for use with polygonal geometry.