Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Mind-Melding Unity and Blender for 3D Game Development
Mind-Melding Unity and Blender for 3D Game Development

Mind-Melding Unity and Blender for 3D Game Development: Unleash the power of Unity and Blender to create amazing games

By Spencer Grey
€28.99 €19.99
Book Dec 2021 460 pages 1st Edition
eBook
€28.99 €19.99
Print
€37.99
Subscription
€14.99 Monthly
eBook
€28.99 €19.99
Print
€37.99
Subscription
€14.99 Monthly

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Buy Now

Product Details


Publication date : Dec 31, 2021
Length 460 pages
Edition : 1st Edition
Language : English
ISBN-13 : 9781801071550
Category :
Table of content icon View table of contents Preview book icon Preview Book

Mind-Melding Unity and Blender for 3D Game Development

Chapter 1: Melding Unity and Blender

"The journey of 1,000 parsecs begins with a single thruster burn." – The AutoSage of Rigel VI

Hello, Earthling! How would you like unlimited cosmic power? That is essentially what you get when you use the ultra-versatile Unity game engine in combination with the awesome assets you can create with the Blender graphics toolkit. "Wait a minute," you say with worry, "that much power sounds expensive." Well, worry not! All that power can be had for the low, low price of… nothing

(Full disclosure: if you start making more than $100,000 a year with Unity, you need to start paying a licensing fee. You should be so unlucky!)

This book starts you on the path to that unlimited power. Once begun, it is a never-ending journey bounded only by your effort and imagination. Unity and Blender go together like some of the most famous human combinations: 

  • Peanut butter and jelly
  • Pen and paper
  • Thelma and Louise

On our journey, we will learn how to create, alter, texture, animate, and script 3D objects in Unity and Blender and exchange them between the two programs in our pursuit of making breath-taking, mind-altering, fun-inducing, superlative-worthy video games.

This chapter lays the groundwork for what lies ahead. We will cover the following:

  • What is Unity and why choose it?
  • What is Blender and why choose it?
  • What software, hardware, and knowledge should you have to make this journey?

What is Unity?

Unity is a paradox. It is a video game engine that is not a video game engine, or rather, it is so much more than that.

Firstly, what's a video game engine? Aww, come on. Are you really reading this book and asking that? Okay, you are forgiven. Maybe you are recovering from a mind-wipe. A video game engine is a software tool that helps you to create a video game. One example of an incredibly famous video game engine would be… Unity!

Unity was first released in 2005. It was available only on Mac and could only publish games for Mac. That very quickly changed and now, over a decade later, Unity is a mature and capable (though not yet sentient) piece of software. Unity is available for use on Windows, macOS, and Linux. As of this writing, Unity can create 3D and 2D games for more than 25 different platforms! These platforms include Windows, macOS, and Linux as well as WebGL, PlayStation, Xbox, Nintendo Switch, various virtual reality and augmented reality platforms, and more!

Here is an example of a made-in-Unity, first-person-shooter:

Fig. 1.1 – Escape from Tarkov. Developer: Battlestate Games

Fig. 1.1 – Escape from Tarkov. Developer: Battlestate Games

And here is an example of a retro 2D arcade game:

Fig. 1.2 – Cup Head. Developer: Studio MDHR

Fig. 1.2 – Cup Head. Developer: Studio MDHR

When I say Unity can "create games," I don't actually mean it can only "create games." That's just the tip of the planetoid. Unity is currently used to create many different kinds of experiences in areas and industries besides video games, including the fields of virtual/augmented/extended reality (VR/AR/XR), simulation, real-time cinema, film pre-visualization, and automotive design and marketing. Oh yeah, let's not leave out construction, architecture, art installations, engineering, and research data visualization. Got all that? For those of you sitting in the back, there may be a pop quiz later.

Now, it's true that there are other powerful game engines out there, such as Unreal, Godot, and so on. So why should Unity be your go-to game engine of choice?

Top 12 Reasons for Using Unity

These are the top reasons for using Unity as your game engine of choice:

  1. Versatility: If you can dream it, you can build it, all the way up to AAA titles. Unity has an amazing toolset that allows you to create 2D and 3D games ranging from the very simple to the very complex. It can be your go-to choice whether you are re-making Pong or creating the next best MMORPG.
  2. Ease of Learning: To be clear, Unity development can get very complex. But to get started with Unity and produce something surprisingly fun and advanced can take as little as 15 minutes. And Unity caters to different learning styles, with visual scripting available for those who prefer that to code editing.
  3. Portability: With little to no modification, you can get your latest masterpiece running on a number of the many platforms Unity supports, including desktop, web, mobile, and XR!
  4. Community: You are not alone. Unity has a development community of over 1.5 million people. You read that right, 1.5 million humans. Of course, that is insignificant on a galactic scale, but from your limited perspective, it is quite impressive. This means that if you run into a problem or need advice, the answers are out there in cyberspace. The Unity developer community is very friendly and encouraging as well. 
  5. Learning support: Unity has excellent documentation as well as an extensive, dedicated, free learning site: https://learn.unity.com. This is not to mention the hundreds of high-quality tutorial videos on YouTube as well as the many excellent how-to books available (such as this one!).
  6. Customizability: Every developer and every project is different. The Unity editor is tremendously configurable and even programmable. You can create in-editor custom tools to make working on your specific game much easier. And if you need a certain special visual quality for your game? Even the rendering pipeline Unity uses for graphics is programmable and customizable. 
  7. Price: Free! Did I mention that already? You only need to start paying a fee if your games start making gobs of money. Gobs.
  8. Reach: You have certainly played a Unity-made game before whether you knew it or not. As of the writing of this book, Unity games have reached over 500 million gamers and the Unity engine is responsible for creating 34% of free mobile games on the market. Unity games reach every game market there is.
  9. Assets: 3D models, 2D art, visual effects, sound effects, GUIs, tools, templates, and much more. Back in the bad old days of game development, there were some powerful game engines and development technologies available (anyone remember Microsoft's XNA?) but, as an indie developer or hobbyist, there was nothing to put into your game unless you created it yourself or paid (or mind-controlled) a talented artist. It cannot be overstated how valuable the Unity Asset Store is, whether for assets to use in prototyping or in your final release. And some very high-quality assets are available for free. In fact, on our journey, we will use multiple free assets in addition to the ones we create.
  10. Development Support Tools: Unity includes tools for integration with different code editors/IDEs, version control systems, asset creation tools (such as Photoshop), and it supports collaborative team development as well.
  11. Monetization-Friendliness: Unity wants you to profit from your efforts! Built-in packages such as Unity Ads and In-App Purchases make it easy to build revenue opportunities into your game. And the Unity Analytics tools allow you to discover and make use of insights about how players play your game. Even minor game changes can greatly boost the success of your game.
  12. Maturity: Unity has been around long enough that most of its sharp edges have been smoothed. Over and over, every day the engine proves itself to be stable, effective, and reliable.

With Unity explained away, let's take a look at the other focus of this book…

What Is Blender?

Well, firstly, Blender is not a kitchen appliance. If you try to make a game with Unity and that kind of blender, the results could be interesting, but it sounds rather dangerous and messy.

Blender is described as a "computer graphics software toolset." It was first and foremost designed to create sophisticated 3D graphics when it was released in 2002 but now is capable of producing spectacular 2D creations as well.

Blender is free and (unlike Unity) open source. It is used every day for creating assets and animations for computer games and visualizations. In addition, it can create animated films, visual effects, and artwork, models for 3D printing, simulations of fluid, smoke, and soft bodies, and it also does video editing and compositing. Did I mention it's free? As in, costing no money.

So, what's the catch?

It's a beast.

When you first experience Blender, especially if you have had no previous experience with 3D creation software, you may get dizzy and get a nosebleed and want to pilot your ship into the heart of a quasar. But fear not! That will pass!

As intimidating as Blender may seem at first, it can be mastered. The secret is to tackle it a little bit at a time, learning bits of related functionality, and to understand and believe that there is a method to Blender's glorious madness. As an open source project it has grown in different directions with its community and it has its own particular way of doing things. At some point, you will just "get it." 

If you are brave and determined and attentive, you will achieve great success. You get out of it what you put into it (in that sense, it is like the kitchen appliance!).

Here is some Blender "wow":

Fig. 1.3 – A Party Tug at 6:00 A.M., by Ian Hubert

Fig. 1.3 – A Party Tug at 6:00 A.M., by Ian Hubert

As with Unity, there are many powerful, competing Digital Content Creation (DCC) programs available, two of the biggest being 3DS Max and Maya. So why would we use Blender over one of those?

Top 8 and a Half Reasons for Using Blender

Although this list isn't as long as the one for Unity, many of the reasons to use Blender are the same and they are no less important.

The top reasons to use Blender are:

  1. Free and open source: Other industry-standard 3D applications (such as 3DS Max, Houdini, and Maya) cost thousands of dollars. Blender gives you AAA graphics capabilities for nothing. The fact that Blender is open source might not seem like an immediate benefit to non-programmers, but it actually has tremendous benefits. See Extensibility, below.
  2. Versatility: This book will focus on using Blender for modeling, texturing, and animation, but Blender is a treasure trove of functionality. Unlike other proprietary modeling programs, Blender is more of a "one-stop shop", with capabilities that include powerful 2D graphics creation and animation, motion tracking, and video compositing, among others.
  3. Community: Blender has a huge user base, with some estimates putting it at around three million Earthlings. Like the Unity community, it is very friendly and helpful, providing support and inspiration.
  4. Learning Support: In addition to the official Blender documentation, there are hundreds of excellent YouTube videos to help you learn, not to mention highly valuable resources available in book form (ahem!).
  5. Fast Workflow: Once you get comfortable with Blender's preferred mouse-and-keyboard work process, you will see your productivity soar. It is arguably faster than the more menu-oriented workflows of other programs. 
  6. Customizability: Blender is nothing if not highly customizable. You can change just about everything in the UI and input system to your heart's content. Beyond that, the application is programmable via the popular Python language.
  7. Lightweight and Multi-Platform: Blender easily runs on Mac, Windows, and Linux. In addition, compared to other top 3D applications, Blender is tiny. It can easily fit on a thumb drive you take with you and run anywhere.
  8. Extensibility: Blender has a huge number of existing plugins, ranging from the very general to the super-specific (for example, there's one just for creating rocks). Because Blender is open source, it's not limited by the size of an in-house development team. This means that developers from all over the world are constantly working on new features and creating plugins. 
  9. Built-in Monkey: Unlike other programs that augment their standard palette of 3D primitives (cube, sphere, and so on) with a teapot, Blender comes with its own 3D mascot, Suzanne the monkey. 

    Show me the monkey!

Fig. 1.4 – Suzanne. Another future overlord?

Fig. 1.4 – Suzanne. Another future overlord?

We have now identified our two primary tools for achieving cosmic power. But what do you need to use them?

Requirements for this Book

We are boldly going where a lucky few have gone before.

In this book, we will get comfortable using Unity and Blender hand in hand, specifically learning how to create new assets in Blender—and modify existing ones—and then incorporate them into a simple sci-fi Unity mini-game project. We will learn how to create materials and do animation in both Unity and Blender, and we will learn best practices for when to use each tool.

By the end of this book, we will have covered an incredible amount of ground (or space?). You will have created, animated, and scripted some science-fiction themed props, scenery, and characters that you can reuse in your future games.

The following sections outline the bare minimum in terms of knowledge, hardware, and software that you will need in order to have a pleasant and productive experience with this book.

Modeling versus Sculpting

Blender has two primary 3D creation methods: polygonal modeling and sculpting. Polygonal modeling focuses on creation by assembling polygons such as quads and triangles, whereas sculpting treats your creation more as if you were shaping something out of clay. The two creation methods have different workflows and tools. This book will focus on polygonal modeling in Blender.

Knowledge Prerequisites

I'll say this: the braver you are, the less you need to know heading into this book. If you follow along closely, you will be able to accomplish everything we set out to do.

That said, there are just a few basic things that will keep your head from exploding and your blood from boiling:

  • You should have a rough familiarity with 3D concepts such as x, y, and z coordinates and transformations within that space: translating, rotating, and scaling. It helps if you have heard of vectors, but no knowledge of 3D math is assumed.
  • You should have a basic knowledge of using the Unity editor's Scene View and Hierarchy View to place and manipulate a GameObject.
  • You should understand how to examine and manipulate the properties of a GameObject in the Inspector window. You should also understand how to add a Component to your GameObject in this window. 
  • You are able to create a new C# script, add it to a GameObject, and edit it in the code editor of your choice. In this book, we will use Visual Studio. A basic understanding of C# will be helpful to complete the projects, but the code that is included is clearly explained. The majority of this book is not very code-heavy; it is only toward the end of this book, when we start to bring together all the assets we have created, that we will make the most use of scripting.
  • You should know the basics of using an image-editing program such as Photoshop. This knowledge will only be necessary for sections on texturing assets.

If it has not been made clear, you do not need to have any prior experience with Blender.

Software Prerequisites

At a bare minimum, you will need copies of both Unity and Blender installed, updated to the current version of each. As of this writing, the latest version of Unity is version 2020.3.21 and the latest version of Blender is version 3.0.0..

Both programs are cross-platform and available for macOS, Windows, and Linux.

The latest version of Unity can be found at https://unity3d.com/get-unity/download.

It is strongly recommended that you install the Unity Hub software, which helps you manage your projects, your editor installations, and also provides access to key learning materials.

The latest version of Blender can be found at https://www.blender.org/download/.

In addition to Unity and Blender, you should have access to an image-editing program. Photoshop is the industry standard but comes with a price tag. A free alternative is GIMP, which can be downloaded here: https://www.gimp.org/downloads/.

Blender itself has some image-editing capability. Although we will not delve into it, you may want to explore that if you don't use other alternatives.

Hardware Prerequisites

Software needs a place to run, doesn't it? So how do we decide between a desktop computer versus a laptop versus a tablet?

Well, the tablet question is easy to answer. Blender will not run on a tablet. So a desktop or laptop it is then. The particular hardware requirements for Unity and Blender can be found at these locations:

In general, you should do fine with a system that is younger than 5 years old and has DX10 (shader model 4.0) capabilities with a full HD display.

Using a 3-Button Mouse

Yes, you can technically use Blender and Unity without a 3-button mouse. But that is like saying that technically you can survive in outer space without a spacesuit. Those 10-15 seconds you would survive would be pretty painful. In other words, use a 3-button mouse. Your sanity will thank you.

How to Read This Book

Now, I understand that many of you are going to be naughty and flit about between chapters like an over-caffeinated hummingbird. 

Personally, I believe you will get the best learning experience from this book by reading it in chapter order and—although I make efforts to have chapters be as self-contained as possible—I specifically try to have later tasks and concepts build on earlier ones. That said, it is still quite possible to jump around the chapters willy-nilly, like the aforementioned hummingbird. Your eventual punishment for doing so will not be too severe.

Getting Additional Help

One book, even one as awesome and mighty as this one, cannot cover everything, especially when it deals with two complex programs.

Thus, I encourage you to use this book as a launchpad and when you invariably encounter new situations where you need additional help, to make full use of the ample free resources available at your (virtual) fingertips.

The official Unity Support page is at https://unity.com/support-services and the extensive community forums are at https://forum.unity.com.

The official Blender support page is at https://www.blender.org/support/

There are many other unofficial high-quality support sites if you do a little Google searching.

As mentioned, YouTube.com has a vast array of tutorial and showreel videos. 

Packt Publishing also has an extensive line of books for Unity and Blender that delve into many specific topics in much more detail than we can go into here. A complete list can be found by searching at https://www.packtpub.com/.

Summary

Let's review. In this chapter:

We've identified key capabilities of both Unity and Blender and looked at why you should choose these programs over their competitors.

Also, I've flagged that you do not need any prior experience with Blender, but it will help greatly if you have a modest familiarity with Unity.

Besides that essential up-front knowledge, we've looked at what software you will need installed and what hardware will get the job done with the least amount of pain.

We've foreshadowed the mini-game level we will develop in this book, which will give you the skills and confidence necessary to go on and create bigger and bolder things in your other projects.

Coming up next, we will gather the necessary resources for our journey, becoming familiar with the Unity Asset Store and setting up the project where all the action will take place.

Ready to become a master of time and space? I hear your engines firing up and I have received your request to launch. Permission granted.

3… 2… 1… lift off!

Left arrow icon Right arrow icon
Download code icon Download Code

Key benefits

  • Discover how you can enhance your games with Blender
  • Learn how to implement Blender in real-world scenarios
  • Create new or modify existing assets in Blender and import them into your Unity game

Description

Blender is an incredibly powerful, free computer graphics program that provides a world-class, open-source graphics toolset for creating amazing assets in 3D. With Mind-Melding Unity and Blender for 3D Game Development, you'll discover how adding Blender to Unity can help you unlock unlimited new possibilities and reduce your reliance on third parties for creating your game assets. This game development book will broaden your knowledge of Unity and help you to get to grips with Blender's core capabilities for enhancing your games. You'll become familiar with creating new assets and modifying existing assets in Blender as the book shows you how to use the Asset Store and Package Manager to download assets in Unity and then export them to Blender for modification. You'll also learn how to modify existing and create new sci-fi-themed assets for a minigame project. As you advance, the book will guide you through creating 3D model props, scenery, and characters and demonstrate UV mapping and texturing. Additionally, you'll get hands-on with rigging, animation, and C# scripting. By the end of this Unity book, you'll have developed a simple yet exciting mini game with audio and visual effects, and a GUI. More importantly, you'll be ready to apply everything you've learned to your Unity game projects.

What you will learn

Transform your imagination into 3D scenery, props, and characters using Blender Get to grips with UV unwrapping and texture models in Blender Understand how to rig and animate models in Blender Animate and script models in Unity for top-down, FPS, and other types of games Find out how you can roundtrip custom assets from Blender to Unity and back Become familiar with the basics of ProBuilder, Timeline, and Cinemachine in Unity

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Buy Now

Product Details


Publication date : Dec 31, 2021
Length 460 pages
Edition : 1st Edition
Language : English
ISBN-13 : 9781801071550
Category :

Table of Contents

19 Chapters
Preface Chevron down icon Chevron up icon
1. Section 1: There and Back Again – An Asset Roundtrip with Unity and Blender Chevron down icon Chevron up icon
2. Chapter 1: Melding Unity and Blender Chevron down icon Chevron up icon
3. Chapter 2: Gathering Our Resources Chevron down icon Chevron up icon
4. Chapter 3: Entering the Blender Zone for the First Time Chevron down icon Chevron up icon
5. Chapter 4: Asset Assimilation: Returning to Unity Chevron down icon Chevron up icon
6. Section 2: The Right Stuff: Scenery, Props, and Characters Chevron down icon Chevron up icon
7. Chapter 5: On the Level: Making Modular Scenery Chevron down icon Chevron up icon
8. Chapter 6: Living It Up: Adding Fun with Animation Chevron down icon Chevron up icon
9. Chapter 7: Prep Work: Materials, Grids, and Snapping Chevron down icon Chevron up icon
10. Chapter 8: Laying Out the Level Chevron down icon Chevron up icon
11. Chapter 9: Secret Weapon #1: Deploying ProBuilder Chevron down icon Chevron up icon
12. Chapter 10: Secret Weapon #2: Animating with Timeline Chevron down icon Chevron up icon
13. Chapter 11: We Could Be Heroes: Blender Character Modeling Chevron down icon Chevron up icon
14. Chapter 12: It Was Rigged!: Character Rigging Chevron down icon Chevron up icon
15. Section 3: Assets Assemble! Putting It All Together Chevron down icon Chevron up icon
16. Chapter 13: Animation and Movement In-Game Chevron down icon Chevron up icon
17. Chapter 14: Endgame: Adding Spit and Polish Chevron down icon Chevron up icon
18. Other Books You May Enjoy Chevron down icon Chevron up icon

Customer reviews

Filter icon Filter
Top Reviews
Rating distribution
Empty star icon Empty star icon Empty star icon Empty star icon Empty star icon 0
(0 Ratings)
5 star 0%
4 star 0%
3 star 0%
2 star 0%
1 star 0%

Filter reviews by


No reviews found
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

How do I buy and download an eBook? Chevron down icon Chevron up icon

Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

Please Note: Packt eBooks are non-returnable and non-refundable.

Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your eBook for your own use onto any machine
  • You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website? Chevron down icon Chevron up icon

If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

  1. Register on our website using your email address and the password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook? Chevron down icon Chevron up icon
  • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
What eBook formats do Packt support? Chevron down icon Chevron up icon

Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

What are the benefits of eBooks? Chevron down icon Chevron up icon
  • You can get the information you need immediately
  • You can easily take them with you on a laptop
  • You can download them an unlimited number of times
  • You can print them out
  • They are copy-paste enabled
  • They are searchable
  • There is no password protection
  • They are lower price than print
  • They save resources and space
What is an eBook? Chevron down icon Chevron up icon

Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.