# 3d Scrolling terrain with music w/ P5js

**URL:** <https://discourse.processing.org/t/3d-scrolling-terrain-with-music-w-p5js/20105>\
**Category:** Libraries\
**Created:** [April 24, 2020, 5:41pm UTC](https://discourse.processing.org/t/3d-scrolling-terrain-with-music-w-p5js/20105 "2020-04-24T17:41:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![moscardo](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/moscardo/32/1742_2.png) [@moscardo](https://discourse.processing.org/u/moscardo)\
**Post date:** [April 24, 2020, 5:41pm UTC](https://discourse.processing.org/t/3d-scrolling-terrain-with-music-w-p5js/20105/1 "2020-04-24T17:41:25Z")

</div>

Hi guys,  
I’m a newbie of P5js and I would like to create a scrolling terrain in 3D.

Here’s the [link](https://github.com/ariutti/3DScrollingTerrain) to my code repo. I’m using the sound to generate the terrain shape (FFT bins) but I’ve some problems in rendering it.

Just starting with simple lines to render the terrain I get this error in a never ending loop freezing the browser:

`p5.Vector.prototype.mult: n is undefined or not a finite number`

why?

Thank you so much for your support  
na
