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

Auto smooth not exported to p3d #40

Open
killerswin2 opened this issue Dec 13, 2022 · 9 comments
Open

Auto smooth not exported to p3d #40

killerswin2 opened this issue Dec 13, 2022 · 9 comments
Assignees
Labels
enhancement New feature or request

Comments

@killerswin2
Copy link

Attempting to export model, auto smooth shading is not applied/exported to p3d normal info.

Buldozer:
Screenshot 2022-12-13 133846

Blender:
Screenshot 2022-12-13 133931

@killerswin2
Copy link
Author

I assume that this correct behavior, so is there a work around besides manually shading the model?

@AlwarrenSidh
Copy link
Owner

Auto-Smooth is currently not supported. Easiest fix is to go to edit mode, go to Edge mode, then Select->Select Sharp Edges and use the same angle (30 Degrees) and mark all edges as sharp.

@AlwarrenSidh AlwarrenSidh self-assigned this Dec 13, 2022
@AlwarrenSidh AlwarrenSidh added the enhancement New feature or request label Dec 13, 2022
@londo19
Copy link

londo19 commented Dec 16, 2022

neither is Blender's AutoSmooth feature intended to do so.
As AutoSmooth intends to bolster performance,
by creating similar visual effects without to have SubDivs & support loops applied (vertex count).
nor to be considered to provide this feature in this Toolbox.
simply because of technical reasons.
First of all, AutoSmooth is a non-destructive modifier based on maths.
vertices which had been marked sharp are only added as parameter to the mesh.
while in Arma sharp edges need to be marked to be calculated correctly.
What also Blender provides as Alwarren already mentioned.

all your efforts and time would outvalue the gain of such feature dramatically. In my opinion.

in addition to him, you could also use HardOps which provides auto sharpen. what gives great results.
it has to be said that you have to pay for this Addon.
but you may find a free Addon what provides this feature too.

@barman75
Copy link

This is an old and huge problem with shading. Although sharp labeled edges are preserved in a last tool versions, a lot of shading data (like autosmooth, weighted normals, etc.) is not passed in import from p3d to blender. Exporting shadings data from blender to p3d seems fine.
Also, the seams edges data is lost as well somwhere between files (not sure if it is stored).

@AlwarrenSidh
Copy link
Owner

Also, the seams edges data is lost as well somwhere between files (not sure if it is stored).

What edge data do you mean?

@barman75
Copy link

I mean the edges marked as seams (red).
Original blender file.
зображення

Then it exported to p3d, and then imported in blender again
зображення

At least it keeps the edges marked sharp

@AlwarrenSidh
Copy link
Owner

p3d cannot store seams. If you need them, you can regenerate them from the UV islands, but there is no way to store them in the P3D.

@barman75
Copy link

p3d cannot store seams. If you need them, you can regenerate them from the UV islands, but there is no way to store them in the P3D.

Yes, that's obvious.
There is a another question.
Is it possible to make an option for blender that will allows to assign rvmat and texture to some groups of vertices (by Selections or by Active Vertex Group Index). No only in Material tab by materials. It would be very useful
Thanks!

@AlwarrenSidh
Copy link
Owner

Hm, that is a separate issue. Feel free to create an issue for that, but quite frankly, I don't think it would be worth the effort, since it would require a good amount of extra data structures just to save this.

Why not use a material instead?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants