- Видео 9
- Просмотров 168 065
Gabriel Molter
Канада
Добавлен 5 авг 2013
Hey, I'm Gabriel and welcome to my channel, here I'll be exploring technologies and putting them into practice by building real-world projects. Whether you're a beginner or an experienced programmer, I'm sure you'll find interesting videos here. So if you're interested in web development, please consider subscribing and joining me on this journey!
GitHub Copilot vs AWS CodeWhisperer (for WEB DEV)
Amazon just made CodeWhisperer available for free. So how does it compare to GitHub Copilot? Is it worth switching?
Well, that's what we're testing on this video.
🔗 References
GitHub Copilot: github.com/features/copilot
Amazon CodeWhisperer: aws.amazon.com/codewhisperer/
👨💻 Me
Email: me@gabrielmolter.com
GitHub: github.com/gjmolter
🎨 My Editor:
VS Code: code.visualstudio.com/
Theme: Dracula
#githubcopilot #aws #codewhisperer #aiprogramming #ai #artificialintelligence #coding #webdeveloper #webdevelopment #versus #comparison #vscode #visualstudiocode #copilot #openai
Well, that's what we're testing on this video.
🔗 References
GitHub Copilot: github.com/features/copilot
Amazon CodeWhisperer: aws.amazon.com/codewhisperer/
👨💻 Me
Email: me@gabrielmolter.com
GitHub: github.com/gjmolter
🎨 My Editor:
VS Code: code.visualstudio.com/
Theme: Dracula
#githubcopilot #aws #codewhisperer #aiprogramming #ai #artificialintelligence #coding #webdeveloper #webdevelopment #versus #comparison #vscode #visualstudiocode #copilot #openai
Просмотров: 1 237
Видео
FOUR cool AVAILABLE domains and what I would do with them
Просмотров 74Год назад
Have you ever stumbled upon a domain and had a business idea right there? Well, if you’re not pursuing it, why not inspire other people… put your ideas in the comments: #domains #business #idea #inspiration #creative
ChatGPT is the last nail in Lodash's coffin
Просмотров 387Год назад
Lodash has been slowly becoming obsolete for years now, but I believe ChatGPT (and GitHub Copilot, or other code-writing AIs) will finally make people give up on Lodash for good! 🔗 References "You don't need" on GitHub: github.com/you-dont-need Lodash: lodash.com/ DeepClone Package Size: bundlephobia.com/package/lodash.clonedeep@4.5.0 👨💻 Me Email: me@gabrielmolter.com GitHub: github.com/gjmolt...
I've created a CHROME EXTENSION that makes MEXICO SEPIA on Google Maps
Просмотров 138Год назад
Have you ever thought about creating a Chrome extension? Today I want to show you how easy it is, by tackling a little meme project. We're going to plan, develop and publish a chrome extension in less than 5 minutes of video time. 🔗 References Project code on GitHub: github.com/gjmolter/hollywoodian-mexico-extension Extension on the Chrome Web Store: chrome.google.com/webstore/detail/hollywoodi...
Adding a 3D model to a website using THREE.JS
Просмотров 166 тыс.Год назад
Discover the power of 3D graphics in web development! In this step-by-step tutorial, we'll show you how to easily add a stunning 3D model to your website using the popular JavaScript library, THREE.JS. Perfect for beginners and experienced developers alike, we'll dive into the fundamentals of 3D rendering and scene management, making your website more immersive and interactive than ever before!...
Does GITHUB COPILOT know POP CULTURE?
Просмотров 512 года назад
If you haven't tested Copilot yet, please pause this video and go check it out, but remember: if you're still learning the basics of web development, do not use Github Copilot as a crutch, as it will make it harder for you to internalize what you're learning. 🔗 References Github Copilot: copilot.github.com/ 👨💻 Me Email: me@gabrielmolter.com GitHub: github.com/gjmolter 🎨 My Editor: VS Code: cod...
Image DUOTONE effect (CSS ONLY)
Просмотров 6972 года назад
How to create the Duotone (also called Gradient Map) effect in less than 3 minutes using only CSS. 🔗 References Mix-Blend-Mode CSS Property: developer.mozilla.org/en-US/docs/Web/CSS/mix-blend-mode Duotone Effect using Photoshop: helpx.adobe.com/uk/photoshop/how-to/add-duotone-color-effect.html 👨💻 Me Email: me@gabrielmolter.com GitHub: github.com/gjmolter 🎨 My Editor: VS Code: code.visualstudio...
i didnt get the pathing of the file, when you have to load the file.
Hi for some reason its only showing the eye model, I tried changing the 'Object to render' value to dino but it doesn’t work. Please help
Nevermind I got working, Great Video! Thanks!
How do i add more lights my screen is just black
Great video, clearly explained and it works. Thank you. Using Visual Studio Code on my PC I needed to install the Live Server extension to display the html webpage running the Java script. Adobe Dreamweaver running on my Mac seems to have live server functionality built in.
He is real developer
It doesn't show me anything what could be the problem!!
If you're using VS Code, try installing the Live Server extension. It's probable that your computer isn't serving the 3D model file in the path the code is looking for.
I have copied the code straight from github but all I get is a black screen with 'A simple three.js app' at the top :(
If you're using VS Code, try installing the Live Server extension. It's probable that your computer isn't serving the 3D model file in the path the code is looking for.
what does the scene.bin file do? replacing the scene.gtlf file doesnt just replace the model, so i'm assuming that's related? what does it do and how do i make/get one? thanks in advance.
As far as I understand it, the scene.bin file stores the data that's too big to fit the scene.gltf, but is still needed, in in binary format. Both files must match for the model to work properly. To make these files, export from a 3D software in glTF format. To get them, you can download from plenty of sites, including the one I showed in the video (just make sure to download in glTF format)
Very nice please more videos
ruclips.net/user/shortsygPrY3jAkJk?si=QOF2BL8SYoh4EhgI
if i download other models, they are not shown. though the dino and eye are working
Make sure the model file's extension and path are correct, then if that's still not working, try playing with the camera's X, Y and Z values, as the model might be somewhere else in the scene but not directly in front of the camera.
clean and sharp! love this!
thanks for the video
Can this be done to a Shopify app?
Yep, this should work in any type of website! Thought, if you're using Shopify's Hydrogen (instead of Liquid), you should probably use the React Three Fiber lib instead, but the underlying logic will still be the same.
I think this video is a great starting point for whoever wanna try to mess with models in three.js (such as myself), great job my guy!!!
Thank u, amazing tutorial bro, however, how can object only limit like a canva and not all the screen?
I mean, you can make the Canva take the whole viewport size with CSS, doesn’t that work?
somehow it doesnt work, i downloaded everything from guithub but it only renders a black screen with the header
Yeah, that’s probably an issue with the file pathname, I wrongly assumed everyone would be running this in a server-like environment, with the project folder at the root. I’m pretty sure I’ve given detailed instructions on how to solve it in another comment here, but you basically have to change the 3d model file path and it will work
somehow it doesnt work for me, i literally downloaded everything on github but the eye still doesnt show up, its just a black screen with the header
that means the compatibility related, bro.
Bro it's showing the same for me
@@adityapatki9494 are you sure you're pointing to the right file path?
Which font style do you use in your Vs code ?
I use Fira Code with ligatures activated
video is so cool but the final index.html file in your repository didn't work once launched on google chrome from my side any idea why?
You might either need to change the path of the 3d models or run the index.html file using some king of server software, like VSCode's Live Server Extension
May I know what's the purpose of "Dino"? The example unable to work properly without this "Dino" thing. Thanks.
It's the selector I'm using to choose which file to render, either "dino" or "eye". You may very well just hardcode that on a real project
Muito top mano, ajudou dms brasil no topo sempre
ive downloaded other models from sketchfab and included in project directory but when i link them and load they are not coming in the website what may be the reason, i think all model must work, its same format as u mentioned
They should all work, but the settings for each model can be wildly different. So make sure you play around with light sources, camera positions, object materials, etc. Once you get something to appear on the screen you can start tweaking the values and hopefully you'll be able to adjust it the way you want it.
@@GabrielMolterIO yea man understood it thank you for the info
if my project is in react js , how do i add this in my homepage?
For React projects I'd use @react-three/fiber and maybe "useGLTF" from @react-three/drei to load the GLTF model. I might make a video on that in the near future.
Is it possible if i made a customization box changing color and rendering text. will it reflect on model also with changing color and text???
Yeah, I remember seeing something similar to that on the THREE.JS documentation, maybe take a look at the examples there and you can find a path to follow
I can't get it to work.
Do you get an error message on the console or something like that?
Can I create scroll trigger animations for this 3d model?? Please answer
Yeah, just set your scroll event listener, save the scroll position into a variable and use that variable on the animation loop to make whatever animation you want
Hello! Thank you very much for this, I've been watching for a tutorial for days and I wasn't able to find it until now! I have a problem and it's that I can see the preview of the webside with the extension 'Live Preview', but when I run it on browser the 3Dmodel doesn't appear. Could someone help me with that, please? 🙏
Hey, that's probably related to the import path of the model file. It should work if you add ./ before "models/" on the file path. If I remember well, I've given a slightly more detailed explanation in a previous comment here some days ago.
thanks for it. got lead for a jump start. thanks bud
Very awesome job with this video! The only thing is that I can only view the eyeball model. Do I need to create another webpage and change the code so that I can view the dinohead?
You should be able to switch to the dino by changing line 24: let objToRender = 'eye'; becomes let objToRender = 'dino';
Excellent! Thank you very much!
Thank you so much, this is a great tutorial!
how are running the project ?
I use a little VSCode Extension called "Live Server", which I highly recommend. You could also simply open the index file with a browser. Keep in mind that, as it is, the code loads the 3D models using paths relative to the root, so to run it without starting a local web-server, you'd have to add a "./" before the file path, to make it relative to the current folder. `models/${objToRender}/scene.gltf` would have to be `./models/${objToRender}/scene.gltf` Again, if you use the extension that change isn't needed.
@@GabrielMolterIO Hi, I have the same problem, I changed "loader.load( `./models/${objToRender}/scene.gltf`," but I still get a black screen, when I inspect the page in Chrome, it shows the container3D div has a height of 0, but is the same width as the screen
@@angelinepoissonneau do you get an error on the console or something?
On mine the screen is black, I've tried increasing the light, but it doesn't help, and it's showing this code in the console: "SyntaxError: Unexpected token '<', "<!DOCTYPE "... is not valid JSON at JSON.parse (<anonymous>) at GLTFLoader.parse (GLTFLoader.js:344:17) at Object.onLoad (GLTFLoader.js:239:11) at three.module.js:43638:38"
u fixed this?
Amazing tutorial, thanksss
perfect
when i add the model its not perfectly centred. i even tried setting position and using different models but got same problem. when i add model its not on origin , its at +ive y-axis. anyone know about this problem ?
You know when we set camera.position.z on the video? Did you try changing the positions for camera.position.x and camera.position.y as well? I think that might work for you!
@@GabrielMolterIO yes i know , i had to set values of camera and of position in thousands. another way was to scale down my model. i was wondering if this happens every time for everyone. it would have been great if imported model were just originate from position 0,0,0. (they actually are but the appear at some other position away from origin 🥲).
@@ahmadshoukat-c8y I don’t actually know the reason for that, but in my experience it was rare to find a model that was nicely centralized at 0,0,0 by default. 🤷🏻♂️
@@GabrielMolterIO true , it means its the same case everyone. but there is too much hit and trail in threeJs 😮💨 beside knowing dimensions
cooooooollllll, we need more of three.js , keep it up
hey um how can I add a background image, in my site I can change colors only
If the background doesn't interact with the model you can just add it with CSS in element you want, like: body { background-image: url(path_to_your_img) }
@@GabrielMolterIO it isn't working I don't know why, in a few forums they said you have to add new scene and camera
Hello! Could you please tell me what format of the 3D model is needed to upload it to the site?
This video uses GLtf format, but you can use a bunch of others as well, just take a look at the documentation on loaders.
right at the end you type some weird sort of arrow. That symbol does not exist in ASCII so it would be useful to know how you managed to get half the special characters you magically paste in, leaving us to type it up wrong, and it won't work. I guess you aren't supposed to type it out, just copy paste from somewhere, which will remain a secret. Super.
If I understood what you meant, what you are talking about are legatured, those are basically more characters combined for a different look. You can enable them in VS in the options, for the arrow is just = and > combined that look like an arrow
I have downloaded everything and copied the exact folder names but it just shows a black screen with the title
I've heard some people are having the same issue. I believe it's related to how the model file path on the code is relative to the root of the project, but if you just open it without using some kind of localhost server, it will look for the root of your computer's file system, which won't work... Try running it with something like the "Live Server" extension for VSCode.
i used live server extension but still not working @@GabrielMolterIO
Sorry, I tried to open your .html file with edge and crhome but the modeling doesn't work and the same thing happens with my files, I don't know if I use a program for local host or not
Hey, I missed that on the video, but I believe the issue you're having is related to how the model file path on the code is relative to the root of the project, but if you just open the .html file, without using some kind of localhost server, it will look for the root of your computer's file system, which won't work... Try running it with something like the "Live Server" extension for VSCode.
@@GabrielMolterIOok so we have to run it with node or python to create a http socket or else we can make a flask or react app of it ??
hey, how do you go about obj files? please help
You’d have to replace the glTF loader with the OBJ one, just take a look at the ThreeJS docs: threejs.org/docs/#examples/en/loaders/OBJLoader
Hi. Thank you for your explanations. This is exactly what I was looking for. I'm a newbie in Javascript. I'm still able to understand all you said. I guess I will I to watch your video again and again and again....
hi where did you get the background music
I believe that one is from RUclips's free library, if I remember correctly
Do i have to install anything only my computer (Mac) to be able to run it locally via VS Code and debugging in Chrome?
Not really, just dragging the file to Chrome should open it without issues. I use a VSCode Plugin called "Live Server", which makes it a bit faster.
I think I finally found a way to give my ai home assistant a “face” . Thank you
Hahaha this sounds pretty cool
Great and quick breakdown! Thank you.
Thanks for this video. It would be very helpful if you do this for 3D House model
No matter what's the model, the code should work as long as it's exported in glTF
When i use my models in your project they did not show on website
I'd start by checking if there are any errors on the console. Also, is the model exported in the correct format? I'd also double check the camera position, it might have to be very different from what I'm using on the video, depending on the model you're using.