• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by NappyXIII · Apr 10, 2016 at 09:39 AM · texture2dmergingscreencapture

Merging a Texture of Set Resolution with an Imported Texture

I'm running into a problem where I am trying to merge two textures together, one that is from Application.ScreenCapture and another that is a custom overlay.

In my code, I successfully combine the two images, but i run into an issue with the overlay. The screencapture is a set resolution (the screen size or, in the case of my testing, 1920x1080) and the custom overlay is also a 1920x1080 pixel png. When I import it into unity, I set the max resolution to 2048, and it seems that Unity imports it then as a 2048x1024 image that is in line with the power of two.

I'm not really familiar with power of two or why Unity does this, but it cause an issue because now the overlay does not match the screen capture. I have a 1920x1080 image that I am combining with a 2048x1024 image into a 1920x1080 image. It results in the resultant image being offset due to matching pixel to pixel.

Is there any way to force a screenshotted texture to 2048x1024 or force the 2048x1024 import setting to 1920x1080 so that they match?

Example Background: http://i.imgur.com/RIBsozh.png Example Overlay: http://i.imgur.com/K0cFW3M.png Example Output After Merge: http://i.imgur.com/8XkznBN.png

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

0 Replies

· Add your reply
  • Sort: 

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

3 People are following this question.

avatar image avatar image avatar image

Related Questions

Live screen share Unity3D 2 Answers

How to load a large texture at runtime without blocking the pipeline? 1 Answer

Can't seem to use GetPixels on a square texture in Unity 3.0 Iphone 0 Answers

Texture2D scale - iTween 1 Answer

Out of memory(Max Size) 2 Answers

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges