Nature of Code - Autonomous Agents examples in 3D
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
NOC_6_01_Seek
NOC_6_01_Seek_trail
NOC_6_01_Seek_trail_MeshLine
NOC_6_02_Arrive
NOC_6_03_StayWithinWalls
NOC_6_04_Flowfield
NOC_6_05_PathFollowingSimple
NOC_6_06_PathFollowing
NOC_6_06_PathFollowing_MeshLine
NOC_6_07_Align-Separate
NOC_6_08_SeparationAndSeek
NOC_6_09_Flocking
NOC_6_13_CrowdPathFollowing
.gitignore
LICENSE
README.md
demo.gif
image.png
index.html

README.md

Nature of code 3D

Chapter 6. Autonomous Agents

Follow a path (3d mesh lines)

Daniel Shiffman's Nature of Code examples in 3D, ported to javascript (ES6) using Three.js.

I did this mostly to learn something more about 3D programming and Three.js, while enjoying the beautiful work of Daniel Shiffman again (I had already read his book based on Processing). All this is reeeeeeally basic and could be greatly improved. Comments and pull requests are very welcome: please open an issue.

DEMO

TODO: Create a GPGPU version of some examples, using the GPU to calculate motion.

TODO: Animate the trails using a solid 3D line with materials and shadows (instead of a basic webgl line or a THREE.MeshLine by @thespite).