armory3d / armory3d/armory

Face normals inconsistency between Blender and Armory with negative object scale

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

Description

I noticed a slight inconsistency between blender and armory with face normals / object scales.

Blender (2 faces removed from default cube, backface culling enabled):
![image](https://user-images.githubusercontent.com/33040347/33800761-53d28280-dd47-11e7-938f-bd7b82b63f9b.png)

Armory:
![image](https://user-images.githubusercontent.com/33040347/33800730-a2d0a34a-dd46-11e7-8927-108a9a0951f9.png)

Blender seems to flip the face normals, if the (product of the signs of the components of the) scale is negative. Armory's way seems to make more sense, however I think consistency would be good between both.

[negativescale.zip](https://github.com/armory3d/armory/files/1545228/negativescale.zip)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the negativescale.zip reproduction and compare Blender's face-normal and backface-culling behavior with Armory when object scale has a negative product of components. Trace the Blender-to-Armory handling of object transforms and normals. Done means the behavior is consistent between Blender and Armory, with the intended result confirmed.

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.