Search Unity

  1. Get all the Unite Berlin 2018 news on the blog.
    Dismiss Notice
  2. Unity 2018.2 has arrived! Read about it here.
    Dismiss Notice
  3. We're looking for your feedback on the platforms you use and how you use them. Let us know!
    Dismiss Notice
  4. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  5. Improve your Unity skills with a certified instructor in a private, interactive classroom. Learn more.
    Dismiss Notice
  6. ARCore is out of developer preview! Read about it here.
    Dismiss Notice
  7. Magic Leap’s Lumin SDK Technical Preview for Unity lets you get started creating content for Magic Leap One™. Find more information on our blog!
    Dismiss Notice
  8. Want to see the most recent patch releases? Take a peek at the patch release page.
    Dismiss Notice

Catlike Coding's C# and Shader Text Tutorials

Discussion in 'Community Learning & Teaching' started by Jasper-Flick, Jul 31, 2011.

  1. Jasper-Flick

    Jasper-Flick

    Joined:
    Jan 17, 2011
    Posts:
    805
    The error means that the terrainTypes list doesn't contain the correct amount of elements. Each vertex must get one set of terrainTypes coordinates. Whenever something is added to the vertices list, something must also be added exactly once to the terrainTypes list. You have a mismatch somewhere, which is easy to overlook.

    I suggest you follow the entire tutorial as skipping bits can come back to haunt you later in a long series like Hex Map. You can make your own adjustments in a parallel project. That gives you a better idea of what's different.
     
    HeaDiii likes this.
  2. Jasper-Flick

    Jasper-Flick

    Joined:
    Jan 17, 2011
    Posts:
    805
  3. Jasper-Flick

    Jasper-Flick

    Joined:
    Jan 17, 2011
    Posts:
    805
    Bloom
    Blurring Light

     
  4. Jasper-Flick

    Jasper-Flick

    Joined:
    Jan 17, 2011
    Posts:
    805
  5. Jasper-Flick

    Jasper-Flick

    Joined:
    Jan 17, 2011
    Posts:
    805
  6. Jasper-Flick

    Jasper-Flick

    Joined:
    Jan 17, 2011
    Posts:
    805
  7. Jasper-Flick

    Jasper-Flick

    Joined:
    Jan 17, 2011
    Posts:
    805
    FXAA
    Smoothing Pixels

     
    Last edited: Apr 30, 2018
  8. Jasper-Flick

    Jasper-Flick

    Joined:
    Jan 17, 2011
    Posts:
    805
    HeaDiii likes this.
  9. ConnorMcKenzie

    ConnorMcKenzie

    Joined:
    Oct 19, 2016
    Posts:
    2
    Hey there. I'm attempting your mesh tutorials in Unity 2017.1.0f3 ( http://catlikecoding.com/unity/tutorials/procedural-grid/ ). Ran into an issue where I can't see the triangles being rendered. The triangle array shows a length of 60 but the Mesh Renderer doesn't seem to be rendering at all.

    Thanks in advance.
     
  10. Jasper-Flick

    Jasper-Flick

    Joined:
    Jan 17, 2011
    Posts:
    805
    @ConnorMcKenzie Looking at the backside? Not in play mode? Didn't assign the triangles to the mesh? I can't tell, because it could be for multiple reasons. You can always compare with a package download.
     
  11. ConnorMcKenzie

    ConnorMcKenzie

    Joined:
    Oct 19, 2016
    Posts:
    2
    Definitely did all of those (tried looking at both sides just in case). Let me download the package and I'll report back. Thanks for the response.

    Apparently the material I was trying to use wouldn't work... Not sure why but it appears after switching to your UV material and shader.
     
    Last edited: Apr 24, 2018
  12. Jasper-Flick

    Jasper-Flick

    Joined:
    Jan 17, 2011
    Posts:
    805
    @ConnorMcKenzie I can't guess what you did differently. It works now, right?
     
  13. Jasper-Flick

    Jasper-Flick

    Joined:
    Jan 17, 2011
    Posts:
    805
  14. Jasper-Flick

    Jasper-Flick

    Joined:
    Jan 17, 2011
    Posts:
    805
  15. Jasper-Flick

    Jasper-Flick

    Joined:
    Jan 17, 2011
    Posts:
    805
    Last edited: Jun 29, 2018
  16. Jasper-Flick

    Jasper-Flick

    Joined:
    Jan 17, 2011
    Posts:
    805
  17. Jasper-Flick

    Jasper-Flick

    Joined:
    Jan 17, 2011
    Posts:
    805
  18. Jasper-Flick

    Jasper-Flick

    Joined:
    Jan 17, 2011
    Posts:
    805
  19. Jasper-Flick

    Jasper-Flick

    Joined:
    Jan 17, 2011
    Posts:
    805
    Waves
    Moving Vertices