flowforfrank / webtips

https://webtips.dev
1 stars 0 forks source link

getting-into-three-js #13

Open utterances-bot opened 2 years ago

utterances-bot commented 2 years ago

Getting Into Three.js - Weekly Webtips

Get your weekly dose of webtips

https://www.webtips.dev/getting-into-three-js

shoshinobi commented 2 years ago

Great intro tutorial! Made a lot of sense to me as a 3D generalist branching into webGL. One thing that freaked me out is the #Rendering the scene code is still only showing the code to add the mesh. Did some digging and replaced it with:

function animate() { requestAnimationFrame(animate); renderer.render( scene, camera ); } animate();

flowforfrank commented 2 years ago

Great intro tutorial! Made a lot of sense to me as a 3D generalist branching into webGL. One thing that freaked me out is the #Rendering the scene code is still only showing the code to add the mesh. Did some digging and replaced it with:

function animate() { requestAnimationFrame(animate); renderer.render( scene, camera ); } animate();

Hey @assembly4d, Thank you for the heads up! Yes looks like this was a copy-paste issue. I've updated the code to reflect the animate function