Creating a smoothly moving sphere with Three.js
Posted: Wed Dec 04, 2024 7:36 am
Introduction
Three.js is a JavaScript library that makes it easy to draw 3D content on a web page. In recent years, the number of web pages using 3D expression seems to be increasing. This time, I will use Three.js to create an animation of a smoothly moving sphere.
What we created this time
First off, here's what I created:
The 3D sphere moves smoothly, and you can change the movement of the sphere by moving the controller at the top of the page left and right.
Here is the code I wrote this time.
In this statement, the vertex values are recalculated using the noise calculation method described in SimplexNoise.js.
An environment where you can use what you like
I've always loved drawing illustrations, and belgium b2b leads in my portfolio during my job search, I included illustrations in addition to my design work. I
told my senior about this, and one day he asked me if I would like to try drawing illustrations for a web page. I was a little nervous at first because I had just joined the company, but since it was a rare opportunity, I took on the challenge and was able to complete it successfully. I think one of the
great things about UNTYPE is that it provides an environment where even new graduates can utilize their strengths in this way.

lastly
Over the past six months, I have become aware of many things that I never thought about when I was a student. I
am able to feel my own growth through my daily work, which is very enjoyable. I
hope this will be helpful for those who are considering joining UNTYPE.
We are recruiting all year round.
We would be delighted to meet someone who shares our vision and philosophy.
By recalculating the normal vector for the updated vertices, the light will be reflected properly.
That's all for the main points.
It seems that you can freely change the appearance of the sphere by changing the input value and ratio value, so if you're interested, please give it a try.
}
The CSS contains the CSS for the canvas element and the controller.
Three.js is a JavaScript library that makes it easy to draw 3D content on a web page. In recent years, the number of web pages using 3D expression seems to be increasing. This time, I will use Three.js to create an animation of a smoothly moving sphere.
What we created this time
First off, here's what I created:
The 3D sphere moves smoothly, and you can change the movement of the sphere by moving the controller at the top of the page left and right.
Here is the code I wrote this time.
In this statement, the vertex values are recalculated using the noise calculation method described in SimplexNoise.js.
An environment where you can use what you like
I've always loved drawing illustrations, and belgium b2b leads in my portfolio during my job search, I included illustrations in addition to my design work. I
told my senior about this, and one day he asked me if I would like to try drawing illustrations for a web page. I was a little nervous at first because I had just joined the company, but since it was a rare opportunity, I took on the challenge and was able to complete it successfully. I think one of the
great things about UNTYPE is that it provides an environment where even new graduates can utilize their strengths in this way.

lastly
Over the past six months, I have become aware of many things that I never thought about when I was a student. I
am able to feel my own growth through my daily work, which is very enjoyable. I
hope this will be helpful for those who are considering joining UNTYPE.
We are recruiting all year round.
We would be delighted to meet someone who shares our vision and philosophy.
By recalculating the normal vector for the updated vertices, the light will be reflected properly.
That's all for the main points.
It seems that you can freely change the appearance of the sphere by changing the input value and ratio value, so if you're interested, please give it a try.
}
The CSS contains the CSS for the canvas element and the controller.