Search Unity

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:
    959
    Last edited: Jun 1, 2016
  2. Jasper-Flick

    Jasper-Flick

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

    Jasper-Flick

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

    Jasper-Flick

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

    Jasper-Flick

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

    Jasper-Flick

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

    Jasper-Flick

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

    Jasper-Flick

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

    Jasper-Flick

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

    Jasper-Flick

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

    Jasper-Flick

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

    Jasper-Flick

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

    Jasper-Flick

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

    Jasper-Flick

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

    Jasper-Flick

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

    Jasper-Flick

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

    Jasper-Flick

    Joined:
    Jan 17, 2011
    Posts:
    959
    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:
    959
    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:
    959
  21. Jasper-Flick

    Jasper-Flick

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

    Jasper-Flick

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

    Jasper-Flick

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

    Jasper-Flick

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

    Jasper-Flick

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

    Jasper-Flick

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

    Jasper-Flick

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

    Jasper-Flick

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

    Jasper-Flick

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

    Jasper-Flick

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

    Jasper-Flick

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

    Jasper-Flick

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

    Jasper-Flick

    Joined:
    Jan 17, 2011
    Posts:
    959
  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:
    959
    I might do that at some point.
     
  36. Jasper-Flick

    Jasper-Flick

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

    Jasper-Flick

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

    Jasper-Flick

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

    Jasper-Flick

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

    Jasper-Flick

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

    Jasper-Flick

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

    Jasper-Flick

    Joined:
    Jan 17, 2011
    Posts:
    959
    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:
    959
  45. Jasper-Flick

    Jasper-Flick

    Joined:
    Jan 17, 2011
    Posts:
    959
  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:
    959
    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:
    959
  49. Jasper-Flick

    Jasper-Flick

    Joined:
    Jan 17, 2011
    Posts:
    959
  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!