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 DemianT · Jan 07, 2014 at 01:43 PM · shaderlightingmateriallighting-model

Ugly 'Per Vertex'-Style Lighting No Matter What I Do

The screenshot is of the default sphere which I squashed a bit to make the ugly shading easier to see. It is still quite hard to see the problem in the screenshot, though it is much worse in game. You can see if you look carefully at the screenshot that there are darker lines extruding along the lines between vertices from the unlit parts of the sphere to the lit parts.

It is using the 'Default-Diffuse' material. The same happens no matter what shader I use. And no matter what mesh I use. I have the graphics quality set to 'fantastic' and am running it on a very powerful computer.

Does anybody else have this issue. How do I resolve it?

Thank you very much.alt text

shot.jpg (54.8 kB)
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

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by aeroson · Jan 07, 2014 at 02:28 PM

Is your camera set to forward or deferred rendering path ?

Comment
Add comment · Show 10 · 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 DemianT · Jan 07, 2014 at 03:29 PM 0
Share

Thank you for your reply. It is using the forward rendering path. The deferred rendering path is only available in Unity Pro. Is this really the problem? In the Unity documentation under forward rendering it says:

'Forward is a shader-based rendering path. It supports per-pixel lighting (including normal maps & light Cookies) and realtime shadows from one directional light. In the default settings, a small number of the brightest lights are rendered in per-pixel lighting mode. The rest of the lights are calculated at object vertices.'

Since I only have one light in my scene, it sounds like it should be doing per-pixel lighting with no per-vertex lighting.

avatar image aeroson · Jan 07, 2014 at 04:18 PM 0
Share

You are right, no matter what i do it still happens (even in blender). I think it is because normals are interpolated lineary. If you want more rounded sphere try to use normals maps or increase the vertices count. Also i don't think doing so will help, the spheres looks just fine unless you squash them, because you are squashing normals as well.

avatar image DemianT · Jan 07, 2014 at 05:29 PM 0
Share

I can't afford to increase the vertex count. The problem is still there when I don't squash the sphere. It is just harder to see.

This seems pretty ridiculous. When I was working directly with C++ and DirectX/HLSL I never had this problem. Everything was perfectly smooth.

avatar image Jessy · Jan 11, 2014 at 03:44 PM 0
Share

Let's see what you were doing. I don't think you can do better than Nlerp with verts and shaders; Slerp isn't possible without knowledge of other vertices.

avatar image DemianT · Jan 11, 2014 at 05:04 PM 0
Share

What do you mean by 'Let's see what you were doing'?

Show more comments
avatar image
0

Answer by greencvbn · Jan 07, 2014 at 04:39 PM

the problem may be from running the graphics on fantastic the detail may just not be their to see super well. is this a large object or something smaller because if you change the scale of some objects it changes the shading partally. the black lines on your shape look like the grid that comes from a mesh maby your object needs to not have a mesh. these are just ideas to experiment with.

Comment
Add comment · Show 1 · 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 DemianT · Jan 07, 2014 at 05:32 PM 0
Share

The problem persists on all graphics quality settings. It also persists if I don't perform any scaling. I don't know what you mean by not having a mesh. How can you have a visible object without a mesh?

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

21 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

Related Questions

How can I prevent lights overlapping in intensity? 1 Answer

Image Effect lighting 0 Answers

Can only the material set on a SpriteRenderer be affected by a unique 2D light ? 0 Answers

Shader to partially ignore lighting (Specific colors) 0 Answers

Light based texture change on material 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