arx-tools / arx-level-generator

A node.js library for creating maps for the video game Arx Fatalis
MIT License
6 stars 0 forks source link

FTL models and shading #24

Closed meszaros-lajos-gyorgy closed 3 weeks ago

meszaros-lajos-gyorgy commented 1 month ago

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

meszaros-lajos-gyorgy commented 1 month ago
before ![before](https://github.com/user-attachments/assets/4fa3da37-e8d8-4441-ab7d-5b1ceea557e2)
after ![after](https://github.com/user-attachments/assets/d19c0025-1b06-4709-b0dd-c153b41fea38)

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

meszaros-lajos-gyorgy commented 3 weeks ago

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