Create an account


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
A Pixel Perfect Camera in Unity

#1
A Pixel Perfect Camera in Unity

<div style="margin: 5px 5% 10px 5%;"><img src="http://www.sickgaming.net/blog/wp-content/uploads/2018/06/a-pixel-perfect-camera-in-unity.png" width="704" height="377" title="" alt="" /></div><div><p>If you are a pixel artist, one of the most challenging tasks you have to deal with is handling multiple resolutions and aspect ratios that your game might run at.  Thankfully if you are using the newest (Unity 2018.2b3 or later) version of Unity there is now a new component that makes this job borderline trivial.</p>
<p>Announced in the following <a href="https://twitter.com/rustumscammell/status/1000977099530747904">tweet</a>:</p>
<p><a href="http://www.gamefromscratch.com/image.axd?picture=image_3389.png"><img width="704" height="377" title="image" alt="image" src="http://www.sickgaming.net/blog/wp-content/uploads/2018/06/a-pixel-perfect-camera-in-unity.png" border="0"/></a></p>
<p>You can download the component and a couple sample scenes <a href="https://github.com/Unity-Technologies/2d-pixel-perfect">here on Github</a>, and you can read more <a href="https://forum.unity.com/threads/pixel-perfect-preview-package.533433/">about it here</a>.</p>
<blockquote readability="14">
<p>The 2D Pixel Perfect package contains the Pixel Perfect Camera component which ensures your pixel art remains crisp and clear at different resolutions, and stable in motion.</p>
<p>It is a single component that makes all the calculations needed to scale the viewport with resolution changes, removing the hassle from the user. The user can adjust the definition of the pixel art rendered within the camera viewport through the component settings, as well preview any changes immediately in Game view by using the Run in Edit Mode feature.</p>
</blockquote>
<p>Using the camera is simple, once the package is installed, it’s simply added to a camera and configure:</p>
<p><a href="http://www.gamefromscratch.com/image.axd?picture=image_3390.png"><img width="523" height="165" title="image" alt="image" src="http://www.sickgaming.net/blog/wp-content/uploads/2018/06/a-pixel-perfect-camera-in-unity-1.png" border="0"/></a></p>
<p>Your game should now scale gracefully across resolutions and aspect ratios.  To see the Pixel Perfect Camera in action be sure to <a href="https://www.youtube.com/watch?v=5WYvYZnGKKc">watch this video</a>, also embedded below.</p>
<p align="center"><iframe width="854" height="480" src="https://www.youtube.com/embed/5WYvYZnGKKc" frameborder="0" allowfullscreen="" allow="autoplay; encrypted-media">[embedded content]</iframe></p>
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum software by © MyBB Theme © iAndrew 2016