Home Unreal Engine

Weird Lightmap Artifacting

greentooth
Offline / Send Message
marks greentooth
Getting some bizarre artifacting on lightmaps for this static mesh, this is just a lowpoly with flat grey diffuse and a normalmap on it:

justfuckoffudk.jpg

I have no idea what is causing this or how to fix it. It isnt happening with other meshes where I used exactly the same process to import and light them. The weirdest thing is when you break the lighting and need to re-bake it ... the weird artifacting is gone and the normalmap starts looking like its actually being rendered.

liekwut.jpg

this is the material
matsetup.jpg

actor properties:
meshproperties.jpg

Replies

  • Bal
    Offline / Send Message
    Bal polycounter lvl 17
    How do your lightmap UVs look? That seems the most probable source of the problem.
  • marks
    Offline / Send Message
    marks greentooth
    lightmap UVs are the same as UV channel 1, 100% unique UVs nothing overlapping - channel 1 textures are 1024x2048 if that matters, UVs are here:

    pillaruvlow.jpg
  • Bal
    Offline / Send Message
    Bal polycounter lvl 17
    Those UVs are super packed for a lightmap unless you're baking some crazy resolution, also lightmaps are square, so your ratio will be wrong and the vertical gaps will be even smaller. Not sure this is the cause of the problem, but maybe try remaking your UV2s (kinda tricky having something clean considering the geometry of your model), or just baking vertex lighting instead (add a few extra vertical loops if necessary).
  • Habboi
    Offline / Send Message
    Habboi sublime tool
    Try setting detail mode to high in properties. Also raise lightmap resolution to say 1024 as a test to see if that helps.

    What are your shadow settings? Modulate? Normal? I doubt this will help but have you tried flipping the normal map green layer?

    Turn off overide lightmap resolution.
  • sprunghunt
    Offline / Send Message
    sprunghunt polycounter
    I don't know if it's a direct cause but the UV's you have for your lightmaps aren't terribly efficient.

    I'd try re-mapping the second channel with fewer UV islands and fewer seams. The fewer seams you have in your lightmap UVs the fewer opportunities for bleeding and splotches you'll have.

    Remember lightmaps have no padding. So everywhere you've got seams is black and that will bleed into the lit areas causing blotches.
  • marks
    Offline / Send Message
    marks greentooth
    I've set the detail to high and tried highres lightmaps, didnt make much difference. I'll mess with the lightmap UVs and see what happens. If you look at the original problem though, the artifacting is going right across like 10 different UV shells - I dont think the lightmap UVs are whats causing this. I see that they suck and need to be fixed anyway, but I dont think thats the root of the problem here.
  • tristamus
    Offline / Send Message
    tristamus polycounter lvl 9
    If it's not the lightmap UV's、I can only imagine it's a setting in UDK, or something up with your lights in your scene.

    Are you using lightmass? What are your settings in lightmass?

    Also, instead of using the lightmap resolution override, have you tried just adjusting it in THAT particular static mesh assets properties window?
  • Ben Apuna
    At first glance I'd think it's the lightmap UVs, but if you've already tried that...

    It might sound strange and it's just a guess, but what about the scale of your mesh? Is it around the same size as a typical UDK prop? Maybe 192 units or so tall? If it's really small then the lightmass settings might have an effect. StaticLightingLevelScale might be something to tweak if that's the case.
  • marks
    Offline / Send Message
    marks greentooth
    Lightmap Coordinates were set to the wrong UV channel in the static mesh editor. I really am a retard sometimes =s
  • tristamus
    Offline / Send Message
    tristamus polycounter lvl 9
    marks wrote: »
    Lightmap Coordinates were set to the wrong UV channel in the static mesh editor. I really am a retard sometimes =s

    It happens to the best of us ^_^
Sign In or Register to comment.