bigianb / bgda-explorer

Code written to try and figure out the data files used in Baldur's Gate Dark Alliance for the PS2
11 stars 6 forks source link

Flipped normals and smooth issue #18

Open tzrp95 opened 2 years ago

tzrp95 commented 2 years ago

The models exported ( at least from JLH ) seem to have some flipped normals, which recalculate normals won't work (on all of them). I assume it's a issue from the exporter when it converts to .obj.

Here are two pictures. First one is how it looks when importing the model, second one is after disabling auto-smooth and recalculating normals.

image

image

bigianb commented 2 years ago

Interesting - I'll take a look when I find time ... although it likely will not be anytime soon. One problem with the models is that the PS2 does not perform backface culling and so there is no real definition of a front side. To fix that I export each triangle twice with separate windings. That can confuse normals - but its necessary because in some models some triangles are really viewed from both sides.