Jump to content
Manuel-ito

[Solved] Having some shading artifacts on model dump, edit, then import

6 posts in this topic Last Reply

Highlighted Posts

Posted:
Last Online:  
 

So, I have a small problem:

I'm getting started in asset making and, as a start, decided to dump then edit the vanilla metro station model so that it occupies a 1x1 space instead of a 2x2. Here's the model in Blender, viewed from above and from underneath:

L8Qwn0h.jpg

When I import it as .obj into the game, I notice these lightning artifacts on the stairs and floorplate:

tZdAFHG.jpg

How can I fix this? I tried remaking the affected triangles and remapping them, but that didn't work.

Also, I noticed a similar problem in the raw dump made with modtools:

spRSa1K.jpg

I tried searching for this problem on the web, but didn't find any exact results. Maybe I'm being a dunce and missing something obvious :lost:

Share this post


Link to post
Share on other sites
Posted:
Last Online:  
 

The second picture with the glow looks like a wrong specular map .. all shiny comes from white spec

Share this post


Link to post
Share on other sites
Posted:
Last Online:  
 

Dumped models are mirrored when you pull them into Blender. That's easy to fix. In Edit mode select everything (hotkey A), hit ctrl + M and then X (I think that's the right axis anyways). Then hit W and select Flip Normals to get all the faces the right way again.

Your other problem is because the whole model is set to smooth shading. In edit mode you can change the shading of different areas of the model. There's a toolbar on the left (3rd tab). Everything but the railing and the sign's post should prob be shaded flat.


My workshop items

Catch my latest project and future plans on my Patreon page

Share this post


Link to post
Share on other sites
  • Original Poster
  • Posted:
    Last Online:  
     

    I tried changing the specular map and the flat shading as suggested. Unfortunately, neither solved the problem. I also tried exporting it as .fbx instead of .obj, thinking that it may not like the .obj format, but that didn't solve it either.

    Here's what it looks like in the asset editor preview window, with the flat shading:

    8jOYUTp.jpg

    At least the floor looks less shiny. And the model is no longer mirrored *:)

    I'll add that I used modtools' asset export feature before on workshop assets for personal use, and those didn't have these lightning issues. Maybe it's an issue on re-importing CO assets?

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
     

    Probably a normal map issue. What happens when you supply a blank normal map?

    • Like 1

    Share this post


    Link to post
    Share on other sites
  • Original Poster
  • Posted:
    Last Online:  
     

    EoYDB86.jpg

    That actually solved it! Thank you *:thumb:

    I first tried without a normal map and the problem was gone. In between reading an older thread about a similar problem and checking the mapping again I found out that, for some reason, the normal map got exported at a higher gamma than usual (the lod's exported fine) One gamma correction later, and that got the normal map back to work like shown above.

    Once again, thanks everyone for the help *:yes:


      Edited by Manuel-ito  

    I was so happy that I repeated the word 'normal' thrice. Removed one and used a synonym

    Share this post


    Link to post
    Share on other sites

    Sign In or register to comment...

    To comment in reply, you must be a community member

    Sign In  

    Already have an account? Sign in here.

    Sign In Now

    Create an Account  

    Sign up to join our friendly community. It's easy!  

    Register a New Account


    ×

    Thank You for the Continued Support!

    Simtropolis depends on donations to fund site maintenance costs.
    Without your support, we just would not be in our 24th year online!  You really help make this a great community. *:thumb:

    But we still need your support to stay online. If you're able to, please consider a donation to help us stay up and running. This helps sustain a platform where we can share our community creations for years to come.

    Make a Donation, Get a Gift!

    Expand your city with the best from the Simtropolis Exchange.
    Make a Donation and get one or all three discs today!

    STEX Collections

    By way of a "Thank You" gift, we'd like to send you our STEX Collector's DVD. It's some of the best buildings, lots, maps and mods collected for you over the years. Check out the STEX Collections for more info.

    Each donation helps keep Simtropolis online, open and free!

    Thank you for reading and enjoy the site!

    More About STEX Collections