armory3d / armory3d/armory

Dimensions mismatch

Open
#1,259 0 comments 3 reactions 0 assignees View on GitHub
bug
Dominant language
C++
Stars
3.3k
Forks
353
Avg merge
3d 16h
Merged PRs (30d)
1

Description

Hi,

I'm using:
version: 2.80 (sub 41), branch: master, commit date: 2019-01-11 23:51, hash: ce3475f7479
build date: 11/01/2019, 17:03
platform: Windows 10
armory from yesterday

There's a problem with the dimension and the "bounding box" in armory. Here's my scene in blender:
![Blender](https://user-images.githubusercontent.com/47137964/56689596-c2961f00-66db-11e9-9c2d-94cfdba79dd8.png)
On the left, there's a polygon with its origin close to (0,0,0). The right polygon has its origin at its center. Both have no scale applied.

When viewing them with debug in Krom, the output look like this (for the left polygon):
![Krom1](https://user-images.githubusercontent.com/47137964/56689689-eb1e1900-66db-11e9-84bc-4786a7d0cb89.png)

And like this for the right one:
![Krom2](https://user-images.githubusercontent.com/47137964/56689709-fbce8f00-66db-11e9-9a00-7cdc4325543d.png)

Note that for the first polygon the x-dimension is 6.56 and for the second it's 3.3 (y dimensions differ as well)

Here's the .blend to reproduce the problem:
[DimensionBug.zip](https://github.com/armory3d/armory/files/3113949/DimensionBug.zip)

With this bug, no reliable calculation based on the dimension of the object can be performed.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by opening the attached DimensionBug.zip scene in Blender and reproducing the two polygons in Krom with debug output. Compare their reported dimensions and bounding boxes when their origins differ; done means equivalent geometry produces consistent, reliable dimension and bounding-box calculations regardless of origin placement.

Written by the indexing model from the issue text.

Assessment

Tech stack
blender
Domain
computer-graphics
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.