Skip to content

JasonPKnoll/koi_pond

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

81 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Virtual Reality Koi Pond

Koi Fish Pond built in Unity for a Virtual Reality Enviroment. This build is specific for VRChat which requires compiling through Udon Sharp. This project will be broken out into a standalone that can be deployed directly to a webpage once all the main functionality is built out.

Event Triggers

The Koi fish have gravity applied upon leaving the water, and taken off when entering back into the water


Swimming

The Koi fish will reorient themselves to face upright when being put back into water.

The Koi will avoid running into walls. This will be expanded upon in the future to give them multiple actions they can take upon first detecting a wall. For now they will just turn away from it.


Food

Spawn in food that can be given to the fish. Food gains gravity when dropped, and has a simple function to float when thrown into the water.

Feed the Koi and watch them grow. Koi will grow to a max size, which will then allow them to have offspring.


Swap Koi

Don't like the colors of one of the Koi fish? Swap them out for a new Koi with randomly generated colors.


Cook Koi

Feeling a bit more destructive? Throw the koi into the "fire" and cook them. The spawned in cooked Koi will be the same size as the fresh Koi was.


Shader

The shader is very early on and still a big work in progress much like everything else. This shader was built using a node-based shader creation tool called Amplify. The main goals of this shader are to give the fish two distinct colors, and a pattern that can be altered via propreity blocks in the C# code, and to give the Koi fish the appearance of wiggling in the water.


This gives the Koi a pattern with two distinct colors. Need to find an alternative solution to the noise generator as it is an unoptimized solution to creating a pattern.

This manipulates the vertices on the Koi based on a sin equation.

This manipulates the vertices on the Koi based on the Kois position in the world.

The end results of the shader so far.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published