Creating Billiards in Unity

Making a simple pool table and game using Unity3D and Blender
Demo website: nickmaltbie.com/PoolSet-Unity
GitHub Project: github.com/nicholas-maltbie/P...
In this showcase, I have the goal of making a simple pool game in Unity to serve as a learning example and show off previous projects with more examples. I start off by making the pool model in blender from some schematics I found online, then import the resulting models into unity. From here, I made a procedural texture to render the pool balls as each image is almost the same just with some colors and numbers swapped around. I then had to arrange these pool balls in a nice grid format like in a game of eight ball. Finally, I added a basic player controller to move a ball around. Striking the ball at an angle with a pool cue will have to be left for a future video topic. From here I added a few more finishing touches and have a small pool table demo ready.
The project is open source and available on GitHub, feel free to look at that repo if you’re interested in how various parts of the project work or how any of the assets are designed. There is also an interactive web demo hosted on GitHub as well that you can view in your browser on your mobile or desktop device.
Previous video with an overview of designing character controllers: • Designing Character Co...
Chapters:
Intro 0:00
The Table 0:16
Modeling the Table 1:27
Coloring the Table 3:51
Pool Balls 4:17
Pool Ball Image 5:03
Procedural Images 6:01
Two Faced Balls 08:21
Ball Setup 8:54
Playing the Game 9:44
Final Touches 10:32
Next Steps 10:52
Outro 11:22
#gamedev #madewithunity #blender

Пікірлер: 20

  • @HATL201
    @HATL2012 жыл бұрын

    Good stuff! I'm also currently working on a billiards game myself. It's a lot of fun and helped me learn a more about Unity's physics system.

  • @NickMaltbie

    @NickMaltbie

    2 жыл бұрын

    Thanks! I hope you found the video informative. Will probably make a follow up about physics materials for the balls and table in the future but need to spend some more time sorting it out on my own first.

  • @VerdASMR
    @VerdASMR2 жыл бұрын

    6:20 accurate description of my programming, great video btw. Will be keeping up with you 😀

  • @NickMaltbie

    @NickMaltbie

    2 жыл бұрын

    We all run into errors. Seemingly simple task to generate positions to organize the balls in a grid and it took way too long to get it to work. Every time it failed I saw them explode on the bord

  • @tp-project
    @tp-project9 ай бұрын

    Been testing a similar thing and the physics for it are totally unrealistic. I can see in your video you have the same problem and effectively just have a bunch of balls colliding around and hitting walls in a totally unrealistic way. Did you ever get any further with this? Mostly this video seems about Blender.

  • @webhooktips
    @webhooktips Жыл бұрын

    Very good

  • @NickMaltbie

    @NickMaltbie

    Жыл бұрын

    Thanks

  • @sudeepjainsudeep
    @sudeepjainsudeep Жыл бұрын

    More like a Blender tutorial.. In a pool game physics and aiming ( the white line which shows the target hit and its direction) are two important areas which has been missed in this video. What a good graphics without a proper functioning game.

  • @NickMaltbie

    @NickMaltbie

    Жыл бұрын

    Very good point. I’m planning on adding a follow up video about adding physics and game mechanics to the game. Haven’t finished exploring the built in physics materials for adding the bounce and hitting mechanics! Will definitely make a follow up video on this topic.

  • @sudeepjainsudeep

    @sudeepjainsudeep

    Жыл бұрын

    @@NickMaltbie that would be really great. because right now I am working in a 2D Pool game and unity physics sucks. Whenever you start on your work, see if you can find a solution to the problem - when a ball touches the edge of f the table at slow speed and has low angle, it just roll around with the edge, and not bounce back. I have tried every possible combinations of bounciness, friction, mass etc, but can't worked it out. Any help will be really appreciated.

  • @NickMaltbie

    @NickMaltbie

    Жыл бұрын

    I had the same problem actually. I was going to try and tackle it by adjusting the physics settings a lot or making a custom physics system like my OpenKCC project and writing some custom physics code! Having the projected line should be very similar to how I projected the player movement for the OpenKCC project. I’ll definitely make a follow up note on the GitHub project for these features :)

  • @sudeepjainsudeep

    @sudeepjainsudeep

    Жыл бұрын

    @@NickMaltbie I found the solution to this issue. It was not entirely fault of bounciness or friction values. It turned out that a property in Player Setting was impacting the bounciness at low speed. So go to Player Setting - Physics2D and then look for the property Velocity Threshold. Default value is 1, that means if pool balls velocity drops below that, it would be treated as no bounciness. I set the value as .2 and it worked. Don't set value 0 or too low as it can introduce jitters. In 3D this property calls Bounce Threshold. Hopes this helps.

  • @NickMaltbie

    @NickMaltbie

    Жыл бұрын

    That’s awesome! I’ll make sure to include these notes in the follow up video. Thanks for the follow up investigation.

  • @kipchickensout
    @kipchickensout Жыл бұрын

    when it looks all wack with smooth shading, i think you can either use the edge split modifier, or since that fucks up geometry, even better, enable autosmooth with normals and change the threshold angle if needed you could've loaded the images into the background to basically just easily trace them

  • @NickMaltbie

    @NickMaltbie

    Жыл бұрын

    I’ll have to check out those modifiers. also, tracing images will probably be easier next time :)

  • @kipchickensout

    @kipchickensout

    Жыл бұрын

    @@NickMaltbienoice :) second one isn't a modifier, i think it's in the vertices tab

  • @JarppaGuru
    @JarppaGuru9 ай бұрын

    2:43 you need add lines where you not want smoothing mean every cornet that need be sharp you need 2 more huh OR not smooth? you can lie with graphics lol

  • @JarppaGuru
    @JarppaGuru9 ай бұрын

    2:04 this is problem for modeller. you need be engineer. you allready should know coordinate or corners and middle point LOL bcoz engineer build with numbers not just drag it look fine LOL 2x and im 101% sure blender or what eva it is have snap LOL 3x