Skip to content

Primitive Reference Points - Alpha Sorting #47

@avan069

Description

@avan069

Using v1.0.17. Exported model primitives use a geographic center of an object rather than the object origin to determine the reference point used by the BMS engine for alpha sorting. 3ds MAX plugin users are able to functionally alpha-sort primitives by shifting the pivot (origin) of an object in MAX, whereas this does not seem to function in Blender.

This makes the process absurdly difficult to do (using the functions provided in Model Viewer instead) in a model with hundreds or thousands of primitives.

To Reproduce
Using an object with "Do not merge" property in tool panel or by selecting "do not join same materials" in preferences, export and compare the node's reference point in Model Viewer against the listed "BMS Coordinates" panel. Shift the object's origin away in blender and repeat: note no change in Model Viewer.

Expected behavior
Exported BML nodes should derive a reference point from object origin in Blender.

Images show example of provided repro steps. NOTE the "BMS Coordinates" panel uses an incorrect axis convention, same issue as was previous corrected in the 3dbuttons.dat export, but it's pretty easy to decipher the mix-up.
Image

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions