top of page
Search

Week 7 (03/11/2024 - 09/11/2024) NavMesh And Perlin Noise Animation

  • Writer: junlachaktophat
    junlachaktophat
  • Nov 25, 2024
  • 2 min read

Updated: Dec 18, 2024


This week, the enemy will have the ability to chase the player. By the support of the NavMesh system. Then create a Perlin Noise animation.


NavMesh for Enemy

First, a NavMeshSurface was created in the game scene and built. Creating a game object called "EnemySphere" and adding a component to make it movable in NavMeshSurface. By adding a SetDestination() function, the enemy can follow the players, but this will have to change soon because of the lack of mobility for the player. Making it impossible to finish. The concept involves designing or making the enemy wander around the maze.


Figure 1 and 2: Screenshot from Juclachak Juntasilp's GitHub repository, My CT7120 Procedural Generation Algorithms Project (Juntasilp, 2024). Available at: https://github.com/jino1113/My-CT7120-Procedural-Generation-Algorithms-Project/tree/main.


The enemy does not have to chase the player down, and the player does not even have a consequence when the player finds the enemy or sees the enemy. Sometimes, when something unpredictable happens, not doing anything can be more scary than doing something. The reason that this project uses NavMesh is that the enemy can have more advantage of movement in the maze rather than make a simple code for moving one waypoint to another by itself. Another thing is that the maze continues randomly. That is why adding a wave point is more pointless than adding a NAVmesh and making the program decide where the enemy can walk or not.


Source: Created by Juclachak Juntasilp, 2024.


The Perlin Noise animation

A Perlin Noise animation. It is controlled by communist thinking in the code that contains the formula that makes it moveable. It is genuinely hoped that this functionality will be used in the final product. One intended improvement is that when enemies are nearby, the wall will be shortened to make the player see that there are enemies near the player. Moreover, the wall can make the player scared because of the movement's unpredictability.


Source: Created by Juclachak Juntasilp, 2024.


The reason this project is possible is that the author came across a tutorial video called "Unity Tutorial ITA | PerlinNoise animation". This video teaches how to use Perlin Noise to create Perlin Noise animation. Which is a simple application that is not as difficult as using it on the surface of water or using it for earthquakes or anything like that. It's a simple usage and in the future it might be used in games as some kind of gimmick.


Source: Unity Tutorial ITA | PerlinNoise Animation by Ndrew


Reference

  1. Juntasilp, J. (2024) CT7120 Procedural Generation Algorithms Project. Available at: https://github.com/jino1113/My-CT7120-Procedural-Generation-Algorithms-Project/tree/main (Accessed: 25 November 2024).

  2. Juntasilp, J. (2024) Perlin Noise Animation Demonstration. Available at: https://youtu.be/8PZklT-56bY (Accessed: 25 November 2024).

  3. Juntasilp, J. (2024) Maze Game Project Demonstration. Available at: https://youtu.be/22VOJUWcG-4 (Accessed: 25 November 2024).

  4. Ndrew (2021) Unity Tutorial ITA | PerlinNoise Animation, YouTube. Available at: https://www.youtube.com/watch?v=ZCt6P6w68TE (Accessed: 10 December 2024).

 
 
 

Comments


bottom of page