Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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 /
avatar image
1
Question by PaulUsul · Jan 03, 2011 at 01:44 PM · sizerendertexturemaximum

How do I find max texture size or max RenderTexture size

Hi,

I am having a problem using the Camera Render and ReadPixels, they cast these exceptions.

RenderTexture.Create failed: width and height must be smaller than max Render Texture Size UnityEngine.Camera:Render() UnityEngine.Camera:Render() HUDPhotoView:TakePicture() HUDPhotoView:OnGUIDraw() HUDDrawOrder:OnGUI()

[....\Runtime\Graphics\RenderTexture.cpp line 160] (Filename: ....\Runtime\Graphics\RenderTexture.cpp Line: 160)

RenderTexture.Create failed: width and height must be smaller than max Render Texture Size UnityEngine.RenderTexture:set_active(RenderTexture) UnityEngine.RenderTexture:set_active(RenderTexture) HUDPhotoView:TakePicture() HUDPhotoView:OnGUIDraw() HUDDrawOrder:OnGUI()

[....\Runtime\Graphics\RenderTexture.cpp line 160] (Filename: ....\Runtime\Graphics\RenderTexture.cpp Line: 160)

Stacktrace:

at (wrapper managed-to-native) UnityEngine.Texture2D.ReadPixels (UnityEngine.Rect,int,int,bool) <0x00004> at (wrapper managed-to-native) UnityEngine.Texture2D.ReadPixels (UnityEngine.Rect,int,int,bool) <0xffffffff> at UnityEngine.Texture2D.ReadPixels (UnityEngine.Rect,int,int) <0x00033> at HUDPhotoView.TakePicture () <0x001dd> at HUDPhotoView.OnGUIDraw () <0x00cb9> at HUDDrawOrder.OnGUI () <0x00388> at (wrapper runtime-invoke) Intro.runtime_invoke_void (object,intptr,intptr,intptr) <0xffffffff> Receiving unhandled NULL exception Trying to recover from null exception

I try to try/catch them but to no avail. The problem is that the computer is really old and can only handle a max texture size of 1024 and render texture size of 512(found out from log file).

D3D: forcing max. texture size of 1024 and RT size of 512 (32MB card)

Now that is okay if I could find out what the max texture size is runtime and not postmortem.

Does any body know a trick to get this info?

Comment
Add comment · Show 5
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 SisterKy · Jul 15, 2011 at 01:19 AM 0
Share

Retagged $$anonymous$$ax to $$anonymous$$aximum to prevent confusion with 3dsmax. Greetz, $$anonymous$$y.

avatar image _Petroz · Jul 15, 2011 at 01:39 AM 0
Share

@sisterky thanks for retagging, you don't need to comment about it though.

avatar image SisterKy · Jul 15, 2011 at 01:45 AM 0
Share

I thought it was good custom (? right word? I'm not native english)... but if it isn't, I'm happy to stop. (It's annoying). Should I delete the comments I made? =/ And also no comment, if I change the headline? (Is there a best-conduct-faq for editing stuff in unityanswers?) Greetz, $$anonymous$$y.

avatar image _Petroz · Jul 15, 2011 at 02:47 AM 0
Share

AFAI$$anonymous$$ think there is not any best-conduct-faq. Don't worry about deleting your existing comments. It's just nice to keep the off-topic comments to a $$anonymous$$imum becase the poor OP get's sent an email every time we make a comment and no one has actually answered his question yet. :)

avatar image SisterKy · Jul 15, 2011 at 04:02 AM 0
Share

I opened one =) http://answers.unity3d.com/questions/143949/tag-management-conventions-for-edditing-and-re-tag.html#comment-143954 But true! Now that I think about it, it's quite curel. And on the long run, I myself will get spammed about topics I merely retagged... and sorry @PaulUsul. I'll shut up now... Greetz, $$anonymous$$y.

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.

Follow this Question

Answers Answers and Comments

3 People are following this question.

avatar image avatar image avatar image

Related Questions

RenderTexture to capture an area bigger than Screen on IOS 0 Answers

Unlimited world size in Unity3d (by a trick) & maximum speed? 1 Answer

How large can a terrain be that is generated with a heightmap? 1 Answer

What is the largest Terrain Size allowed in a Scene and maximum number of Scenes in a Game? 5 Answers

Maximum scene size? 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