Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We are updating our Terms of Service for all Unity subscription plans, effective October 13, 2022, to create a more streamlined, user-friendly set of terms. Please review them here: unity.com/legal/terms-of-service.
    Dismiss Notice
  3. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    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:
    915
    Last edited: Jun 1, 2016
  2. Jasper-Flick

    Jasper-Flick

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

    Jasper-Flick

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

    Jasper-Flick

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

    Jasper-Flick

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

    Jasper-Flick

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

    Jasper-Flick

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

    Jasper-Flick

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

    Jasper-Flick

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

    Jasper-Flick

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

    Jasper-Flick

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

    Jasper-Flick

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

    Jasper-Flick

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

    Jasper-Flick

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

    Jasper-Flick

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

    Jasper-Flick

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

    Jasper-Flick

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

    Jasper-Flick

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

    Jasper-Flick

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

    Jasper-Flick

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

    Jasper-Flick

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

    Jasper-Flick

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

    Jasper-Flick

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

    Jasper-Flick

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

    Jasper-Flick

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

    Jasper-Flick

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

    Jasper-Flick

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

    Jasper-Flick

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

    Jasper-Flick

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

    Jasper-Flick

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

    Jasper-Flick

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

    Jasper-Flick

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

    Jasper-Flick

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

    Jasper-Flick

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

    Jasper-Flick

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

    Jasper-Flick

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

    Jasper-Flick

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

    Jasper-Flick

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

    Jasper-Flick

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

    HeaDiii

    Joined:
    May 18, 2015
    Posts:
    60
    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!
     
unityunity