Skip to content

Using perlin noise to create a height-mapped terrain plain in Swift 2 and SceneKit

Notifications You must be signed in to change notification settings

Utsira/SceneKitBumpMapPlane

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SceneKitBumpMapPlane

Using perlin noise to create a height-mapped terrain plain in Swift 2 and SceneKit

BumpyPlane

ModelIO is used to create the normals and the skybox

Points to Note

  • There is a bug in SceneKit where SCNPhysicsShapeTypeConcavePolyhedron ignores the friction setting, setting it to zero. So the terrain is very slippery, limiting its usefulness
  • If you set the geometry subdivisionLevel before you create the physics body, the physics body is also subdivided. Here, I set subdivisionLevel after setting up physics body, so that the mesh is more detailed than the physics body.
  • SkyBox doesn't seem to display on older devices (eg iPhone4S)

About

Using perlin noise to create a height-mapped terrain plain in Swift 2 and SceneKit

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages