PavelBlend / blender-xray

STALKER (aka xray-engine) import/export plugin for Blender 3D
BSD 2-Clause "Simplified" License
189 stars 39 forks source link

Bones set in blender make the Actor Editor crash #265

Closed PanzerKadaver closed 5 years ago

PanzerKadaver commented 5 years ago

From whatever reason and whatever methods (set bones from scratch or replace mesh in an already set of bones), it look like bones export is broken and try to load a .object in Actor Editor lead to a crash.

The following error is written in the Actor Editor log :

`Object 'c:\users\toxic\pictures\tarkov dump\helmet_zsh\helm_zsh.object' successfully loaded. Loading time - 0.08(s).

FATAL ERROR

[error]Expression : assertion failed [error]Function : x:\stalker_addon\sources\trunk\xrcore\FixedVector.h [error]File : x:\stalker_addon\sources\trunk\xrcore\FixedVector.h [error]Line : 38 [error]Description : id<count`

Importing .object without bones into Actor Editor is done without problem.

igelbox commented 5 years ago

@PanzerKadaver would you mind attach the object file to help us to repro this issue?

PanzerKadaver commented 5 years ago

@PanzerKadaver would you mind attach the object file to help us to repro this issue?

Sure. Here you go. I've also joined my .blend files.

helmet_zsh.zip

PavelBlend commented 5 years ago

The helmet object has no vertex groups.

@igelbox у меня даже не получилось экспортировать из блендера этот объект. Видимо ошибка в коде. Создал issue #267

И надо сделать предупреждение, что "объект не имеет групп вершин" в случае, если у объекта есть скелет. Я создал отдельную issue #266 , так как это не относиться к предупреждениям, а скорее всего связана с отсутствием групп вершин или с отсутствием весов.

PanzerKadaver commented 5 years ago

The helmet object has no vertex groups.

It's an error that I can fix by myself in blender or it's inherent to your plug-in ?

PavelBlend commented 5 years ago

@PanzerKadaver 01 02 The name of the vertex group must match the name of the bone to which it is attached. Here is a lesson on this topic: https://youtu.be/Tl4qTgwQwYw

PavelBlend commented 5 years ago

Did my advice help you? If not, let me know. For now, I will close this issue to clear the bug tracker.