Popular topics: General 3D model requirements How to prepare Bag model in Blender

Blender add-on for Bags preparation

Make bags models for WANNA 3D Viewer in a simpler way

Introduction

We created a special Add-on for Blender to simplify Bags model preparation for WANNA 3D Viewer. It closely follows steps from the "How to" instruction for Blender, but automates a lot of manual steps:

  • Helps to resize body of the bag to real size if necessary.
  • Creates dimension guides.
  • Bakes AO onto separate planes.
  • Create placeholders for cameras (POIs).

Important! This Add-on only works with Blender versions 3.3 LTS and 3.6 LTS, please don't try to use it with older Blender versions.

 

Pre-requisites

  1. Bag should only have main node for the body of the bag and (if needed) strap_long node for the long strap. All names are case sensitive.
  2. Bag should be bottom-centered and face the same way as X axis.
  3. 3D model should have 1:1 scale.
  4. All materials settings should already be done.

 

Installing the Add-on

  1. Download the script here (right click and Save Link As).
  2. Go to Edit -> Preferences -> Add-ons -> Install, choose the file you just downloaded.
  3. Enable it by checking a checkbox.

 

 

Using the script

Open the 3D model of a bag, which has main node, you will see the Add-on window on the right side of the 3D Viewport. Numbers in the picture below correspond to the respective step of this instruction.

  1. Choose the font file in the Path to font (we recommend using Roboto Regular font unless your client uses another font).
  2. Set actual Width, Height and Depth in the respective fields (2a and/or 2b). You can provide either one of cm/inches or both. The script will be using cm dimensions for subsequent Steps #3 and #4, if cm dimensions are not provided, it will convert inches into cm. Do not enter more than 1 decimal digit into either input field.
  3. Optional - skip this step if the 3D model already has 1:1 scale, and the body of the bag is bottom-centered. You can use Resize bag if you need to adjust 3D model to 1:1 scale. It will scale the bag to make sure that width of the main node (everything excluding long strap) matches Width in cm you set in the previous step at 1:1 scale.
  4. Click on Create size indicators to create dimension indicators with the numbers you indicated in Step 3. It will create nodes for both cm and inches using the font provided at Step 1. Length of dimension lines will match cm sizes from Step 2 or recalculated from inches if necessary. Dimension text will match exactly what you entered at the Step 2, if nothing was provided, it will be converted and rounded to the nearest decimal digit. If you used Resize bag, check size and position of the bag and adjust it to match dimension indicators if you see a mismatch.
  5. Click on Create shadows to bake AO from main and strap_long into dedicated planes. It will take up to a couple of mins depending on your computer, Blender will not be responsive until this step is finished.
    • By default, AOs are baked into a 512x512 texture. In rare occasions it produces very pixelated shadows. If you see this, select 1024 instead of 512 and click on Create shadows again to bake AOs into a 1024x1024 texture for smoother shadows. 
  6. Click on Create cameras to create placeholders for three cameras. Each camera will have two different objects:
    • Empty point, which is a pivot point for this POI and will be centered on the screen in the 3D Viewer.
    • Camera itself, which indicates line of sight.
    • Adjust cameras to get POIs you need - refer to the video at the bottom of this page if you need help with that.
  7. Click on Export to export to gltf/glb file. It will ensure that all smarts are exported properly into a format that Wanna 3D Viewer understands.

 

Script change log

v1.8: technical improvements

v1.7: technical improvements

v1.68: minor bug fixes.

v1.65: fixed an issue, which caused Blender for Windows sometimes reusing baked AOs from previous runs.

v1.63: minor fixes.

v1.62: added separate cm/inches input fields to allow mismatching cm/inches and fixed a number of bugs.

v1.51: added 512/1024 switch for AO texture to help with AO pixelization.

v1.4: added support for Blender 2.93, fixed a number of issues.

v1.3: added dedicated Export button, fixed cameras zoom and enabled shadows in the viewport.

v1.2: fixed a lot of bugs and usability issues.

Was this article helpful?

Can’t find what you’re looking for?

Our award-winning customer care team is here for you.

Contact Support