Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    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:
    957
    Last edited: Jun 1, 2016
  2. Jasper-Flick

    Jasper-Flick

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

    Jasper-Flick

    Joined:
    Jan 17, 2011
    Posts:
    957
    eses likes this.
  4. Jasper-Flick

    Jasper-Flick

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

    Jasper-Flick

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

    Jasper-Flick

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

    Jasper-Flick

    Joined:
    Jan 17, 2011
    Posts:
    957
  8. Jasper-Flick

    Jasper-Flick

    Joined:
    Jan 17, 2011
    Posts:
    957
  9. Jasper-Flick

    Jasper-Flick

    Joined:
    Jan 17, 2011
    Posts:
    957
  10. Jasper-Flick

    Jasper-Flick

    Joined:
    Jan 17, 2011
    Posts:
    957
  11. Jasper-Flick

    Jasper-Flick

    Joined:
    Jan 17, 2011
    Posts:
    957
  12. Jasper-Flick

    Jasper-Flick

    Joined:
    Jan 17, 2011
    Posts:
    957
  13. Jasper-Flick

    Jasper-Flick

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

    Jasper-Flick

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

    Jasper-Flick

    Joined:
    Jan 17, 2011
    Posts:
    957
  16. Jasper-Flick

    Jasper-Flick

    Joined:
    Jan 17, 2011
    Posts:
    957
    zircher likes this.
  17. Jasper-Flick

    Jasper-Flick

    Joined:
    Jan 17, 2011
    Posts:
    957
    Here's the last tutorial of 2016. There will be lots more in 2017!

    Rendering, part 11
    Transparency

     
    CZiporyn and Socrates like this.
  18. CZiporyn

    CZiporyn

    Joined:
    Jun 22, 2014
    Posts:
    4
    Looking forward to more! I'm on Rendering part 3 (I started from the beginning). I find your approach refreshing as you don't take math and other conventions for granted explanatory-wise when you're working through the code.

    I'm just curious - what else do you have planned for this year? Any different tutorial series? Perhaps something like a set up for a game? (Thinking of how one might set up genres of games like RPGs, FPS, 2D pixel, etc).
     
  19. Jasper-Flick

    Jasper-Flick

    Joined:
    Jan 17, 2011
    Posts:
    957
    I'm glad that my approach works for you!

    I'll wrap up the Hex Map and Rendering series this year. What comes after that is a surprise.
     
    CZiporyn likes this.
  20. Jasper-Flick

    Jasper-Flick

    Joined:
    Jan 17, 2011
    Posts:
    957
  21. Jasper-Flick

    Jasper-Flick

    Joined:
    Jan 17, 2011
    Posts:
    957
  22. Jasper-Flick

    Jasper-Flick

    Joined:
    Jan 17, 2011
    Posts:
    957
  23. Jasper-Flick

    Jasper-Flick

    Joined:
    Jan 17, 2011
    Posts:
    957
  24. Jasper-Flick

    Jasper-Flick

    Joined:
    Jan 17, 2011
    Posts:
    957
  25. Jasper-Flick

    Jasper-Flick

    Joined:
    Jan 17, 2011
    Posts:
    957
  26. Jasper-Flick

    Jasper-Flick

    Joined:
    Jan 17, 2011
    Posts:
    957
  27. Jasper-Flick

    Jasper-Flick

    Joined:
    Jan 17, 2011
    Posts:
    957
  28. Jasper-Flick

    Jasper-Flick

    Joined:
    Jan 17, 2011
    Posts:
    957
    KristianDoyle likes this.
  29. Jasper-Flick

    Jasper-Flick

    Joined:
    Jan 17, 2011
    Posts:
    957
  30. Jasper-Flick

    Jasper-Flick

    Joined:
    Jan 17, 2011
    Posts:
    957
    Last edited: Jul 22, 2017
  31. Jasper-Flick

    Jasper-Flick

    Joined:
    Jan 17, 2011
    Posts:
    957
  32. Jasper-Flick

    Jasper-Flick

    Joined:
    Jan 17, 2011
    Posts:
    957
  33. Jasper-Flick

    Jasper-Flick

    Joined:
    Jan 17, 2011
    Posts:
    957
  34. yamlCase

    yamlCase

    Joined:
    Apr 13, 2017
    Posts:
    34
    Love the tutorials! I'm meandering my way to marching squares and was wondering if you are interested in making a marching cubes tutorial as a follow on? Thanks!
     
  35. Jasper-Flick

    Jasper-Flick

    Joined:
    Jan 17, 2011
    Posts:
    957
    I might do that at some point.
     
  36. Jasper-Flick

    Jasper-Flick

    Joined:
    Jan 17, 2011
    Posts:
    957
  37. Jasper-Flick

    Jasper-Flick

    Joined:
    Jan 17, 2011
    Posts:
    957
    sylon likes this.
  38. Jasper-Flick

    Jasper-Flick

    Joined:
    Jan 17, 2011
    Posts:
    957
  39. Jasper-Flick

    Jasper-Flick

    Joined:
    Jan 17, 2011
    Posts:
    957
  40. Jasper-Flick

    Jasper-Flick

    Joined:
    Jan 17, 2011
    Posts:
    957
  41. Jasper-Flick

    Jasper-Flick

    Joined:
    Jan 17, 2011
    Posts:
    957
    Last edited: Nov 24, 2017
  42. Jasper-Flick

    Jasper-Flick

    Joined:
    Jan 17, 2011
    Posts:
    957
    You get the error because you haven't put anything in the meshes array yet, via the inspector. Thus, it fails when the code tries to access index zero of the empty array.
     
  43. Joel_Dittrich

    Joel_Dittrich

    Joined:
    Feb 1, 2017
    Posts:
    7
    OMG, got it. >_< :-D Embarrasing. :-]
     
  44. Jasper-Flick

    Jasper-Flick

    Joined:
    Jan 17, 2011
    Posts:
    957
  45. Jasper-Flick

    Jasper-Flick

    Joined:
    Jan 17, 2011
    Posts:
    957
  46. BlitzStarGaming_

    BlitzStarGaming_

    Joined:
    Nov 28, 2017
    Posts:
    1
    Just started doing these tutorials and they are amazing! A really nice and easy way to learn how to work with C# and the Unity Engine. I'm looking forward to more!
     
  47. Jasper-Flick

    Jasper-Flick

    Joined:
    Jan 17, 2011
    Posts:
    957
    I'm glad you like my work! Here's the next one.

    Tessellation
    Subdividing Triangles

     
  48. Jasper-Flick

    Jasper-Flick

    Joined:
    Jan 17, 2011
    Posts:
    957
  49. Jasper-Flick

    Jasper-Flick

    Joined:
    Jan 17, 2011
    Posts:
    957
  50. HeaDiii

    HeaDiii

    Joined:
    May 18, 2015
    Posts:
    61
    Hey there!

    First off, I really love your tutorials. I'm enjoying the HexMap-Tutorial at the moment.
    Unfortunately, I do have one problem and hope you could help me solve it.

    I'm currently stuck at part 14 - Terrain Textures - and I pretty much finished it to the end. When I go into Unity, the console prints out an error that says that
    I don't really know what that means. I checked every line of code a few times and still wasn't able to solve this on my own.
    The sand-texture is showing up, but I'm not able to change the cells terrains.

    I skipped some parts of this series because I thought I won't need them for my project. (The parts with irregularity, rivers, roads, terrain features, walls and "more features"). I adapted the code where it was needed.

    The error is thrown in this line:
    Code (CSharp):
    1. hexMesh.SetUVs(2, terrainTypes);
    Could you help me?
    cheers!