Depth Map mesh generation

Standard

SceneKitTest.gif

Depth map (or height map?) mesh generation using SceneKit. This is my first time using SceneKit and it’s way less hassle than writing every single OpenGL operations line by line.

Basically what it does is to generate terrain / height map using given depth map. The calculation of the normal is still messed up though.

You can get the source code here:

https://github.com/subokita/SceneKit-Testhttps://github.com/subokita/SceneKit-Test

Edit:
Updated with:

  1. Testing handwriting custom fragment shader (well, just trying out how to set SceneKit to use my own fragment shader)
  2. Metal compute shader, kernel function is taken from InvasiveCode which is pretty straightforward. The only thing that I wanted to know is the initialisation steps.

Screen Shot 2017-08-07 at 08.58.04.png

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s