How to Make a 3D Glass Effect using Three.js and Next.js
ฝัง
- เผยแพร่เมื่อ 11 ก.ค. 2024
- A website tutorial on how to create a Glass looking Material with distortion by using the MeshTransmissionMaterial with Three.js, React, React Three Fiber and Next.js.
Source Code / Live demo:
blog.olivierlarose.com/tutori...
00:00 Intro
00:19 Asset Preparation
3:01 Rendering the Canvas
5:16 Rendering the mesh
6:47 Adding lights
8:25 Adding responsiveness
8:49 Rotating the mesh
9:33 Adding the text
11:14 Adding the Transmission Material
13:30 Outro
More animations: blog.olivierlarose.com/
Follow me on Twitter: / olivierlarose_
Discord Channel: / discord
Thanks for watching!
#react #nextjs #awwwards #gsap #framer #motion
THANK YOU for using Blender, and not Spline! What can i say? great video once again Olivier. Never dissapoints, always valuable tips and tricks. Class A for sure.
So appreciate to have such great content in this space. Looking forward to your course man!
Beautiful work man. I checked out your website and blog. Love your work!
Great tutorial as usual!
So great to have this intro to ThreeJS/drei. Would love to see more on this subject of 3D effects / particle animations etc
Amazing tutorial as always 🤩
Thank you very much for this!
Great Tutorial. Thanks. Subscribed.
Amazing man , thank you ❤️🎉
You share so much more than is required in your videos, providing excellent context - thank you so much Olivier
I'm a college student aspiring to become an engineer in Japan and I'm always able to catch up on the great content on your blog and youtube! I will continue to support you!
Thanks for this, and well done on creating such awesome content! I've recently jumped back in Blender doing some designs and animations for a Next.js website of a start-up, and one of the ideas was to replace a video file with Three.js. At the time I had too much to do, but after seeing this I know I can do it in a day or two. Keep it up!
Much aprriciated video!
this channel is sick... keep spreading joy
Cheers
Wait, did you make Josh's graphics???
@@gadoosher oh hey, i love Josh as a programmer, so i didnt make it. i am his fan. i got his animated charecter from google and edited in Canva
@@mirjalol49 Oh gotcha! His graphics are so dope I was going to geek out haha. Honestly everything he does is so dope. Cheers!
@@gadoosher yes he is next level person. everything he does is dope as u said
pff ..this channel is gold..
❤❤ Thanks for this tutorial
Love it ❤🔥
BEAUTIFUL!
i love your videos man! Great work!
Cheers my friend!
i need this, cheers, bro
This is great! As someone who is familiar with R3F and Three.js but not as familiar with R3F dynamics with Next.js I'd love a video on that :)
Very good!!
loveit men really helps a lot😉
Thank you! would love a starter tutorial which shows us how you got to the initial state - not sure on how to set this up by myself with the intial folder structures. Amazing stuff though!
Thank you!
BANGER VIDEO
This is dope 🎉🎉🎉🎉
hey man the content has been fire. do you think you can do a video or two on some preloader screens you like using next and framer motion
Awesome inwas about to start a similar project. Ty
thank you
Those textures can really make minimalist designs stand out
For sure!
youre the goat.
Great tutorials - keep cooking
kewl ❤💯
Hi! Loved the video. It seems that you forgot to include the demo link in the description. Keep up the great work ❤
Thanks for the heads up! I've added it
niceee
nice
Hiiiii Oliver! Im expecting your Framer Motion course! When it would be able to start???
🔥🔥🔥
How does it work with typescript? Because in a .tsx file the doesnt work and the mesh.current might be equal null
Only cool channel
Olieeee, can u please show how to make share image transition, like we are in one page, then when we go to another, the image is animating ang appears in other page, how is it done? 😢😢
Bro please make a video or add a blog post on
How to use Locomotive scroll and GSAP scrolltriger both in React.js
Noted!
One question , why don't you use no code toolss for these kind of cool animated websites , i am really confused :') what to choose
Is there a way to do glass effect with baking ?
Very good job! Your way of explaining was simple and direct, I loved it.
But, I have a question. Is it possible to replace Text with Html and keep the same effect? I've been trying for hours and I can't.
The reason I try to use Html is that it allows browser translation.
Once again, great channel!
Hey! Glad you liked the video. Unfortunately your text needs to be inside the webGL context if you want it to be distorted by the shader
🎉🎉🎉🎉🎉🎉🎉🎉
10:15 anyone know how to fix the in next 14, the bug still exists
how can i hide the leva controlls?
There exists a attribute for that
I want to have an impact in everything I can
can I have separate group for text and the model??
Yes!
@@olivierlarose1 thanks!! and also could make tutorial where we can move the model based on the movement of the mouse ??
Noted!
Can I do this h1 instead of
Not if you want the distortion to work
I don't know why he doesn't want to work in nextjs@@olivierlarose1
I don't know why he doesn't want to work in nextjs@@olivierlarose1
I’m starting to notice that even though these designs are nice and the functional aspect of them are lacking..
Are they even functional to begin with?
Most awwwards type websites are not meant to be “functional”. They definitely put form over function and are meant to have an artistic and visual impact rather than be something functional that you use repeatedly like a product
Why don't we want these components rendered on the server?
Because you don't want unnecessary load on your servers 😂, it's gpu processing on client side
ugh i dont know next... title should be Next not react, you lost some time going back and forth because of nextjs not focusing on resault
Good point! I've adjusted the title
1:55 Waht visualizer? where can i find this visualizer? im noob and confused pls hepl
i got it :) lol
1 time a tutorial without asking questions, where evrything is explained.... i cant even type so much. very sad
dynamic import from next.js THANK YOU! @rect-three/fiber + @react-three/drei is an admirable universe