Add 3D Model to WebSite in 5 Minutes - Three.js Tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 8 ก.พ. 2025

ความคิดเห็น • 413

  • @thes_eus
    @thes_eus 3 ปีที่แล้ว +12

    Thanks, sir. Now I'm in love with this piece of technology and willing to learn everything it offers!

  • @jessepinkman725
    @jessepinkman725 5 ปีที่แล้ว +4

    One of favourite web development channel. Thank u so much.

  • @abazur7742
    @abazur7742 5 ปีที่แล้ว +124

    could you make a whole series about three js ?

    • @Omar-vz9el
      @Omar-vz9el 5 ปีที่แล้ว +9

      From beginner to advanced. I would definitely be watching them all!

    • @Kaybe23
      @Kaybe23 5 ปีที่แล้ว +2

      Here for ya bra:
      th-cam.com/video/ABV1mK1CGOY/w-d-xo.html

    • @abazur7742
      @abazur7742 5 ปีที่แล้ว +2

      but its very basic

  • @promise4599
    @promise4599 5 ปีที่แล้ว +84

    Bro, you took my development skills to the next level, thank you ♥️

    • @doniwirawan7191
      @doniwirawan7191 2 ปีที่แล้ว

      i got blank screen, do you mind to share the source code?

    • @promise4599
      @promise4599 2 ปีที่แล้ว +2

      @@doniwirawan7191 sorry brother, I no longer develop websites and no longer have the source code.

    • @doniwirawan7191
      @doniwirawan7191 2 ปีที่แล้ว +2

      Okay, because of you are the top commenters i hope anybody else will read this, please share your source code link, i wanna look at them🙏

    • @darkerthansuede2439
      @darkerthansuede2439 2 ปีที่แล้ว +3

      @@promise4599 I'm so curious, why did you stop developing?

    • @promise4599
      @promise4599 2 ปีที่แล้ว +1

      @@darkerthansuede2439 Became a day trader :)

  • @marquisegbunike5773
    @marquisegbunike5773 ปีที่แล้ว

    best takes is to update this link on this project for easy accessibility. Keep the good work.

  • @iamfpsk8648
    @iamfpsk8648 4 ปีที่แล้ว +29

    This isn't working anymore as Three.js changes frequently, can you please upload an updated video please?

    • @pradiptasarkarekagga1970
      @pradiptasarkarekagga1970 3 ปีที่แล้ว

      exactly....m completely new to this...and I was ripping my hairs off...I did exactly as this tutorial....and now all it shows is a grey colored screen...dats it

    • @iamfpsk8648
      @iamfpsk8648 3 ปีที่แล้ว +3

      @@pradiptasarkarekagga1970 bro I was doing my final year project on it, one thing I learnt about three.js is no video will help you, go ask your problems in forums of three.js and read the docs and find your desired syntax or problem in docs.

    • @tharaniv6267
      @tharaniv6267 3 ปีที่แล้ว +2

      @@iamfpsk8648 I also see this video for my project😂😅

    • @iamfpsk8648
      @iamfpsk8648 3 ปีที่แล้ว +1

      @@tharaniv6267 don't go for it, read docs.

  • @bramstultjens9735
    @bramstultjens9735 4 ปีที่แล้ว +6

    I love the Christmas piano music in the background

    • @arthurjimmy9388
      @arthurjimmy9388 3 ปีที่แล้ว

      I know Im asking randomly but does anybody know a method to get back into an Instagram account..?
      I was dumb forgot the account password. I appreciate any assistance you can give me!

    • @daltonwill4218
      @daltonwill4218 3 ปีที่แล้ว

      @Arthur Jimmy instablaster =)

    • @arthurjimmy9388
      @arthurjimmy9388 3 ปีที่แล้ว

      @Dalton Will I really appreciate your reply. I found the site on google and Im in the hacking process atm.
      Seems to take quite some time so I will reply here later with my results.

    • @arthurjimmy9388
      @arthurjimmy9388 3 ปีที่แล้ว

      @Dalton Will it did the trick and I now got access to my account again. I'm so happy:D
      Thank you so much, you really help me out :D

    • @daltonwill4218
      @daltonwill4218 3 ปีที่แล้ว

      @Arthur Jimmy no problem :D

  • @АлександрАндреев-ч9к
    @АлександрАндреев-ч9к 5 ปีที่แล้ว +9

    You are awesome! Thank you for lesson, from Moscow :)

  • @brendanyuki3784
    @brendanyuki3784 4 ปีที่แล้ว +1

    God-sent tutorial!!! made mine work!

  • @ashkanbashiri
    @ashkanbashiri 4 ปีที่แล้ว +12

    Anyone having trouble with this tutorial, just do the following steps:
    move these tree lines to the top of the init function:
    renderer = new THREE.WebGLRenderer({antialias:true});
    renderer.setSize(window.innerWidth,window.innerHeight);
    document.body.appendChild(renderer.domElement);
    and change the instantiation of the controls object from:
    controls = new THREE.OrbitControls(camera)
    to:
    controls = new THREE.OrbitControls(camera,renderer.domElement);
    you need to pass domElement.

  • @danielgiustiniperez4289
    @danielgiustiniperez4289 3 ปีที่แล้ว +6

    Man deadass used "Happy Birthday" as background music, what a legend xD

  • @akshayawate7239
    @akshayawate7239 5 ปีที่แล้ว +1

    Thnks red stapler.!!love from India

  • @hyvlog5476
    @hyvlog5476 ปีที่แล้ว

    like it, long time no see make about threejs....

  • @anantavikatan
    @anantavikatan 5 ปีที่แล้ว +9

    How to replace GLTFloader with OBJloader ? Please guide with the code for the same webpage

  • @supragyaykaval8096
    @supragyaykaval8096 ปีที่แล้ว +4

    the github link doesn't work anymore, help

  • @kartikjetani6481
    @kartikjetani6481 4 ปีที่แล้ว +9

    When I try I get this Error: Uncaught ReferenceError: THREE is not defined
    at GLTFLoader.js:1 Anyone with same problem?

  • @查陈晨
    @查陈晨 ปีที่แล้ว +5

    Thanks to your tutorial, but I have encountered some problems.
    I downloaded the same glft file as you and put it under the same folder as index.html like you did. And I also used 'npm install three' to update three, and then copied and pasted the files in it to the index.html consent folder, but after running the code at 2:57 in your video I only get a blank canvas, and no 3D model is shown.

    • @mevimavett
      @mevimavett ปีที่แล้ว

      same happens to me, did you find out what the problem was?

    • @jakeburnett6763
      @jakeburnett6763 8 หลายเดือนก่อน

      did anyone find a fix for a blank screen?

  • @issamkazmouz2387
    @issamkazmouz2387 4 ปีที่แล้ว +7

    Thank you, I try for doing the same code but there is no result ou output ... the same for example pikachu ...??

  • @KaiBuskirk
    @KaiBuskirk 3 ปีที่แล้ว

    searching for a wordpress solution thanks for the demo!!

    • @dabbopabblo
      @dabbopabblo 3 ปีที่แล้ว

      the solution would be not to use inferior software like word press cause it sucks so much

  • @nefhandmadestories
    @nefhandmadestories 3 ปีที่แล้ว

    Thanks for the video! Did anyone noticed that the song playing is happy birthday to you?

  • @hagar6908
    @hagar6908 5 ปีที่แล้ว

    If you get "THREE.GLTFLoader is not a constructor" or THREE.OrbitControls is not a constructor, it's probably a version issue. Here's the CDN links to the scripts:


    However, this only changed my GLTFLoader constructor error into a OrbitControls constructor error.
    I did fix it though and got the project working. I used the three.min.js and GLTFLoader.js CDN links along with an OrbitControls.js loaded locally.
    So, mine looks like this:


    Hope this helps!

  • @sabeetspongiinchowdhury3965
    @sabeetspongiinchowdhury3965 5 ปีที่แล้ว +8

    Hey Red Stapler!
    Thanks to your tutorial, I was able to get this running. I really appreciate that and I hope your sub count goes up even more!
    One question though, how would you modify the background so that it's completely transparent? I would like to manipulate the background using CSS.

    • @harthgornaltrask5957
      @harthgornaltrask5957 4 ปีที่แล้ว +3

      I am probably too late, since it has been 3 months since this question has been asked, but I'll answer as there may be other people who have the same question.
      To set the canvas's background to transparent, you simply need to add the line "alpha: true" (without quotation marks) to the object passed as parameter to WebGLRenderer. This property controls wether the canvas's background is to display alpha transparency or not. Default value is false, so that would result in a black background (or whatever is the color you chose for your Scene)

    • @sabeetspongiinchowdhury3965
      @sabeetspongiinchowdhury3965 4 ปีที่แล้ว +1

      @@harthgornaltrask5957 Hey there! Thanks for replying. I figured it out myself. It had something to do with the body element in Javascript but I think i used your solution too when i was trying to solve it myself 3 months ago. I'll link my github.
      github.com/sabeet/earthPort

    • @pratikgk9384
      @pratikgk9384 4 ปีที่แล้ว +1

      @@harthgornaltrask5957 Can I Know where to add this?

    • @harthgornaltrask5957
      @harthgornaltrask5957 4 ปีที่แล้ว +1

      @@pratikgk9384 You put it inside the WebGLRenderer constructor, like this:
      const renderer = new WebGLRenderer({
      alpha: true
      })

    • @ujjwalrustagi8690
      @ujjwalrustagi8690 3 ปีที่แล้ว

      @@sabeetspongiinchowdhury3965 I tried to download your repo contents. I can only see black screen. Is there any way to correct this problem? Even the same problem occurs when I tried out this tutorial.
      Any help would be appreciated

  • @shin-cy3th
    @shin-cy3th ปีที่แล้ว +2

    the github links are not working, can someone teach me another way?

  • @DragonStoneCreations
    @DragonStoneCreations 5 ปีที่แล้ว

    You deserve more buddy

  • @xyzabc4313
    @xyzabc4313 5 ปีที่แล้ว +1

    great tutorial!!!!! hope more to come!!!

  • @ZaranDhullaHirachand
    @ZaranDhullaHirachand 2 หลายเดือนก่อน

    Can i add Custom Color Selector:
    > were in users can change color of the car with the color selector provided
    (or)
    >Pre-selected colors to cycle through once selected by the user.
    Kindly guide.
    Thank in advance ☺

  • @rachaelconcessio3019
    @rachaelconcessio3019 5 ปีที่แล้ว +3

    I copied your code exactly, but I got an error saying
    ' Cannot read property Itemstart of undefined '

  • @ozoshmaharjan2016
    @ozoshmaharjan2016 5 ปีที่แล้ว

    Ooooohhhhh thank you so much. I needed this. 😊

  • @ajeeboamir
    @ajeeboamir 4 ปีที่แล้ว

    Sir, you are really great...
    What an amazing project is this... really amazing.. +!

  • @prupurowykrawiecbarbarzync2158
    @prupurowykrawiecbarbarzync2158 3 ปีที่แล้ว +1

    I don't know why but when I turn on the page it only shows a black screen

  • @globalautolado6497
    @globalautolado6497 3 ปีที่แล้ว +1

    can some of the parts of the model be clickable?

  • @chris40104010
    @chris40104010 5 ปีที่แล้ว

    like your three js series.

  • @mariolopes6262
    @mariolopes6262 5 ปีที่แล้ว

    Threejs is sensational.

  • @torytatsumaki
    @torytatsumaki 5 ปีที่แล้ว +1

    Happy birthday !

  • @chenrone935
    @chenrone935 2 ปีที่แล้ว

    very helpful! thanks!

  • @fura999
    @fura999 4 ปีที่แล้ว +5

    Thank you sir.
    One more question, how to do dynamic 3d model? I mean, input on website few parameters and output 3d model,
    something like online product configurator
    is it possible?

  • @pavelarseyev452
    @pavelarseyev452 5 ปีที่แล้ว

    thanks a lot! This video helped me so much!

  • @luckymigs012
    @luckymigs012 4 ปีที่แล้ว +4

    How can I add the 3D on WP? Can you share some tutorials to it?

  • @fredyrivas
    @fredyrivas 4 ปีที่แล้ว

    I had some issues since Im using parcel, when loading the .gltf file, before I needed to use "parcel-plugin-static-files-copy" in order to serve static files. Following issue came when I didn't add /textures folder and .bin file. Finally OrbitControls needs now the renderer as a second argument and there's no need anymore to add the event listener. Thanks for this tutorial

  • @temp7172
    @temp7172 4 ปีที่แล้ว +9

    This is outdated, any chance of an updated version?

    • @Johnny_Blue
      @Johnny_Blue 4 ปีที่แล้ว +2

      Here you go:
      let scene, camera, render
      function init() {
      scene = new THREE.Scene()
      scene.background = new THREE.Color(0xdddddd)
      camera = new THREE.PerspectiveCamera(40, window.innerWidth/window.innerHeight,1,5000)
      camera.rotation.y = 45/180*Math.PI
      camera.position.x = 800
      camera.position.y = 100
      camera.position.z = 1000
      hlight = new THREE.AmbientLight(0x404040, 100)
      scene.add(hlight)
      directionalLight = new THREE.DirectionalLight(0xffffff, 100)
      directionalLight.position.set(0,1,0)
      directionalLight.castShadow = true
      scene.add(directionalLight)
      light = new THREE.PointLight(0xc4c4cc4, 10)
      light.position.set(0, 300, 500)
      scene.add(light)
      light2 = new THREE.PointLight(0xc4c4cc4, 10)
      light.position.set(500, 100, 0)
      scene.add(light2)
      light3 = new THREE.PointLight(0xc4c4cc4, 10)
      light.position.set(0, 100, -500)
      scene.add(light3)
      light4 = new THREE.PointLight(0xc4c4cc4, 10)
      light.position.set(-5000, 300, 0)
      scene.add(light4)
      renderer = new THREE.WebGLRenderer({antialias: true})
      renderer.setSize(window.innerWidth, window.innerHeight)

      controls = new THREE.OrbitControls(camera, renderer.domElement);
      document.body.appendChild(renderer.domElement)
      let loader = new THREE.GLTFLoader()
      loader.load('scene.gltf', function(gltf){
      car = gltf.scene.children[0]
      car.scale.set(0.5, 0.5, 0.5)
      scene.add(gltf.scene)
      animate();
      })
      }
      function animate() {
      renderer.render(scene,camera);
      requestAnimationFrame(animate);
      }
      init()

    • @cereproductions7980
      @cereproductions7980 4 ปีที่แล้ว

      @@Johnny_Blue Still doesnt work

    • @Johnny_Blue
      @Johnny_Blue 4 ปีที่แล้ว

      @@cereproductions7980 it working for me. Without more information I really can't help you.

    • @Hellemmm
      @Hellemmm 4 ปีที่แล้ว +1

      @@Johnny_Blue now its working for me, thanx!!

    • @usuf9035
      @usuf9035 4 ปีที่แล้ว

      @@Johnny_Blue I did the same but...I get an error: THREE.GLTFLoader is not a constructor or if I import both the file(threejs from bulid and gltfloader from examples/jsm/loader) I get GLTFLoader is not constructor error......can u help me how to import or what I'm doing wrong?

  • @mithunkrishna3567
    @mithunkrishna3567 3 ปีที่แล้ว

    Im a 3d artist i found that his process is very good but for realism use HDRi lighting

  • @hadeeljameel1043
    @hadeeljameel1043 3 ปีที่แล้ว +11

    Hi, thank you! Great tutorial. but I got problem although that I followed step by step but it is showing a blank page, can someone tell me what the problem is?

    • @mozarellachan5854
      @mozarellachan5854 3 ปีที่แล้ว +1

      same here

    • @janzisportshd
      @janzisportshd 3 ปีที่แล้ว

      any solution yet?

    • @rdawo6408
      @rdawo6408 3 ปีที่แล้ว

      Hello, I want to know what your projects are.. but your yt is empty.. where do you post your creativity?

    • @jimikylliainen264
      @jimikylliainen264 3 ปีที่แล้ว +1

      having the same issue.. any solutions yet?

    • @beansheeran7322
      @beansheeran7322 3 ปีที่แล้ว +1

      I know the solution

  • @Issus94
    @Issus94 5 ปีที่แล้ว +5

    Hi thx for the tutorial. I did it the same like you and used python3 local server, but the website is just white and it says: scope.domElement is undefined in OrbitControl.js. Do u know why i get the error?

    • @darshilshankar7661
      @darshilshankar7661 5 ปีที่แล้ว

      Go to your code and put the block o code “renderer = new THREE.WebGL ... (renderer.domElement);” after the block of code about “camera” and before “controls”. Explanation of the error: the renderer object is used before itself is declared. Go to the browser console and you can notice that.

    • @e102em
      @e102em 2 ปีที่แล้ว

      @@darshilshankar7661 I'm having the same issue can you elaborate more on this? In reference to line 23 renderer = new THREE.WebGLRenderer({Antialias:true}); should be changed to?

  • @SAL73VFX
    @SAL73VFX 2 ปีที่แล้ว +3

    Excellent tutorial. Do you know how to put this 3d model in a responsive HTML document in order to make a website that can be viewed in every mobil device?

  • @davidpicarazzi
    @davidpicarazzi 5 ปีที่แล้ว +1

    I am doing the exact same thing but i get an errior
    Uncaught TypeError: Cannot read property 'addEventListener' of undefined
    at new THREE.OrbitControls (OrbitControls.js:1130)
    at init (index.html:21)
    at index.html:56
    why is this?

    • @alessandroquets8291
      @alessandroquets8291 4 ปีที่แล้ว

      Due to a three.js update i think, you should add "render.domElement" on the OrbitControls object and so declare "renderer" beofre "controls" as this:
      renderer = new THREE.WebGLRenderer({antialias: true})
      renderer.setSize(window.innerWidth, window.innerHeight);
      document.body.appendChild(renderer.domElement);
      let controls = new THREE.OrbitControls(camera, renderer.domElement);
      controls.addEventListener('change', renderer);

  • @jitendrakumar8187
    @jitendrakumar8187 4 ปีที่แล้ว +1

    I am getting error in OrbitControl.js file. and the error is "Uncaught TypeError : Cannot read type property 'addEventListener' of Undefined". Please suggest what to do?

  • @saleemahmad5083
    @saleemahmad5083 2 ปีที่แล้ว

    i have been triying to do exactly what you are doing in the video but i am unable top see the 3D model in the browser.

  • @ReenoMoon
    @ReenoMoon 2 ปีที่แล้ว

    I dude enjoy it!

  • @aluuffysv4643
    @aluuffysv4643 3 ปีที่แล้ว +7

    Great stuff, is there a way to add customization option to the model? i.e, have colors change and stuff while the model is being panned/rotated around?

  • @rakutina2646
    @rakutina2646 4 ปีที่แล้ว +2

    where i can get three.min.js??

  • @Giovanni00831
    @Giovanni00831 3 ปีที่แล้ว

    Ok I have an issue, I'm at 2:56 and my programm give the error: "TypeError: this.textureLoader.setRequestHeader is not a function
    at new GLTFParser (GLTFLoader.js:1762)
    at GLTFLoader.parse (GLTFLoader.js:209)
    at Object.onLoad (GLTFLoader.js:95)
    at XMLHttpRequest. (three.min.js:742)"
    even copying the full code I have this problem, what can I do?

  • @のざじ-k7e
    @のざじ-k7e ปีที่แล้ว

    ありがとう❤

  • @fadhelalsuwaidi1221
    @fadhelalsuwaidi1221 2 ปีที่แล้ว

    Hi Sir, Great Work
    Which version of three js u use?

  • @Evitaschannel
    @Evitaschannel 3 ปีที่แล้ว +3

    In blender or other 3D software you can often place lights as well, will these show up? Or do you always need to add the lights yourself?

  • @uixmat
    @uixmat 4 ปีที่แล้ว +5

    This tutorial has out dated, any chance of an updated version?

  • @lCebolitosl
    @lCebolitosl 2 ปีที่แล้ว

    I got stuck in the getting GLTF Loader part. Your link destination doesn't exist anymore. I'm a noob trying to figure things out still. I'm practicing a lot of html and css but javascript I didn't even touched yet.

  • @denisruparel6014
    @denisruparel6014 ปีที่แล้ว +1

    Could not understand three.min.js file

  • @apoorvareddy
    @apoorvareddy 4 ปีที่แล้ว +2

    can we upload a 3D model and add different functions to different parts of the model?

  • @ashishjaiswal3886
    @ashishjaiswal3886 4 ปีที่แล้ว +2

    did u jst played happy bday to u background music in three.js tutorial video ? xD

  • @servarevitas5899
    @servarevitas5899 5 ปีที่แล้ว +1

    Hello, I followed all of the steps but nothing came up when i opened it. What do i do?

    • @servarevitas5899
      @servarevitas5899 5 ปีที่แล้ว

      can the program run only in internet explorer?

    • @SomethingWOW0
      @SomethingWOW0 4 ปีที่แล้ว

      @@servarevitas5899 bro the program run in local server

  • @filiodjordjevic1039
    @filiodjordjevic1039 4 ปีที่แล้ว +7

    when i use this code i get a unexpected token error on the first line of the code, not sure why? can anyone help?

  • @heroofdraw1619
    @heroofdraw1619 ปีที่แล้ว +1

    Hi everyone updated version Date 2023-08
    let scene, camera, renderer, hlight, directionalLight, light, light2, light3, light4, car, controls;
    function init() {
    scene = new THREE.Scene();
    scene.background = new THREE.Color(0xdddddd);
    camera = new THREE.PerspectiveCamera(40, window.innerWidth / window.innerHeight, 1, 5000);
    camera.rotation.y = 45 / 180 * Math.PI;
    camera.position.x = 800;
    camera.position.y = 100;
    camera.position.z = 1000;
    renderer = new THREE.WebGL1Renderer({ antialias: true })
    renderer.setSize(window.innerWidth, window.innerHeight);
    document.body.appendChild(renderer.domElement);
    controls = new THREE.OrbitControls(camera, renderer.domElement);
    controls.addEventListener('change', render);
    hlight = new THREE.AmbientLight(0x404040, 100);
    scene.add(hlight);
    directionalLight = new THREE.DirectionalLight(0xffffff, 100);
    directionalLight.position.set(0, 1, 0);
    directionalLight.castShadow = true;
    scene.add(directionalLight);
    light = new THREE.PointLight(0xc4c4c4, 10);
    light.position.set(0, 300, 500);
    scene.add(light);
    light2 = new THREE.PointLight(0xc4c4c4, 10);
    light2.position.set(500, 100, -500);
    scene.add(light2);
    light3 = new THREE.PointLight(0xc4c4c4, 10);
    light3.position.set(0, 300, -500);
    scene.add(light3);
    light4 = new THREE.PointLight(0xc4c4c4, 10);
    light4.position.set(-500, 300, 0);
    scene.add(light4);
    let loader = new THREE.GLTFLoader();
    loader.load('../../3dModels/scene.gltf', function (gltf) {
    car = gltf.scene.children[0];
    car.scale.set(0.5, 0.5, 0.5);
    scene.add(gltf.scene);
    animate();
    })
    }
    function render() {
    renderer.render(scene, camera);
    }
    function animate() {
    renderer.render(scene, camera);
    requestAnimationFrame(animate);
    }
    init();
    /////////////////////html


    Document


    {
    "imports": {
    "three": "./three.js/build/three.module.js",
    "three/addons/": "./three.js/examples/jsm/"
    }
    }

    • @tasneemayham974
      @tasneemayham974 ปีที่แล้ว

      Hello!!
      Thanks for the 2023 code! May you please help me out here. My system gives ProgressEvent {isTrusted: true, lengthComputable: false, loaded: 0, total: 0, type: 'error', …} ERROR. Any way to fix it?

  • @nigelpallatt
    @nigelpallatt 3 ปีที่แล้ว +1

    What did you do at 2:15 ???? You did not explain

  • @chrisfillmore6812
    @chrisfillmore6812 3 ปีที่แล้ว

    I got my car to render but it is very tiny on init() and is very far back using the camera using the default source code. Any Idea why this is happening?

  • @3dfrontelevation94
    @3dfrontelevation94 4 ปีที่แล้ว

    very help full, thanks ,

  • @javifontalva7752
    @javifontalva7752 2 ปีที่แล้ว

    I have problem loading importing the files. Any idea how I can fix the issue?

  • @tundeakinola8122
    @tundeakinola8122 2 ปีที่แล้ว

    Pls do u have a video on how to add it to react?

  • @babybook84
    @babybook84 2 ปีที่แล้ว

    so json file is no longer supported as an exporting option from blender?

  • @k0r114
    @k0r114 2 ปีที่แล้ว +3

    Hey man! Great job! I have a question: Once I have my the model uploaded, how can I add a button that activates an animation when clicked it, like opening the doors for example. Thanks!

  • @karenmujicarangel8745
    @karenmujicarangel8745 5 ปีที่แล้ว +1

    i have a question in the model scene, can i add buttons and markers in the model from visual studio?
    i need do a model but with tooltips in diferents ubications similar to google maps. what do you recomend me for my proyect? i tried incrust the model but i dont know how put the markers and tooltips in the model

  • @pradiptasarkarekagga1970
    @pradiptasarkarekagga1970 3 ปีที่แล้ว

    I did exactly what this tutorial instructed....and I am only getting a grey screen...dont know what to do

  • @ricardogoro
    @ricardogoro 4 ปีที่แล้ว +1

    awesome! you could integrate an example of these into a real site!Saludos desde Colombia! :)

  • @andreanomorango
    @andreanomorango 4 ปีที่แล้ว +1

    Will it be possible to have the models have areas that when they pass the mause are activated or change color or add a link to another model?

  • @milannakrani6170
    @milannakrani6170 2 ปีที่แล้ว

    I have copy past same code. and all js ifle but still not working on my system.

  • @camilo9713
    @camilo9713 4 ปีที่แล้ว +3

    Hi, thank you! Great tutorial. I have a question, any of you guys know how to add text on a 3d model in threejs? I would really appreciate if someone helps me with that.

  • @Dz0nas
    @Dz0nas 4 ปีที่แล้ว +1

    I get this error :
    Uncaught TypeError: Cannot read property 'addEventListener' of undefined
    at new THREE.OrbitControls (OrbitControls.js:1100)
    at init (VM112 threejs.html:27)
    at VM112 threejs.html:69
    THREE.OrbitControls @ OrbitControls.js:1100
    init @ VM112 threejs.html:27
    (anonymous) @ VM112 threejs.html:69

  • @jinnumi
    @jinnumi 3 ปีที่แล้ว +1

    How to get that Three.min.js file?

  • @giftool3086
    @giftool3086 2 ปีที่แล้ว

    did everything according to the tutorial, but I can't see the 3d model on the website((((

  • @handikurr
    @handikurr 2 ปีที่แล้ว

    Thankyou for the tutorial, i want to ask you a question how to lock the rotation just for horisontal axis?

    • @NoNameNule
      @NoNameNule 2 ปีที่แล้ว

      en camera position y pon 0 listo

  • @vikramcool7647
    @vikramcool7647 4 ปีที่แล้ว

    having a issue not able to view the GLTF in the web any suggestion

  • @hasansobitov7280
    @hasansobitov7280 4 ปีที่แล้ว

    I have problem when i want to get finished result screen is white. I use local server and checked all codes but error. Please help me

  • @piyushshah5109
    @piyushshah5109 5 ปีที่แล้ว +3

    i am getting an error GLTFLoader is not a constructor

    • @SomethingWOW0
      @SomethingWOW0 4 ปีที่แล้ว

      you find out the answer pls tell me

    • @rizwandurrani3392
      @rizwandurrani3392 4 ปีที่แล้ว

      @@SomethingWOW0 run on localhost

    • @SomethingWOW0
      @SomethingWOW0 4 ปีที่แล้ว

      @@rizwandurrani3392 yeh bro i find the answer.Thank you for replying.

  • @ashishbasukala7105
    @ashishbasukala7105 ปีที่แล้ว

    fbx 3D object have been open thats gr8, how to add this on web browser, can u help me?

  • @azenahlen08
    @azenahlen08 2 ปีที่แล้ว

    Did you publish it using a live server?

  • @akongas
    @akongas 4 ปีที่แล้ว +1

    cant get it working on both computer and hosted

  • @hagar6908
    @hagar6908 5 ปีที่แล้ว

    If you get an AddEventListener error see Vincent Nunna's reply to
    ABDUSHUKUR RASULOV. This worked for me.
    You have to rearrange some lines of code.
    camera.position.z = 1000;
    renderer = new THREE.WebGLRenderer({antialias:true});
    renderer.setSize(window.innerWidth,window.innerHeight);
    document.body.appendChild(renderer.domElement);
    let controls = new THREE.OrbitControls(camera,renderer.domElement);
    controls.addEventListener('change', renderer);
    hlight = new THREE.AmbientLight (0x404040,100);

  • @TriLe-zx8ub
    @TriLe-zx8ub 3 ปีที่แล้ว

    Thank for your videos. I have a question.
    I have a obj and hdri background. I can not keep obj when rotate background. Can you help me resolve my issue?

  • @ZejtiNSRB
    @ZejtiNSRB 5 ปีที่แล้ว

    Great man !

  • @mouad1401
    @mouad1401 2 ปีที่แล้ว

    I didnt work, im guessing its related to the three.main.js file missing... please some help

  • @jackbro8140
    @jackbro8140 2 ปีที่แล้ว

    Hello, I have a problem with code. I follow the code step by step but I can't view anything in website. Does anyone know how to fix it? Thanks for help.

  • @sapnajha7222
    @sapnajha7222 2 ปีที่แล้ว

    Hey the link you have given are not working now. Can you please reshare them as I am using on my project. URGENT!

  • @eduardoalejandre7958
    @eduardoalejandre7958 7 หลายเดือนก่อน +1

    Outdated:/
    The .js files for the loaders are not longer there

  • @mukulchoudhury6859
    @mukulchoudhury6859 4 ปีที่แล้ว

    Orbit Controls gives an error while adding addEventListener to controls. Can someone help?
    " Uncaught TypeError: Cannot read property 'addEventListener' of undefined at new THREE.OrbitControls "

  • @everestgjonaj
    @everestgjonaj 5 ปีที่แล้ว

    Looking down for more threejs tutorials.

  • @EttorePolegati
    @EttorePolegati ปีที่แล้ว

    Where can I find the GLTFLoader.js??????????????????????????????????????????????

  • @kira3821
    @kira3821 ปีที่แล้ว

    how about pmx model? mmd models?

  • @graphic-nations
    @graphic-nations 4 ปีที่แล้ว

    that was amazing but . how we can interact and show text in specific part on the car

    • @raulmar
      @raulmar 4 ปีที่แล้ว

      Check out the font loader from threejs or the gamestop meme video from redstapler :)

  • @OskarPrice
    @OskarPrice 4 ปีที่แล้ว

    hi sir! follow you tutorial but occur issue THREE.WebGLRenderer.render: camera is not an instance of THREE.Camera. if i connect three.js file and TypeError: "node.applyMatrix4 is not a function" if i coonect cdn file. What do you think it could be ?

  • @roopamgarg1085
    @roopamgarg1085 5 ปีที่แล้ว +1

    getting error => Error: THREE.GLTFLoader: Failed to load buffer "scene.bin".
    Any suggestion what can I do (and I have already included scene.bin in the project directory)

  • @islambayome7739
    @islambayome7739 5 ปีที่แล้ว +4

    thank you about these series but i try this example on my localhost android device and dont work