iOS Swift 4 Game Tutorial: Create 3D Levels with SceneKit Editor 🕹

Поделиться
HTML-код
  • Опубликовано: 7 июл 2024
  • Learn how to use SceneKit and the SceneKit Editor to create simple 3D models and 3D levels right within Xcode. You will also learn a lot about things like using materials, lighting and a lot more.
    Game Background Music: Manuel F. Graf, www.manuelgraf.com
    📲 Slack Community: goo.gl/UabCFi
    🛒 GAME DEVELOPMENT COURSE - JUST $20 🛒
    www.udemy.com/2d-games-with-s...
    👏 Support me on Patreon: / brianadvent
    🖥 www.swift-tutorial-conference.net
    ➡️ Web: www.brianadvent.com
    ➡️ Assets:
    bit.ly/2vVkWS8
    ✉️ COMMENTS ✉️
    If you have questions about the video or Cocoa programming, please comment below.
  • ХоббиХобби

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

  • @michaelvoline6205
    @michaelvoline6205 6 лет назад +13

    Thank you! Very concise and easy to follow.
    Consider making a whole series dedicated to 3D game Development.
    It is high in demand, especially for IOS.

  • @dhavalnena7386
    @dhavalnena7386 6 лет назад

    GREAT TUTORIAL WITH DETAILED EXPLANATION !! MUCH APPRECIATED !! THANK YOU :)

  • @gokayokyay4600
    @gokayokyay4600 6 лет назад +2

    Greetings Brian! Liked before watching, pretty sure it is awesome!

  • @meerasayabu3823
    @meerasayabu3823 6 лет назад

    Woooow. It's superb. Please release full videos of this game development. Great effort.

  • @_DeepakGirdhar_
    @_DeepakGirdhar_ 6 лет назад

    Thank You so much #BrainAdvent for all the tutorials 🙏

  • @anhduy7367
    @anhduy7367 5 лет назад

    It's just so fantastic. Thank you !

  • @MuhammadAli-zv5vz
    @MuhammadAli-zv5vz 6 лет назад +1

    Yes please make a whole game video, great video .

  • @lecomp
    @lecomp 5 лет назад

    I loved that, I have so many ideas about games I'd like to create. I think this is a good opportunity for me to get that. Thanks for the amazing content and I hope to see more about iOS games at this channel.

  • @ivanthomas8503
    @ivanthomas8503 5 лет назад

    Great video. Thanks. Looking forward to more videos.

  • @AmitSingh-nr8jz
    @AmitSingh-nr8jz 3 года назад

    awesome explanation

  • @anandmukuttirkey5043
    @anandmukuttirkey5043 6 лет назад

    great video. waiting for next :)

  • @VladimirKokhanevich
    @VladimirKokhanevich 6 лет назад

    Nice one, pretty need

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

    I had a few issues implementing this in a more modern Xcode and thought I would share:
    The line "let sceneView = self.view as! SCNView" resulted in a SIGABRT error. I wound up adding a SceneKitView in storyboard, and then connecting to the GameViewController.
    Doing that resulted in a blank screen, though, so I had to change my "let scene = SCNScene(named: "art.scnassets/MainScene.scn")" to "guard let scene = SCNScene(named: "MainScene.scn") else { fatalError("file not found") }.
    That seemed to work pretty well. I really appreciate the introduction and all of the work that went into this tutorial.

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

      I'm also getting a blank scene, even with changing the name to MainScene.scn. Any ideas?

  • @RedEyedPacman
    @RedEyedPacman 5 лет назад

    Great Video!! But my SkyBox doesn't work like yours does. Mine just projects the image in the background, ignoring all of the x, y and z stuff. Can someone help me?

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

    Awesome tutorial. Thank you for this. Would love to build a space scene. With stars in the distance, where some don’t move, some move off screen, but you can never reach them. Any thoughts?

  • @30.0sec
    @30.0sec 3 года назад

    what a cool video.

  • @georgequentin8715
    @georgequentin8715 6 лет назад

    Make the whole game, it would be nice!

  • @vindajojo
    @vindajojo 4 года назад

    Helps, THX

  • @tinloywan4935
    @tinloywan4935 6 лет назад

    Great! Can you please do more video with SceneKit!

  • @user-ux1ct8zh7u
    @user-ux1ct8zh7u Год назад

    ty. i noticed that when you created the ball, etc. that your setting for "Shading" was "Blinn." It appeared to be a significant setting when I was trying to follow along, yet you did not mention. Can you briefly define the choices.

  • @kanishkaralasi7408
    @kanishkaralasi7408 6 лет назад +1

    Can you make more tutorials on SceneKit? Also can you make the game you show in the starting of the video?

  • @franzderek
    @franzderek 5 лет назад +1

    I'm having the same issue as others below. When I compile the project it renders a black screen on the simulator and on a device.

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

    Loved this tutorial!! Everything was going great but right when I tried to display the scene, the sceneView = self.view as! SCNview line is giving me a SIGABRT error ;(

  • @PeterRichardsandYoureNot
    @PeterRichardsandYoureNot 5 лет назад +1

    cant download assets from dropbox because your biz account has expired!! perhaps a new location or refreshed account.

  • @blackjaquar
    @blackjaquar 6 лет назад

    Video tutorial on the game itself, please.

  • @zaine3622
    @zaine3622 4 года назад

    how do you download the art assets folder???? Is it because i deleted it when he told me to?

  • @tinkerc5377
    @tinkerc5377 5 лет назад

    Thank you so much for this helpful tutorial Brian. However, there is a massive reflection showing on the floor for each of the objects placed on it..... I tried to change the position of the lights but still couldn't fix this problem. Could anyone please help? Thanksxx

    • @FlyNNicholas
      @FlyNNicholas 4 года назад

      I know this is one year late but all you need to do is change the reflectivity property of the floor.

  • @abdullahalkhudair773
    @abdullahalkhudair773 6 лет назад

    Can you please continue the game ?
    Thanks

  • @irinakovach5283
    @irinakovach5283 4 года назад

    why does var motion = MotionHelper() say Use a red error of unresolved identifier 'MotionHelper' in the GameViewController? How do I fix this error?
    Also sceneView = self.view as! SCNView says a yellow error of Treating a forced downcast to 'SCNView' as optional will never produce 'nil'.
    And ballNode.physicsBody?.velocity += motionForce says error Expression type '@lvalue SCNPhysicsBody?' is ambiguous without more context.

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

    I need help putting a 3d model I made into Xcode
    edit: never mind I just had to make it a dae file I think
    edit 2: it said 'override can only be specified on class members'
    edit 3: never mind I just pressed fix and it worked!!!
    edit 4: now I can only see a white screen in my lego among us

  • @naveenkumarwithyou
    @naveenkumarwithyou 5 лет назад

    I am eager to see how you made this game

  • @lucaspisso8687
    @lucaspisso8687 5 лет назад

    Ciao,I'm doing a game where a ball goes to the edges but I can not put them and the ball does not stop, could you help me? thank you

  • @frmm132
    @frmm132 5 лет назад

    i am getting this error: Property does not override any property from its superclass
    Code is identical to your gameviewcontroller

  • @IonWP
    @IonWP 6 лет назад +2

    I know this tutorial is not about notificatios Firebase, but can You help me please , how to send notifications with image using Firebase CLoud Messaging ? I made it but only text I can send without image url address. Thanks.

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

    Make a Rubik's cube game toturial using scenekit ✌️

  • @amargupta1081
    @amargupta1081 6 лет назад

    Make that game

  • @wolphonyx
    @wolphonyx 3 года назад +6

    Hi, I'm stuck at 17:11 when you drag the ball.scn file to MainScene.scn. For me, it adds as a camera instead of an object. How do I add ball.scn to MainScene.scn as an object in the latest version of Xcode?

    • @leonardol9453
      @leonardol9453 3 года назад +4

      This also happened to me. Just hit Command + B to build the project, after it finishes the ball should show up.

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

      Command s to save that scene. Then it will work

  • @AReallyReallyDeadChannel
    @AReallyReallyDeadChannel 4 года назад

    'm having trouble in scene kit. my floor is infinite and I don't want that

  • @swaraagsistla8641
    @swaraagsistla8641 4 года назад +1

    Hello, I love this so much! It is working so well! I do have a problem about Specular, because with the current Xcode, I can't see any Specular option, and I don't know what the equivalent (if there is one) to that in Xcode. How should I cause they light?
    Edit: I figured that my Xcode had Shading equal to Physically Based. I switched it to what Brian Advent had it as (Blinn). As soon as I changed it, it changed to what was called Lambert. I tried to switch it to Blinn, but it wasn't switched. It stayed at the Lambert. (I still didn't have Specular option with Lambert.)
    Please help me! Thank you in advance!

    • @evancorriere9323
      @evancorriere9323 4 года назад +3

      Hi Swaraag, I had this same issue. I believe this to be an Xcode bug (I'm on version 11.3.1) but I think I figured it out. It seems like the Blinn and Lambert options are mapped incorrectly - select Lambert and it should switch automatically to Blinn

    • @swaraagsistla8641
      @swaraagsistla8641 4 года назад +1

      @@evancorriere9323 That's weird. I tried this before and it didn't work. I kept clicking both of them, but no avail. Thank you for your suggestion, though!
      Evan Corriere, did you see Specular after you switched to Blinn (just checking)?

    • @evancorriere9323
      @evancorriere9323 4 года назад +1

      ​@@swaraagsistla8641 Yes, specular and everything else that's supposed to be there

  • @viktorosadsky5582
    @viktorosadsky5582 4 года назад

    I can't get the ball file into the main scene file. Can anyone help?

  • @AReallyReallyDeadChannel
    @AReallyReallyDeadChannel 4 года назад

    I need help with drag & droping the files in the newest xcode version

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

      Hey! I know you wrote this comment 10 months ago, but if you found the solution please tell me so! I'm having the same issue rn :(

  • @ayoubalrshidi3023
    @ayoubalrshidi3023 5 лет назад

    make video how to add Button into the game Plz

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

      Use an SCNBox and add an UITapGestureRecognizer and check in func sceneTapped(recognizer: UITapGestureRecognizer) whether the SCNBox equals the tapped node.

  • @cylenalag
    @cylenalag 6 лет назад

    Neato! Though the Assets you have listed are for a different app, not this one. :p

    • @BrianAdvent
      @BrianAdvent  6 лет назад +1

      Thanks for the hint. I have updated the link :)

    • @cylenalag
      @cylenalag 6 лет назад

      Thank you! That comicSkyBox is just perfect. I'd love to see that game you implemented as well :)

  • @wyattb3138
    @wyattb3138 5 лет назад +5

    I’m a teenager who just realized why geometry is so important.

  • @badakml7366
    @badakml7366 5 лет назад

    Can we export the game to .apk also sir?

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

      Maybe try a Converter like www.myappconverter.com/v2/

  • @christiandewinetz4596
    @christiandewinetz4596 5 лет назад +2

    ...in the hopes that I can help someone else who screwed up like me,..
    I was getting the black screen too.
    ...but I realized I had entered the path to the main scene as "art.scnassets.MainScene.scn" instead of "art.scnassets/MainScene.scn"

    • @ivanthomas8503
      @ivanthomas8503 5 лет назад

      thank you! I had the same issue.

    • @mrBLUEFORMANITE
      @mrBLUEFORMANITE 4 года назад

      hats off man. but I am getting a crash report. some problem with down-casting

    • @swaraagsistla8641
      @swaraagsistla8641 4 года назад +1

      @@mrBLUEFORMANITE Could you please explain your problem a bit clearer?

  • @labfpv
    @labfpv 6 лет назад

    Why your code screen is in black ?

    • @cylenalag
      @cylenalag 6 лет назад

      In X-Code, under preferences, then fonts & colors, you can select or make your own color scheme. A black background makes for a nice night-mode to make it easier on the eyes.

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

    Is this really the swift language? I thought swift would be more simple. I completed learn to code 1 and 2, and i see nothing close to this

  • @puhgeh
    @puhgeh 6 лет назад

    is the game on the left already made? i mean, the right one is laggy. or is the left video a game developed in a different platform and you are trying to imitate that?

    • @BrianAdvent
      @BrianAdvent  6 лет назад

      I already created the game on the left. It is a screen recording. The simulator on the right performs worse than a physical device because Scene Kit uses hardware acceleration, which the simulator can’t simulate.

    • @puhgeh
      @puhgeh 6 лет назад

      Brian Advent i see... thank you! great tutorial!

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

    Do the game man! Or maybe I am late, so if you did create the game before this comment please add a link.

  • @sandeepkulkarni8835
    @sandeepkulkarni8835 4 года назад

    Brian hi my name is Sandeep I am interested in developing a 3d games

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

    Using Xcode 12.01. I go to load the scene but it won't load...
    class GameViewController: UIViewController {
    var sceneView:SCNView!
    var scene:SCNScene!
    override func viewDidLoad() {
    setupScene()
    }
    func setupScene() {
    sceneView = self.view as? SCNView
    sceneView.allowsCameraControl = true
    guard let myScene = SCNScene(named: "art.scnassets/MainScene.scn")
    else { fatalError("Unable to load scene file.") }
    sceneView.scene = myScene
    }
    ...
    }
    results in an error of "Unable to load scene file." .. any ideas? Everything looks fine with my scene itself.. and the path to the scene I believe is correct. My GameViewController.swift is in the same folder as my art.scnassets (they are siblings) so I think the path should resolve.

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

      I figured out that my scn files weren't physically located in the art.scnassets folder. So I moved those (in finder) to that folder and everything worked!

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

      @@teewuane hello please I have a question is it possible to import an animation of a 3d character from blender?

  • @rupeshkadam9703
    @rupeshkadam9703 5 лет назад

    play at 1.25x thank me later

  • @reem3063
    @reem3063 6 лет назад

    hello can i contact you in kik or somewhere cause i need you to make me a small project and i will pay you 😊