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

Improve distance of outline/cell shading #2

Open
emoose opened this issue Mar 3, 2021 · 1 comment
Open

Improve distance of outline/cell shading #2

emoose opened this issue Mar 3, 2021 · 1 comment

Comments

@emoose
Copy link
Owner

emoose commented Mar 3, 2021

Outline stops being drawn on NPCs after just a few meters, would be nice to increase the distance.

Two cvars seem to be distance related: r.SkeletalMesh.OutlineMaxLOD & r.StaticMesh.OutlineMaxLOD, but changing them doesn't seem to make much difference at all (didn't notice any difference whatsoever :/), fortunately there is code actually checking them though, so that might be a good lead on where the outline checks are done.

@emoose
Copy link
Owner Author

emoose commented Mar 16, 2021

E: actually seems I was wrong, r.SkeletalMeshLODBias doesn't seem to have any effect, maybe it was something else I was trying at the time, hm


Seems that it is tied with LOD, changing the r.SkeletalMeshLODBias can increase/decrease the distance, but only up to a point (I guess there's some other LOD check besides r.SkeletalMesh.OutlineMaxLOD)

Forcing the LOD level with code such as below still seems to make the outline fade after some distance though, maybe there's something more than LOD being used...

  auto ffs = UObject::FindObjects<USkinnedMeshComponent>();
  for (auto objs : ffs)
  {
    objs->SetForcedLOD(1);
  }

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

No branches or pull requests

1 participant