Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
12 Jun 22 - 14 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
3
Question by AndrewDupuis · Mar 11, 2019 at 07:50 PM · 3drenderingrendertexturecreate a texture

3D RenderTextures with Depth Not Supported (worked in <=2017.1, broken 2018+)

I'm working on migrating a 2017.1 project to 2019.1.0b6 and noticed that I'm getting errors when trying to create a 3D render texture. This code works fine in 2017 but doesn't in 2018 or 2019 because of the following error:

RenderTexture.Create failed: 3D textures with depth are not supported.

Is there a reason this capability was removed?

     RenderTexture render = new RenderTexture((int)(texArray.width*scaling), (int)(texArray.height*scaling), (int)(texArray.depth * scaling), RenderTextureFormat.ARGBFloat);
     render.useMipMap = true;
     render.dimension = UnityEngine.Rendering.TextureDimension.Tex3D;
     render.filterMode = FilterMode.Point;
     //render.volumeDepth = (int)(texArray.depth*scaling);
     render.enableRandomWrite = true;
     render.Create();
Comment
Add comment · Show 1
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 EceLStyle · Oct 13, 2019 at 03:04 PM 0
Share

Same error here. I found this,

https://unity3d.com/es/unity/whats-new/2019.1.0 Graphics: Added extra validation for RT volumeDepth. (1096019)

I wrote to forum, keep track this post https://forum.unity.com/threads/rendertexture-create-failed-3d-textures-with-depth-are-not-supported-unity-2019-1-0.759890/

I could not find any documentation about what validation added.

Unity version 2019.2.7f2 Personal (DX11) Windows 10

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by EceLStyle · Oct 13, 2019 at 06:54 PM

Ok, forum helped me,

It's a terminology error, depth is not volumeDepth, so in RenderTexture constructor use two dimension and depth 0 (depth buffer, is not volumeDepth/slice)

RenderTexture render = new RenderTexture(128,128,0); render.volumeDepth=128; //use for volume

Thanks grizzly from unity forum.

https://forum.unity.com/threads/rendertexture-create-failed-3d-textures-with-depth-are-not-supported-unity-2019-1-0.759890/?_ga=2.27873403.699043306.1570610777-1474495621.1551711374

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

134 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Pixelart camera shader 2 Answers

Can someone explain RenderTexture.SupportsStencil 0 Answers

Second perspective camera causing objects to glitch 0 Answers

How to render pixelated light? 1 Answer

How to read cubemap from realtime reflection probe 1 Answer


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