Exploding a point cloud

You can create many interesting effects with point clouds. You can, for instance, create water, smoke, and cloud effects. In this recipe, we show you another interesting effect you can create with points. We'll show you how you can explode a point cloud where each point's path is based on its normal vector.

Getting ready

For this recipe, there aren't any steps that need to be taken before we start looking at the recipe. We've provided an example where you can see the resulting explosion in action. Open the 06.06-explode-geometry.html example in your browser and you'll see a screen that looks like the following screenshot:

Getting ready

Get Three.js Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.