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

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

Brian Advent

6 лет назад

59,829 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@user-ux1ct8zh7u
@user-ux1ct8zh7u - 14.06.2023 18:10

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.

Ответить
@mattlarsen
@mattlarsen - 07.03.2022 19:20

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.

Ответить
@randy4ii411
@randy4ii411 - 30.09.2021 18:36

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

Ответить
@sergiocaplan1168
@sergiocaplan1168 - 23.09.2021 06:33

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?

Ответить
@alvarohernandez2764
@alvarohernandez2764 - 23.08.2021 10:17

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

Ответить
@rowanfortierplus
@rowanfortierplus - 18.08.2021 08:21

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 ;(

Ответить
@hajunho
@hajunho - 24.05.2021 15:58

what a cool video.

Ответить
@rajahaseeb1690
@rajahaseeb1690 - 21.04.2021 22:42

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

Ответить
@zocus8546
@zocus8546 - 16.12.2020 00:17

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

Ответить
@AmitSingh-nr8jz
@AmitSingh-nr8jz - 07.11.2020 14:58

awesome explanation

Ответить
@teewuane
@teewuane - 11.10.2020 19:38

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.

Ответить
@AReallyReallyDeadChannel
@AReallyReallyDeadChannel - 01.07.2020 20:01

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

Ответить
@AReallyReallyDeadChannel
@AReallyReallyDeadChannel - 23.06.2020 19:27

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

Ответить
@swaraagsistla8641
@swaraagsistla8641 - 15.04.2020 20:47

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!

Ответить
@sandeepkulkarni8835
@sandeepkulkarni8835 - 01.03.2020 22:15

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

Ответить
@viktorosadsky5582
@viktorosadsky5582 - 27.02.2020 16:07

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

Ответить
@haoboxx5896
@haoboxx5896 - 25.02.2020 18:56

Helps, THX

Ответить
@irinakovach5283
@irinakovach5283 - 08.01.2020 22:47

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.

Ответить
@lethalcompclips
@lethalcompclips - 19.10.2019 08:51

I'm getting a grey screen when running my app. I haven't changed anything and my function looks like this :
func setupScene(){
sceneView = self.view as? SCNView
sceneView.allowsCameraControl = true
scene = SCNScene(named: "art.scnassets/MainScene.scn")
sceneView.scene = scene
}
I call that function but all I get is a grey screen like I said, any suggestions anyone?

Ответить
@zaine3622
@zaine3622 - 15.08.2019 06:51

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

Ответить
@frmm132
@frmm132 - 04.06.2019 21:07

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

Ответить
@rupeshkadam9703
@rupeshkadam9703 - 04.06.2019 13:26

play at 1.25x thank me later

Ответить
@ivanthomas8503
@ivanthomas8503 - 24.05.2019 22:37

Great video. Thanks. Looking forward to more videos.

Ответить
@anhduy7367
@anhduy7367 - 19.04.2019 12:07

It's just so fantastic. Thank you !

Ответить
@tinkerc5377
@tinkerc5377 - 13.04.2019 07:05

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

Ответить
@christiandewinetz4596
@christiandewinetz4596 - 04.04.2019 02:39

...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"

Ответить
@lucaspisso8687
@lucaspisso8687 - 19.02.2019 10:34

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

Ответить
@lecomp
@lecomp - 18.02.2019 02:47

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.

Ответить
@badakml7366
@badakml7366 - 21.01.2019 07:45

Can we export the game to .apk also sir?

Ответить
@PeterRichardsandYoureNot
@PeterRichardsandYoureNot - 13.12.2018 22:38

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

Ответить
@wyattb3138
@wyattb3138 - 16.11.2018 02:33

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

Ответить
@ayoubalrshidi3023
@ayoubalrshidi3023 - 29.10.2018 23:20

make video how to add Button into the game Plz

Ответить
@RedEyedPacman
@RedEyedPacman - 10.09.2018 17:30

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?

Ответить
@franzderek
@franzderek - 03.09.2018 14:58

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.

Ответить
@naveenkumarwithyou
@naveenkumarwithyou - 20.08.2018 10:23

I am eager to see how you made this game

Ответить
@dhavalnena7386
@dhavalnena7386 - 19.07.2018 12:50

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

Ответить
@michaelvoline6205
@michaelvoline6205 - 17.05.2018 15:17

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.

Ответить
@reem3063
@reem3063 - 08.05.2018 15:38

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

Ответить
@meerasayabu3823
@meerasayabu3823 - 01.05.2018 12:48

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

Ответить
@abdullahalkhudair773
@abdullahalkhudair773 - 30.04.2018 22:35

Can you please continue the game ?
Thanks

Ответить
@tinloywan4935
@tinloywan4935 - 30.04.2018 10:23

Great! Can you please do more video with SceneKit!

Ответить
@amargupta1081
@amargupta1081 - 29.04.2018 00:09

Make that game

Ответить
@georgequentin8715
@georgequentin8715 - 28.04.2018 17:14

Make the whole game, it would be nice!

Ответить
@blackjaquar
@blackjaquar - 27.04.2018 20:42

Video tutorial on the game itself, please.

Ответить
@anandmukuttirkey5043
@anandmukuttirkey5043 - 27.04.2018 19:16

great video. waiting for next :)

Ответить
@MuhammadAli-zv5vz
@MuhammadAli-zv5vz - 27.04.2018 17:02

Yes please make a whole game video, great video .

Ответить
@kanishkaralasi7408
@kanishkaralasi7408 - 27.04.2018 11:27

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

Ответить