Skip to content

chuyannnnn/Cocos2DPerlinNoiseOcean

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cocos2DPerlinNoiseOcean

Cocos2DPerlinNoiseOcean is a test I did for an interview. The test was to create a 3D ocean within Cocos2D-x so I've generated the ocean mesh with OpenGL and written some shaders to make it looks nicer.

Ocean was animated by moving vertices in vertex shader with perlin noise and sin waves, but later changed to use simplex noise instead. So the repo name is actually inaccurate now and should be called SimplexNoiseOcean.

As this is done with a simple mesh and a simple shader, performance cost is relatively cheap and this should run in low end mobile devices that supports OpenGLES 2.0.

Alt text

Cocos2D-x Version

This project is created using cocos2d-x 3.4. Please place the cocos2d-x library in the root of the project and rename it to cocos2d when compile.

Platform Support

This project supports iOS and Android

iOS Project

Path: proj.ios_mac/Cocos2DPerlinNoiseOcean.xcodeproj

Android Build

Path: proj.android/build_native.py

About

Simple 3D ocean shader for Cocos2d-x

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published