From Blender to the Web - the Journey of a 3D Model

Rate this content
Bookmark

Creating 3D experiences in the web can be something that sounds very daunting. I’m here to remove this idea from your mind and show you that the 3D world is for everyone. For that we will get a model from the 3D software Blender into the web packed with animations, accessibility controls and optimised for web use so join me in this journey as we make the web more awesome.

Sara Vieira
Sara Vieira
26 min
17 Jun, 2022

Comments

Sign in or register to post your comment.

Video Summary and Transcription

Today's Talk is about Blender and 3D in the web, covering topics such as rendering engines, material properties, exporting models, using React Fiber, lighting and shadows, state management, and adding wobbling effects. The speaker demonstrates how to create a 3D cupcake model and customize its appearance and behavior using React and Blender. The Talk also touches on topics like frosting selection, color changes, and adding orbit controls for interactive movement.

1. Introduction to Blender and 3D in the Web

Short description:

Today we will be talking about Blender and 3D in the web. I made a cupcake in Blender and we're going to put it on the web. I will not be teaching you how to use Blender, but you'll get a visual idea of the UI. Blender is a 3D software that is free and open source. It also does other things like 2D and video editing. Blender 2.8 looked worse, but now it looks better. It has two different rendering engines.

Thank you. Does anyone want to go first. OK, so I don't even have 20 minutes. I have 16. OK. So today we will be talking about Blender and 3D in the web. Is everyone excited about that? Your nerds, just saying. OK, cool. So that's about it. This little cupcake, I made it in Blender, and we're going to put it on the web. OK. So who is this person telling you to put that cupcake on the web?

OK, so let's get started. Again, my name is Tara, I'm originally from Portugal. I live in Berlin, because I like complaining, and bad airports. I work as a front-end developer at remote. Yes, the company is called remote, and yes, the company is remote. I love to do stuff in 3D. I picked it up during the pandemic like all of us picked up something random. I picked up 3D. I picked up 3D. It's great. I also did this in blender, so yes, that's about it. This is going to be divided into two parts. First of all, we're going to go into blender, and then we're going to pick up that and go into the web. I will not be teaching you how to use blender, because it's painful, but you get a visual idea of the UI. So who in here knows what blender is? It's a 3D software. It's free and open source. They also do other things, like 2D, video editing, and stuff like that. It's mostly known for 3D. Some 2D, I would not use it for video editing. Let's do it. Who in here used blender before? Wow, okay. So you'll actually know if I'm saying something wrong. No? Let's do it. Why not? Here's my scene. Before I start, let me start here. This is the cupcake that I made in blender. It's very cute. All my talents are there. That's it. That's my talk. Goodbye.

So this is blender, right? If you've used it before, 2.8, it looked way worse. So much worse. Like Photoshop CS1 worse. It looks better now. It looks way better, but if you want it to look better, just please Google blender 2.79. Because this is so much better. One thing I want to say about blender fast. It has two different rendering engines.

2. Blender Rendering Engines and Material

Short description:

One is called eevee. It's good for low-end computers. Macbooks don't have real graphics cards. They're just embedded into the thing. They're not real. They're fake. Cycles is a ray-tracing engine. It's time-consuming on a Mac. I do not use this computer for Blender. Let's change the material. Material is a color. You can choose the base color. Let's make it purple. Roughness is how rough a material is. It's incredible stuff right there. You can think of a mirror.

One is called eevee. Unir has heard or used Unity or Unreal engine. whatever. Those are real-time rendering engines. They don't actually calculate every light. They just pretend to know what the light is. It was introduced in 2.8. It's good for low-end computers. Macbooks don't have real graphics cards. They're just embedded into the thing. They're not real. They're fake. This is eevee. If I click the thing, it takes a bit. This is eevee. If I move around, you can see that it's, like, it looks real, but not really. So, for eevee, these are things that are checked during, like, as soon as it makes it, it tries to figure out what the hell is happening. There's also one called cycles. This is where my computer does weird sounds. So, cycles is completely different. The way cycles works is it's a ray-tracing engine. You don't have to remember any of these words. But the way it works, every beam of light is calculated and where it hits and where it goes, and it hits the other thing and does the thing, and that's very time-consuming on a Mac, and the Mac doesn't. You can't find anything that is actually causing crashes, crash cries, any of the sounds that you didn't know existed. Even though you have npm installed things before. Yeah. I'm not going to say that my computer has crashed during Blender. And before I go on, I want to say that I do have a Linux computer at home. I do not use this computer for Blender. You can, but it's very painful. Like, you just, I don't know why. Okay. Yeah. Cool.

So, final thing that I want to show you here in Blender is, We want to change the material. Material is a color. And let's come here. And let's come here. And you have a base color here. And you can just choose it. Let's make it purple or something. Beautiful. Isn't that beautiful? And I want to show you two other things that are kind of important if you download something from the Internet, or you decide to do it yourself if you want to cry. Sure. So, roughness is how rough a material is. I know. It's fucking mind-blowing. I know. It's incredible stuff right there. So, you can think of a mirror.

Check out more articles and videos

We constantly think of articles and videos that might spark Git people interest / skill us up or help building a stellar career

TresJS, a declarative way of creating 3D scenes from Vue components
Vue.js London 2023Vue.js London 2023
27 min
TresJS, a declarative way of creating 3D scenes from Vue components
Meet TresJS ▲ ■ ●, a declarative way of bringing the magic of ThreeJS using everyday Vue Components and composables. Think of it as React-three-fiber or Lunchbox but without the need of a custom renderer. It just works.Are you ready to add a new dimension to your Vue Apps?
From Blender to the Web - the Journey of a 3D Model
React Advanced Conference 2021React Advanced Conference 2021
27 min
From Blender to the Web - the Journey of a 3D Model
Top Content
Creating 3D experiences in the web can be something that sounds very daunting. I'm here to remove this idea from your mind and show you that the 3D world is for everyone. For that we will get a model from the 3D software Blender into the web packed with animations, accessibility controls and optimised for web use so join me in this journey as we make the web more awesome.
Build a 3D Solar System with Hand Recognition and Three.js
JSNation 2022JSNation 2022
36 min
Build a 3D Solar System with Hand Recognition and Three.js
Top Content
We live in exciting times. Frameworks like TensorFlowJS allow us to harness the power of AI models in the browser, while others like Three.js allow us to easily create 3D worlds. In this talk we will see how we can combine both, to build a full solar system, in our browser, using nothing but hand gestures!
Scaling React-Three-Fiber Applications beyond the Hello World
React Summit 2023React Summit 2023
20 min
Scaling React-Three-Fiber Applications beyond the Hello World
A lot of recent talks at other conferences have talked about how to start using React and THREE.js to create 3D experiences on the web. In my career I've built several complex applications using those technologies, including a big Figma-like 3D editor, and I've learnt a lot of patterns and tricks on how to make it actually fast and scalable. Unfortunately, though, nobody is also talking about those tricks an what it really takes to build an rendering engine similar to the one that Figma uses.
My goal with this talk is to give people an overview of the challenges that may arise when you try scaling your application, and what are some lesser known tricks to overcome them: instancing, memory usage reduction techniques, SDF-based text rendering, GPGPU and tree data structures. Everything of course done with Javascript, React and THREE.js.

Workshops on related topic

How to make amazing generative art with simple JavaScript code
JS GameDev Summit 2022JS GameDev Summit 2022
165 min
How to make amazing generative art with simple JavaScript code
Top Content
WorkshopFree
Frank Force
Frank Force
Instead of manually drawing each image like traditional art, generative artists write programs that are capable of producing a variety of results. In this workshop you will learn how to create incredible generative art using only a web browser and text editor. Starting with basic concepts and building towards advanced theory, we will cover everything you need to know.
Introduction to WebXR with Babylon.js
JS GameDev Summit 2022JS GameDev Summit 2022
86 min
Introduction to WebXR with Babylon.js
Workshop
Gustavo Cordido
Gustavo Cordido
In this workshop, we'll introduce you to the core concepts of building Mixed Reality experiences with WebXR and Balon.js.
You'll learn the following:- How to add 3D mesh objects and buttons to a scene- How to use procedural textures- How to add actions to objects- How to take advantage of the default Cross Reality (XR) experience- How to add physics to a scene
For the first project in this workshop, you'll create an interactive Mixed Reality experience that'll display basketball player stats to fans and coaches. For the second project in this workshop, you'll create a voice activated WebXR app using Balon.js and Azure Speech-to-Text. You'll then deploy the web app using Static Website Hosting provided Azure Blob Storage.