Blog

Web Player JSON. Practical Approach

2016-11-01

In the previous article I compared two methods that we use in creating WebGL applications and I clearly showed that the combination of Web Player and JSON is undoubtedly superior to the simple Web Player and HTML. Those of you who do not agree with this, and those who have not read this article yet, please read it first. Then we will go further...

What could be easier than creating a JSON? Open Blender, make a scene, select the Export Blend4Web (JSON) and… scratch your head, puzzled and confused. Yes, now you have to figure out what to do with it. Let’s start from the very beginning.

Blend4Web SDK has an excellent tool called Project Manager. It was made especially so the user isn't left alone face to face with a command line. Let me tell you a little secret: all project management operations are performed by Python scripts. If you consider yourself a huge geek, you can take a look at this part of the User Manual. But for a mere mortal, learning the features of the Project Manager will suffice.

As you probably know, you have to switch to Blend4Web mode (marked red in the picture) to work with Blend4Web settings. Then you only have to press the "Project Manager" button and after a couple of seconds your web browser will open the application you need so much.

Work on a project should start with creating it. For that, there is the "Create New Project" button. Press it, and the following will appear:

This is a setup window for a newly created project. There are a lot of options, not all of which fit on the screen.

The most important thing is that you have to name your masterpiece in the Project Name field and check the Web Player JSON option box. Then, you can simply press the Create Project button to do exactly that, but do not hurry. There are some other options that can be useful.

By default, Project Manager creates an empty project in the designated folder. It is not very useful yet, but you can make the program perform important actions:

1. The Create Scene Starter Files option. Turn it on, and Project Manager will add a new .blend file (Blender scene).

2. Use Material Library. Turn it on if you are planning to use high-quality materials created by the Blend4Web development team. The program will copy the entire library to your project folder.

3. Bundled Project. Blend4Web project regulations imply that different folders are used to store different file types. For example, Blender files are stored in the blender folder, while the textures can be found in deploy/assets. So this option is useful if you want to keep all your files in the project folder. Keep in mind that you can only use the "Bundled Project" option with Web Player JSON and Web Player HTML project types. This feature is especially useful for the simplest applications.

There is yet another fine point in creating Web Player JSON projects. You have probably noticed that after selecting this project type an additional field of options becomes available.

These additional parameters do exactly what their names suggest. The data you have selected is transferred through the URL bar to Web Player and, if you wish to use them, just read these instructions.

So, our project has been created, and now proudly resides in the Project Manager list. Let’s see what you can do with it.

First. You can open the scene you have created in Blender, or you can add a new one to the project folder. The Blend Files column contains all Blender files associated with this particular project. The paths to them are also shown here. Please consider that JSON files should be exported to the folder specified in the JSON Files column.

Second. You can run the Viewer application and check your scene settings right in the browser. You can learn how to work with the Viewer here.

And third. You can view your scene right in Web Player. To do this, click the link placed under the title of your project (in this example, it is "player: My_cool_project.json").

Next time, we will talk about nuances and methods of deploying Web Player JSON applications.

Comments
10 jun. 2022 11:56
Thank you so much for the help here that would be recommended. The people who need to fix the environment setting are able to get it here. Continue sharing the related stuff always would like to visit for more. Thumbs up for the best college essay services work here do share more.
24 sep. 2022 12:58
I know all the toys and gadgets, I can build great applications in different technologies. But I don't like to write code anymore. So I decided to share my knowledge but in a practical approach. You need to get concrete price per cubic meter nz and get more new skills for contractors. The name of the course is Web Player JSON. This must-read web player JSON guide will show you how to turn your players' data into a JSON string, what is supported and not supported, and much more.
04 oct. 2022 17:10
One of the most powerful parts of the Modern Web is the ability to do reactively. The request is often issued, and it can be used to update or create something without reloading the entire page. You need to check these ethics essay examples and get more new tips for essay examples. This can be useful for certain websites that want to get a more immediate response from their users, but it also has its disadvantages – at least if you're trying to store user data in a website's database.
20 dec. 2022 07:48
buy dissertation online is not the cheapest of activities. This is because these projects take months and years to complete. Buying a well-written one is a good way to reduce your workload and free up your valuable time for other activities.
20 dec. 2022 09:59
It's time to don leather jackets that go well with your outfit and create a statement with your style. Currently, celebrity leather jackets are hugely fashionable, especially among teens. For both sexes, a Celebs leather jacket will always be a timeless piece of attire. A leather jacket worn by a superstar with a basic T-shirt and a pair of jeans is nevertheless extremely attractive and something that regular people like you and me should have in our closets, even if you occasionally don't know what to wear. At the website for celeb leather jackets, this leather jacket outfits is the most recent.
01 mar. 2023 12:53
Now is the moment to make a statement with your personal style by wearing leather jackets that complement the rest of your clothing. During this time, celebrity leather jackets are at the height of their popularity basket random, particularly among teenagers.
26 jun. 2023 15:12
A practical approach is key to achieving success in any endeavor, as it focuses on the application of effective strategies and methods. It involves a mindset that prioritizes action, adaptability, and problem-solving, enabling individuals to tackle challenges head-on and make tangible progress. Embracing a practical approach encourages individuals to seek practical solutions rather than getting caught up in theoretical or abstract concepts. One valuable resource that offers practical insights and guidance is the website https://magicalkatrina.com which provides a wealth of practical tips and tools to help individuals navigate various aspects of life, from personal development to career advancement.
14 sep. 2023 13:03
Tyler Durden Jacket has been made from Pure Red leather material. It has two inside pockets and two flaps outside pockets with a contrast cream stitching the same as the original and maroon viscose lining on all over the jacket. Full-length sleeves and Fitted length jacket with a full closure of Zip completed the overall sleek and cool look the same as Brad Pitt Tyler Red Leather jacket. if you are a big Tv Series and movie jackets lover so you should have a look at Yellowstone Jackets and Harley Quinn Jacket.
17 oct. 2023 08:48
<a href="https://thecelebjackets.com/tyler-durden-jackets/">Tyler Durden Jacket </a> Celebjackets have a wide range of jackets inspired by everyone's favorite movie fight club for its fans. They arrive with sure variations like slim in shape, distressed fashion, Shearling, Quilts, hood and plenty greater designs that did not appear as a style earlier than.
17 oct. 2023 08:48
Celebjackets have a wide range of jackets inspired by everyone's favorite movie fight club for its fans. They arrive with sure variations like slim in shape, distressed fashion, Shearling, Quilts, hood and plenty greater designs that did not appear as a style earlier than.
https://thecelebjackets.com/tyler-durden-jackets/
Please register or log in to leave a reply.