Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • 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 /
  • Help Room /
avatar image
0
Question by meg_gem · Feb 08, 2016 at 03:37 PM · rendertextureorientationreadpixels

arbitrary orientation problem with Readpixels and render texture when I cut texture to splinters

In my game I make a screenshot of a cube with text on it, replace the cube by 64 Splinters and "explode them". Everything works fine on my Mac AND on my iPhone, but not on my iPad, even when I run the exact same app on both iOS devices.

The error appears when I move my "TextureCam" on the Cube, create a new RenderTexture, and use ReadPixels to get the 16 small areas to create the 16 textures, for every front panel Texture one.

The strange thing is that the lines get mixed up, and the reason must be, that there is a difference NOT in the orientation of the original cube and the TextureCam (and thus the RenderTexture), BUT in the orientation of the ReadPixels function. Once it reads from bottom to top (as it is documented), but sometimes it reads from top to bottom.

My problem is that I can't find a way to "reorientate" ReadPixels OR to at least to know which orientation it has right now.

Obviously, I tried to fix the orientation in player setting and on the device. More information on how I could influence the orientation of ReadPixels would be greatly appreciated!

Comment
Add comment · Show 2
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
avatar image meg_gem · Feb 04, 2016 at 10:47 AM 0
Share

Just to show how unpredictable this is: I load the program on two identical iPads with the identical version of iOS, and on the one, it is ALWAYS right, on the other one it is ALWAYS wrong.

I just don't get how this is possible. I even made sure they had the same orientation all through the process of installing and running the game....

avatar image clever meg_gem · Jul 27, 2016 at 12:44 PM 0
Share

having the same problem! can't find a solution yet

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by meg_gem · Jul 27, 2016 at 12:57 PM

@clever Thank you for joining in. I still haven't found a solution, other than a manual switch to adjust for each device. Obviously not ready to be released...

Comment
Add comment · Share
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

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.

Follow this Question

Answers Answers and Comments

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Convert Texture to Texture2d takes a lot of time in android device. 0 Answers

Get Colors from RenderTexture faster! 1 Answer

Trying to Take a Snapshot of Only a Portion of the Screen In-Game 0 Answers

Rendering Camera to PNG produces completely grey image. 1 Answer

Read Pixels to Texture2D in EditorWindow make unity crash 2 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges