Skip to main content

Creating Breakable Object in Blender


warning

This article is under construction

Need to know


About

In X-Ray, Dynamic Objects can be breakable if you set them up correctly.

Start

First, we need a model that you have made or downloaded. I'll have one of those:

Model Exmaple centered

Choose your model and duplicate it.

note

When breaking a model, a separate, already broken model will be spawned. It can be divided parts of the original object or the same object, but with a different number of bones and Bone Shapes.

note

Note that the broken parts should repeat the place as in the original model. For example:

We need to divide the parts of the original model into component parts:

Model Separated centered

Bones

Main article: Setup Dynamic Object in Blender

For the main object we need to create a bone and a Bone Shape and Joint Type - Rigid.

alt text centered

For parts of the object we will also need to create our own bones and Bone Shapes.

alt text centered

Surface

Shader

Compiler

Material

Main article: Creating Game Material in SDK

The main object needs to be matched with a suitable Game Material (where the Breakable flag is set). List of all materials.

Finish

At the end we should have two models. One for the unbroken version of the object, and one for the broken one.

Go to Object PropertiesObject Properties svg-icon.

In X-Ray Engine: Object select Dynamic or Progressive Dynamic in the Type list.