- Home /
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?
Retagged $$anonymous$$ax to $$anonymous$$aximum to prevent confusion with 3dsmax. Greetz, $$anonymous$$y.
@sisterky thanks for retagging, you don't need to comment about it though.
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.
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. :)
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.
Your answer
Follow this Question
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