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
0
Question by dstrawberrygirl · Feb 26, 2012 at 10:28 PM · editorunity3.5

colorSurf depthSurf width and height error in the Editor

I have a data visualization piece of code that instantiates a bunch of prefabs and then shows/hides meshes and re-colors pieces according to values. For some reason, I see the following error scrolling on my screen in the editor while running:

 colorSurf->width == depthSurf->width && colorSurf->height == depthSurf->height
 (Filename: C:/BuildAgent/work/b0bcff80449a48aa/Runtime/GfxDevice/threaded/GfxDeviceClient.cpp Line: 1611)

How can I find out what is causing this? I could only find reference to some sort of shader issue but I am not using any particularly interesting shaders that I know of.

More strange behavior - I added a copy of the prefab to the scene and it was fine, I tried running with it in the scene and it was still fine. Then, I don't know what happened but when I tried that again I found I would get the same error if I selected a particle emitter within the prefab. I added a blank particle emitter, and the same error kept scrolling. To sanity check, I closed the project, opened a different project, tried adding a basic particle system and all was well. So, I go back to main project, error gone for particle emitters, but still there at runtime.

I have changed nothing since 3.4 and all was well then - is this an editor only bug, is this something I need to action? How can I tell what's causing it?

The only thing I am doing to set the color on the object is take a variable that I set in the inspector with the selected color:

 public Color selectedColor;

then apply that to the object as follows:

 serverModel.renderer.material.color = selectedColor;

I'm using basic standard diffuse shaders on the server model, if that makes any difference. Finding it hard to pinpoint this one, so any help or ideas would be appreciated!

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 dstrawberrygirl · Mar 08, 2012 at 04:00 PM 0
Share

So I made the error go away by turning off the soft shadows on the directional light in the scene... I am still not sure why it was causing errors - could it be related to using the combinechildren script on a collection of mesh objects that I add to the scene dynamically? I changed all the meshes to be really simple meshes and all materials used the standard diffuse shader.

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Zane.JResearch · Feb 27, 2013 at 10:36 PM

An alternative to turning off the soft shadows in the sign is to use vertex lit on your camera. I came across this issue rendering a small area of the world. An example of this application could be for a minimap, avatar renderer and/or a model viewer. I hope this helps, but I know it is not much.

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

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

Can I know why I can't control volume of audiomixergroup without exposing parameters? 0 Answers

Header attribute and Custom Property Drawer overlap in inspector, repeat header text 2 Answers

Unity Editor 'actively refused' attaching debugger 4 Answers

Unity3.5 submit to app store help! 1 Answer

Add same go as a child to multiple gameObjects in hierarchy 0 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