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 GambinoInd · Apr 29, 2013 at 01:28 AM · shadowsforward

Issue with Shadow Rendering

Im having issues with my shadow rendering. I am using Forward rendering, soft shadows.

Shadows

Anyone know the cause?

Comment
Add comment
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

4 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by Owen-Reynolds · Apr 29, 2013 at 01:33 AM

In general, that sort of "Moire pattern" is usually caused by a much, much too small texture (like several full tiles over each pixel.) Especially if it squirms around as you move the camera.

Comment
Add comment · Show 2 · 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
avatar image GambinoInd · Apr 29, 2013 at 03:10 AM 0
Share

What would cause this? The terrain texture is 15x15 tiled...

avatar image Owen-Reynolds · Apr 29, 2013 at 01:15 PM 0
Share

I don't know forward rendering, but are there any other texture sizes (the shadow texture) you can increase? Try making a 1x1 cube and zoo$$anonymous$$g in, maybe you're super-far away (but the starting 15x15 ground texture size is going to go to the base map well before it breaks up.)

avatar image
0

Answer by Prophet93 · Apr 29, 2013 at 05:45 AM

As Owen said above me. It does look like the texture is far too small that's why it's giving off that kind of square blocking effect. Try increasing the texture size. If that doesn't work you might need to recreate the texture larger, or find a new one

Comment
Add comment · Show 3 · 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
avatar image GambinoInd · Apr 29, 2013 at 03:16 PM 0
Share

The texture size is 1024x1024, and I've tried many other textures.

For some reason, after I restarted Unity it got much better and you can only see this effect a little, but it still exists slightly.

avatar image Owen-Reynolds · Apr 29, 2013 at 05:09 PM 0
Share

A too-large actual texture is another culprit (sort of the opposite of a too-small screen area.) Cram$$anonymous$$g 1024 texture pixels into only 20 or so screen pixels "randomly" picks 20 of them to use. But, mip-mapping (which is normally turned on) prevents this (by pre-building a 32x32 texture.)

Even so, might try with a smaller texture size (like a 16x16 cursor texture just lying around) just to rule out size.

avatar image GambinoInd · Apr 29, 2013 at 11:12 PM 0
Share

It's nothing to do with size. I tried all sizes. :-(

avatar image
0

Answer by lazalong · Oct 01, 2013 at 09:09 AM

Try to increase the "Bias" parameter of your ambient light to 0.2 (instead of 0). To near it might create this effect.

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
avatar image
0

Answer by GambinoInd · Oct 01, 2013 at 09:11 AM

It turns out is was due to being too far from the origin (in the upper 30,000 range). With deferred lighting and sometimes forward, when far from the origin shadows would shake.

You need to move closer to the origin! That was the issue :-)

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

15 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

Related Questions

Shadow artifact... forward mode 3 Answers

Point light shadows in forward rendering. 1 Answer

Baked + Real-Time Shadows 6 Answers

Modifying scripts during run-time 2 Answers

transparent object receiving shadows, etc 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