Results 1 to 3 of 3

[How-To]Fix Shading errors on models

  1. #1
    Moderator Darkbladecr's Avatar
    Join Date
    Nov 2005
    Location
    CoH:Modern Combat

    [How-To]Fix Shading errors on models

    Now if anyone has ever imported models into a game before they will have heard of shading errors, or more commenly known as bad geometry. This usually occurs when you have a model that you have imported from a different 3D program and the recreation of the mesh is not good and the smoothing is broken and the model has open faces... etc..

    In essence you hope that somehow you won't have to fix it all, import the model into the game and... it's screwed...



    Now there are 2 ways to go about this. Go back to the drawing board and whip out your fine editing skills and in 3D max fix the faces and shading. Now this can take a while depending on the detail of the model and exactly how bad the shading is. To be honest, even after you have done this, its not a 100% fullproof.

    However there is one thing that Relic has included which will bypass these shading errors. There are 2 shaders that relic have included that can bypass the normal shading of the Essence Engine and essentially bright up each face equally, so that regardless of bad geometry or incorrect smoothing the model will look properly rendered (no black spots).

    In order to take advantage of this you have to pop onto 3D max, and change the shader you are using for your model to either:
    dx9_fullbright.fx
    dx9_impostor_billboard.fx



    The only drawback to these shaders are that they can only use diffuse and normal maps. Additionally the general shadowing of the model isn't perfect (lack of a occluison map). However, we don't care! Since we have just saved hours of work!

    End Result:


    Anyway, if you have any more questions, feel free to post them!
    Last edited by Darkbladecr; 28th Jul 11 at 6:38 AM.

  2. #2
    Member Janne252's Avatar
    Join Date
    Aug 2009
    Location
    Finland
    I've got same kind of weirdly shaped building by placing default buildings to the editor. Usually saving map / restarting editor fixes it. I wonder what causes that? This seems to occur on every kind of object, but for now I have only experienced this with buildings and trees. I've used worldbuilder for a long time, and I have been running it in the dxt9 mode pretty much from the beginning, so I have no idea what started this.

  3. #3
    Moderator Darkbladecr's Avatar
    Join Date
    Nov 2005
    Location
    CoH:Modern Combat
    This is specifically for custom models, any problems you are getting on Relic models, is not usual. Like you said, just restarting Worldbuilder does the trick.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •