Skip to content

skeelogy/skulpt.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

skulpt.js

Introduction

This is a JavaScript / GLSL height field terrain sculpting library for Three.js plane meshes.

Features

  • GPU-based sculpting for fast performances on high resolution meshes
  • Load custom greyscale height map as the base terrain
  • Different sculpt brushes: add, remove
  • Highlight on sculpt brush area to visually indicate sculpting location
  • Retrieve a proxy texture for creating a proxy mesh for CPU operations e.g. collision detection with a CPU-based rigid body system

Examples

1) Terrain Load & Sculpt [Demo]

   ScreenShot

  • Loading of greyscale height map
  • Terrain sculpting using the mouse cursor

2) Interaction With Dynamic Rigid Bodies [Demo]

   ScreenShot

  • Fetching of proxy texture from the GPU to create a low-res terrain for collision detection with dynamic rigid bodies

Documentation

Browser Support

Tested only in Google Chrome (recommended) and Mozilla FireFox

License

Released under The MIT License (MIT)
Copyright (c) 2013 Skeel Lee (http://cg.skeelogy.com)