- Home /
Why are the trees super dark?
I'm trying to make trees using the tree-creator, and for the most part it's going well. I have one issue: when I'm done with the trees and it processes itself, it comes out super dark, almost black. Image attached.
I'm using a total of two materials, one for branches and one for leaves. One is of type tree creator - bark, the other is tree creator - leaves. When they're not on trees each looks fine, it's only on the trees that become funny colored.
No lightmapping, nothing but a single directional light. I've tried it with shadows on and off, with no difference. Any ideas?
Does anything change if you change the ambient light settings?
Nope. I can even fill the space with high-intensity lights, and while it lights it up a little bit, it doesn't do much.
Did you make your own material for the tree, or are you using one of the materials that Unity made? (I know you're using the correct shader, just curious about the material.)
The bark is using the provided 'bigtree' texture/material. The leaves are a mesh that I made myself, with a custom texture.
Aha! That would be it. I'd submit it as a bug report to Unity.
I can't give you an answer... a Unity 4 package won't work on any other version of Unity.
Answer by Itinerant · Sep 24, 2012 at 11:15 PM
Ok, not 100% certain why this works, but solution found: Don't use .tif or .png. A Photoshop .psd for the leaf and bark materials fixes the problem.
Still not sure if this is something new with 4.0 beta, or if it's cross-browser.
Answer by Unity_gamer · Sep 20, 2012 at 05:45 AM
Try Changing the shader else it will be problem with your texturing.
Thanks
I've tried changing both, no luck. I should note that if I change the tree creator settings, the color goes correct. Then a few $$anonymous$$utes later, the tree recalculates and goes dark again.
I'm having a problem like this except half of the mesh has no diffuse color. Just grey with normal map. Very strange and annoying. When I manually put in my material it looks okay but when it recalculates it bugs out again.
Answer by OneOfMany · Mar 28 at 10:49 AM
If the trees were done using unity tree creator (therefore using unity builtin shaders for foliage), you have to use textures that aren't in sRGB color space. It's a checker box in the import settings of each texture.
Your answer
Follow this Question
Related Questions
Tree branches as mesh collider 1 Answer
Creating wind effect for 3d tree model 1 Answer
Trees in prefabs - in asset bundles 0 Answers
Making Tree Creator Trees Unique 2 Answers
Tree Creator Problems 1 Answer