Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flat-shaded faces exported as smooth-shaded #14

Open
irisnotaprogrammer opened this issue Aug 25, 2023 · 3 comments
Open

Flat-shaded faces exported as smooth-shaded #14

irisnotaprogrammer opened this issue Aug 25, 2023 · 3 comments
Labels
bug Something isn't working duplicate This issue or pull request already exists
Milestone

Comments

@irisnotaprogrammer
Copy link

irisnotaprogrammer commented Aug 25, 2023

All of the normals and UV-map settings seem to not appear to influence the Smooth Flat setting or adhere to smoothing settings.
This issue appears sort of or might be similar to issue #10 .
Models appear with smoothing errors like in the screenshot:
afraid of this

Steps to Reproduce

Exporting any Blend file with the appropriate material settings (in my case a baked texture), any normal and UV-maps setting.
No error messages.
Attached blend file of the model used to test:
Tarwestraat_Gymzaal_nr1_Github.zip
Texture belonging to the model:
Tarwestraat_Gymzaal_nr1_2048x2048.zip

Version Information

Note:
I have messed with the source code and removed the transform module in the exporter. This has solved the smoothing problem, but I will add I have no clue what this might do for animations and their origin points. It was merely a try at attempting to solve this specific problem because for now, it would make my workflow A LOT quicker instead of going from 3.x.x to .obj, import it in 2.79b, export to .x and from there with the XConv tool to .o3d.
For me removing the transform settings and conversion don´t really matter right now: given Blender's design methods, it's good practice to keep transforms in an end product at 1 by definition which is something I do regardless of designing for OMSI.

@irisnotaprogrammer irisnotaprogrammer added the bug Something isn't working label Aug 25, 2023
@Road-hog123 Road-hog123 changed the title Smoothing errors in models Flat-shaded faces exported as smooth-shaded Aug 31, 2023
@Road-hog123
Copy link
Owner

Road-hog123 commented Aug 31, 2023

I'm not sure why the test version doesn't fix this issue, but there's a good reason it's still a test version... when a fix for #10 does make it to a release it will also fix this issue.

For now, as your object has no curved surfaces, you can use an Edge Split Modifier to produce the desired result with the current release version of the exporter.

@Road-hog123
Copy link
Owner

Duplicate of #10

@Road-hog123 Road-hog123 marked this as a duplicate of #10 Aug 31, 2023
@Road-hog123 Road-hog123 closed this as not planned Won't fix, can't repro, duplicate, stale Aug 31, 2023
@Road-hog123 Road-hog123 added the duplicate This issue or pull request already exists label Aug 31, 2023
@Road-hog123 Road-hog123 added this to the 5.0.0 milestone Mar 30, 2024
@Road-hog123
Copy link
Owner

Reopening until I have a unit test that proves this is fixed.

@Road-hog123 Road-hog123 reopened this Mar 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants