01. Basic Scene in BabylonJS

Поделиться
HTML-код
  • Опубликовано: 24 янв 2025

Комментарии • 49

  • @rocketshader2699
    @rocketshader2699 2 года назад +7

    Guy, this tutorial series is amazing!!! Tried the Babylon docs for examples but found this tutorial and carried on with this. Tx for doing this, this is amazing.
    These tutorials are promised lands, people might swarm here in future to learn babylon. The moment I envisioned what could be done with games on browser I fell in love with Babylon, let's see where it will go.

  • @michailkoumpas7245
    @michailkoumpas7245 Год назад +1

    Im getting the error ajvKeywords is not a function when running npm run serve (at 7:20)

  • @joannwatu7603
    @joannwatu7603 2 года назад +5

    Amazing tutorial! I was able to implement it following your steps despite being a beginner. Thank you!

    • @CodeSmall
      @CodeSmall  2 года назад +2

      Great to hear!

    • @shershe_s
      @shershe_s 18 дней назад

      You Inderstand why we need Vue?

  • @enricozappoli2232
    @enricozappoli2232 2 года назад +1

    when I open my localhost page, i cannot see the canvas arguments, someone can help me? when i go to the ispections, i see a noscript tag, what does it means?

  • @吕静-h9g
    @吕静-h9g Год назад +1

    The glb resource pack cannot be downloaded, indicating that the bandwidth is not enough,

  • @吕静-h9g
    @吕静-h9g Год назад +1

    Where can I re-download the glb resource pack,🤕🤕🤕

  • @nongtruongfc
    @nongtruongfc 2 года назад +2

    Thanks for your tutorial

  • @vedranostrugnjaj9116
    @vedranostrugnjaj9116 3 года назад +3

    Thank you for this :)
    I have an issue that i hope you can help me with. At around 15:35, when we type import { BasicScene } from '@/BabylonExamples/BasicScene'; i keep getting an error "Cannot find module or its corresponding type declarations."
    I have checked that the folder and file hierarchy is correct and i have found this solution that didnt work for me:
    " This is because TypeScript does not resolve webpack aliases automatically.
    For TS to resolve aliases, they should be added in tsconfig.json under compilerOptions.paths:
    {
    "compilerOptions": {
    "paths": {
    "@/*": [
    "./*"
    ]
    }
    }
    }
    "
    The reason i believe this is not the problem is that in our BaseScene.ts the line import from "@babylonjs/core"; works fine.
    The only way i have managed to make the error go away was to write the full path: C:/Users/User... and i hope i can find a way to not use the full path like that.
    Sorry for such a long question
    EDIT: It seems to be working even thou its underlined and marked as an error. I dont really want to leave it in like that since its strange that the files are underlined red with an error so im still looking of a solution.

    • @CodeSmall
      @CodeSmall  3 года назад +2

      That error does come from the aliases and I have had issues like that before. I believe it may be an issue with how Vue utilizes Typescript and how Typescript in general is setup. I remember seeing something before about some conflicting issues with linting or configuration settings but I can't remember at the moment. If I find a solution I'll update this comment.

    • @vedranostrugnjaj9116
      @vedranostrugnjaj9116 3 года назад

      @@CodeSmall Thank you :)

    • @darrelnaz1209
      @darrelnaz1209 3 года назад +1

      I do have the same error

    • @hiranga
      @hiranga 3 года назад

      @@CodeSmall Same I've got the same error... Does this mean we can just ignore?

    • @CodeSmall
      @CodeSmall  3 года назад

      If it runs then I would ignore it. If it bothers you, you can also change the path to be “direct” and not use the alias. So like “../folder/myFile” instead of “@“.

  • @noxen_studios3566
    @noxen_studios3566 2 года назад +2

    Hello! Will WebGPU will be covered as well with BabylonJS 5.0 ? So glad as well to find this very good beginner series. ps: sssshhhhhhttttttt BabylonJs 5.0 is ready but we don't have to tell it. Hope for space content as well being covered as it is the master word for this new release. Keep going, thanks :)

  • @ivanche8051
    @ivanche8051 3 года назад +5

    In Vue, you want to reference these canvases with refs instead of queryselectors

    • @CodeSmall
      @CodeSmall  3 года назад +5

      Yes that’s another way to reference them. I try to keep the Vue logic as simple and transferrable as I can. So that the logic can be easily replicated in vanilla html/js as well as other frameworks.

  • @canadiantechprep
    @canadiantechprep Год назад

    It appears the Vue CLI is depricated. I ran: npm create vue@latest but was not sure if configured correctly.

  • @ajinkyax
    @ajinkyax Год назад +2

    thanks your Babylon TS videos are much helpful thank docs. since I was looking for video tutorial this is best, im new to both Vue and babylon. #babylonjs #typescript

  • @stylesweiler7475
    @stylesweiler7475 2 года назад

    Great content! Thank you so much

  • @nussknagger-gmbh
    @nussknagger-gmbh 2 года назад

    do you think its possible to make a video tutorial how to use babylon js in svelte for absolute beginners too?

  • @jordanwillian9958
    @jordanwillian9958 Год назад

    I'm trying to install babylon into angular, but it not work. Is there some tutorial about it?

    • @CodeSmall
      @CodeSmall  Год назад

      I'm not sure how you're trying to install it, but it's the same as how it would be done in React or Vue as far as I know. The Babylon NPM page explains it more in detail here: www.npmjs.com/package/babylonjs

  • @chihchang1139
    @chihchang1139 2 года назад

    What's the reasoning behind the "CreateScene" method having to reference this.engine? Wouldn't that make this method fragile for if a programmer has not yet initialized the engine? Would it be an alternate implementation if the engine was passed into the method?

    • @CodeSmall
      @CodeSmall  2 года назад

      If you were using these as separate functions like in traditional Javascript, yes you'd be correct. In this case, these methods exist in a class, so by the time you get access to any of these methods you'd have to create an instance of the class calling the constructor. The engine is set up in the constructor before the "CreateScene" method ever gets called.

    • @chihchang1139
      @chihchang1139 2 года назад +1

      @@CodeSmall that's true. thanks

  • @星碎雷袭
    @星碎雷袭 2 года назад

    Very useful, Thank you!👍

  • @adleexavier9930
    @adleexavier9930 2 года назад

    I found these tutorials very useful, Will these tutorials still be useful if WebGPU is the renderer engine in Babylon 5

  • @keanu883
    @keanu883 9 месяцев назад

    hi, is there a possibility to host your work via anything like ngrok for team demos? Great tutorials btw)

    • @jgonzo-san
      @jgonzo-san 9 месяцев назад

      Feel free to host them through Ngrok.

  • @girljuice
    @girljuice 2 года назад

    Perfecto! Gracias!!!

  • @hjs9070
    @hjs9070 2 года назад

    Thank you for your video. Do you have any plans for react?

  • @manoterasfloweskultor
    @manoterasfloweskultor 2 года назад

    muy bueno video sigue asi gracias

  • @Dylancer829
    @Dylancer829 Год назад

    Can I use Babylon to build animated websites

    • @CodeSmall
      @CodeSmall  Год назад

      Yes, you can include animated 3d meshes. For general html/css style animations id use gsap greensock.com/gsap/

  • @冠霖-l4c
    @冠霖-l4c 2 года назад

    good tutorial! and I want to ask why don't just write babylon in mounted? Is it about performance?

    • @CodeSmall
      @CodeSmall  2 года назад +1

      Thanks. I like to keep things organized into specific classes. I only want to use Vue for displaying the "end product" while all the logic is abstracted away into separate files. It's personal preference, you can do all of that within a component as well. This way it also makes it easy to transfer to any HTML/CSS project or framework without having to know how Vue works.

  • @WorstDeveloper
    @WorstDeveloper 2 года назад

    How much of this is usable in Babylon 5? It's soon about to be released, so I don't want to spend too much time learning outdated things.

    • @CodeSmall
      @CodeSmall  2 года назад

      It's all usable. Most of the changes coming to Babylon are additions of features.

  • @luckyyo7287
    @luckyyo7287 2 года назад

    very cool!

  • @郑瑜环
    @郑瑜环 Год назад

    Teacher, do you have any other Babylon.js courses? I would like to learn from the courses you teach, which are the best I have learned so far. I hope you have new courses and I am willing to use money to purchase your new courses

  • @rocketshader2699
    @rocketshader2699 2 года назад

    If you cant work it out
    import BABYLON, {
    Scene, Engine,
    MeshBuilder,
    CreateGround,
    FreeCamera, HemisphericLight, Vector3 } from "babylonjs"
    import codes like this, after npm install babylonjs --save
    That's what I did and it works.

  • @996hunter4
    @996hunter4 2 года назад

    i want a remote job ,

  • @yurij_zp
    @yurij_zp 11 месяцев назад

    It really hurts to see how you type without any indentation and proper spacing and format the code only after that, when you don't forget :(