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. - Хобби
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.
GREAT TUTORIAL WITH DETAILED EXPLANATION !! MUCH APPRECIATED !! THANK YOU :)
Greetings Brian! Liked before watching, pretty sure it is awesome!
Woooow. It's superb. Please release full videos of this game development. Great effort.
Thank You so much #BrainAdvent for all the tutorials 🙏
It's just so fantastic. Thank you !
Yes please make a whole game video, great video .
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.
Great video. Thanks. Looking forward to more videos.
awesome explanation
great video. waiting for next :)
Nice one, pretty need
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.
I'm also getting a blank scene, even with changing the name to MainScene.scn. Any ideas?
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?
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?
what a cool video.
Make the whole game, it would be nice!
Helps, THX
Great! Can you please do more video with SceneKit!
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.
Can you make more tutorials on SceneKit? Also can you make the game you show in the starting of the video?
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.
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 ;(
capital v in view
cant download assets from dropbox because your biz account has expired!! perhaps a new location or refreshed account.
Video tutorial on the game itself, please.
how do you download the art assets folder???? Is it because i deleted it when he told me to?
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
I know this is one year late but all you need to do is change the reflectivity property of the floor.
Can you please continue the game ?
Thanks
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.
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
I am eager to see how you made this game
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
i am getting this error: Property does not override any property from its superclass
Code is identical to your gameviewcontroller
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.
Make a Rubik's cube game toturial using scenekit ✌️
Make that game
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?
This also happened to me. Just hit Command + B to build the project, after it finishes the ball should show up.
Command s to save that scene. Then it will work
'm having trouble in scene kit. my floor is infinite and I don't want that
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!
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
@@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)?
@@swaraagsistla8641 Yes, specular and everything else that's supposed to be there
I can't get the ball file into the main scene file. Can anyone help?
I need help with drag & droping the files in the newest xcode version
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 :(
make video how to add Button into the game Plz
Use an SCNBox and add an UITapGestureRecognizer and check in func sceneTapped(recognizer: UITapGestureRecognizer) whether the SCNBox equals the tapped node.
Neato! Though the Assets you have listed are for a different app, not this one. :p
Thanks for the hint. I have updated the link :)
Thank you! That comicSkyBox is just perfect. I'd love to see that game you implemented as well :)
I’m a teenager who just realized why geometry is so important.
Can we export the game to .apk also sir?
Maybe try a Converter like www.myappconverter.com/v2/
...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"
thank you! I had the same issue.
hats off man. but I am getting a crash report. some problem with down-casting
@@mrBLUEFORMANITE Could you please explain your problem a bit clearer?
Why your code screen is in black ?
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.
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
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?
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.
Brian Advent i see... thank you! great tutorial!
Do the game man! Or maybe I am late, so if you did create the game before this comment please add a link.
Brian hi my name is Sandeep I am interested in developing a 3d games
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.
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!
@@teewuane hello please I have a question is it possible to import an animation of a 3d character from blender?
play at 1.25x thank me later
hello can i contact you in kik or somewhere cause i need you to make me a small project and i will pay you 😊