Making a game or interactive content in Blend4Web: Introduction

in #games6 years ago (edited)

Screenshot from 2018-10-17 16-18-06.png

In this series we will be going over how to create a game using the FOSS tool blend4web. We will start out with the basics of installing the software (which is in this post) along with the rational behind choosing b4w as our first tool. The tutorials should be easy enough for most people to follow, however when we get into the coding aspects of the project you will need at least a basic understanding of JavaScript.

Needed software

  • Blender
  • Blend4Web

Rational

There are numerous free game engines out on the market today. Some boasting ease of use, others the shear number of features. However, most of these engines aren't selling the engine per-say but the editor that helps the developers and artists create the content. Blend4Web is by and large a engine without the editor, instead, they interface with blender and add the exports options to create a webGL based applications. These exported files can be encapsulated into any webapp wrapper of your choosing to make it into a local application. Using Blender and Blend4Web creates a much easier workflow than a lot of other applications. There is no need for the artist to use a separate tool to create the objects, setup the scene, or create the logic. Though there are some features that aren't yet available directly in Blender Blend4Web's project manager bridges that gap making it simple to create everything you need to produce your game.

Note: My first choice was a software called Armory as it is more feature rich than Blend4Web. However Armory's stability and the existence of a show stopping bug has steered us away from that project. I hope to do a series on Armory later as well as UPBGE which is a none web-based game engine based on the current game engine within blender but with more polish.

About Blender

screenshot-shading-sintel.png

Blender is an amazing example of Open Source software. Having been around for over 20 years it went from being a closed proprietary tool to a foundation maintained FOSS software suite that continues to get better with every release. It isn't the easiest tool to get a handle on, and you should consider it as a professional application.

For more information about blender check out these links:

Download

click the logo

Note: If you are using Linux blender is found in most distributions. Just use your preferred method of installing software to grab the latest version.

blenderlogosocket.png

As stated above, Blender HAS a built in game engine that has been around since version 2.4 and was vastly improved during the 2.6 days. Unfortunately, a community never rallied behind the blender game engine and it is scheduled to be removed from version 2.8 of Blender. Thankfully, the developers of the software understand and appreciate how amazing it is to have game engines build into blender so they are creating a layer for projects like Blend4Web and Armory to become even more integrated within the software.

About Blend4Web

As stated briefly above Blend4Web is a plugin and project management software for blender that allows users to export their work as a webGL application. However, that description marginalizes the work that has gone into the project. Almost every aspect of a modern webGL compatible game engine is present in this software. Blend4Web has both an Open Source community addition as well as a Pro version that has more bells and whistles including support and material libraries.

For more information check out the Blend4Web website (here)

Download

click the logo

logo.png

Installation

I'm going to assume that you have downloaded and installed / extracted blender and blend4web somewhere on your computer.

  • Start up blender by whatever means your Computers OS has you do it. Once there we will need to tell blender where to find blend4web.

  • Click on File and find User Preferences

  • In the window that has opened go to the Files tab and click on the folder icon to the right of Scripts

  • Navigate to the directory where blend4web was extracted(unzipped) to.

  • Select that directory and it should look something like this:

Screenshot from 2018-10-17 15-54-54.png

  • Click on Save User Settings and for good measure close blender and open it back up.

  • Now go back to User Preferences and click on the Add-on tab

  • Search for blend4 as I have in the screenshot below and enable the plugin by clicking the check box

Screenshot from 2018-10-17 15-55-10.png

Once it is enabled you will have a new render option "Blend4Web" which you can find by clicking the drop down box that by default says "Blender Render." Once selected you will find a new set of options in the render button on the right hand side of the screen. I would suggest playing around with these options, to familiarize yourself with them before the next lesson.

Follow @v-entertainment for more tutorials like this as that is where this post was supposed to be added.

Until then have fun experimenting with Blender and Blend4Web. If you have suggestions about what topics you would like to go over feel free to ask in the comments and I will answer them to the best of my ability.

Sort:  

this is amazing :O it's well written and it's making me want to try it out !! <3 great post !!!

Your post was upvoted by the @archdruid gaming curation team in partnership with @curie to support spreading the rewards to great content. Join the Archdruid Gaming Community at https://discord.gg/nAUkxws. Good Game, Well Played!

Congratulations @bflanagin! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) :

You made more than 1250 upvotes. Your next target is to reach 1500 upvotes.

Click here to view your Board of Honor
If you no longer want to receive notifications, reply to this comment with the word STOP

Do not miss the last post from @steemitboard:

SteemitBoard notifications improved

You can upvote this notification to help all Steemit users. Learn why here!

Congratulations! This post has been upvoted from the communal account, @minnowsupport, by HumbleBeaver from the Minnow Support Project. It's a witness project run by aggroed, ausbitbank, teamsteem, someguy123, neoxian, followbtcnews, and netuoso. The goal is to help Steemit grow by supporting Minnows. Please find us at the Peace, Abundance, and Liberty Network (PALnet) Discord Channel. It's a completely public and open space to all members of the Steemit community who voluntarily choose to be there.

If you would like to delegate to the Minnow Support Project you can do so by clicking on the following links: 50SP, 100SP, 250SP, 500SP, 1000SP, 5000SP.
Be sure to leave at least 50SP undelegated on your account.

Hi, @bflanagin!

You just got a 13.91% upvote from SteemPlus!
To get higher upvotes, earn more SteemPlus Points (SPP). On your Steemit wallet, check your SPP balance and click on "How to earn SPP?" to find out all the ways to earn.
If you're not using SteemPlus yet, please check our last posts in here to see the many ways in which SteemPlus can improve your Steem experience on Steemit and Busy.


This post was shared in the Curation Collective Discord community for curators, and upvoted and resteemed by the @c-squared community account after manual review.

Hi @bflanagin!

Your post was upvoted by @steem-ua, new Steem dApp, using UserAuthority for algorithmic post curation!
Your UA account score is currently 2.763 which ranks you at #12595 across all Steem accounts.
Your rank has dropped 13 places in the last three days (old rank 12582).

In our last Algorithmic Curation Round, consisting of 516 contributions, your post is ranked at #289.

Evaluation of your UA score:
  • Only a few people are following you, try to convince more people with good work.
  • The readers like your work!
  • You have already shown user engagement, try to improve it further.

Feel free to join our @steem-ua Discord server

Congratulations @bflanagin! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) :

Award for the number of upvotes

Click on the badge to view your Board of Honor.
If you no longer want to receive notifications, reply to this comment with the word STOP

Do not miss the last post from @steemitboard:

SteemitBoard Ranking update - Steem Power, Followers and Following added

You can upvote this notification to help all Steemit users. Learn why here!

I keep it to the 2D using GameMaker:Studio 1. Blend4web sounds incredible. I tried Blender in the past and it was, well, hard. But then again I'm not an artist.

Coin Marketplace

STEEM 0.19
TRX 0.15
JST 0.029
BTC 63188.04
ETH 2570.49
USDT 1.00
SBD 2.79