arx-tools/arx-level-generator

FTL models and shading

Closed this issue · 2 comments

Quote from Pedro Ordaz:

When testing 3D, I encountered a strange issue: after some investigation I discovered something quite interesting,
entities won't react to angular lighting/flat shading if they use an uncompressed FTL mesh. This is for both
fix_inter and typical movable entities, as a result, eli2's arx_addon only works with smooth shading.

Another interesting discovery is when an entity with flat shading triggers an animation, its shader automatically
switches from flat to smooth in-game

I supose is that some property is broken when exporting uncompressed models, vanilla models work with both flat
and smooth shadings, but models from blender only support smooth shading, if you enable angular via scripts,
the entity will be totally dark and not reacting with any light source. What only the game does internally is
to change the shading when an entity is playing an animation

probably related to the arx libertatis blender plugin

before

before

after

after

when hitting and triggering an animation it changes to smooth
same case for doors and fix_inters

This seems to be more like an Arx Libertatis issue than a level generator issue as Pedro is not using the level generator.