Editing vertex normals for better foliage (3dsmax)

A Tutorial for GoldSrc Engine

Using transparent image planes is a standard practice for creating foliage models but there is a big flaw where the planes are lit too "flat" and create harsh shading.  Fortunately there is a method of editing the vertex normals to drastically improve the overall lighting of planes in a cluster (Remember in goldsrc there is no "nocull" texture setting for double sided rendring so you must make each plane with a flipped duplicate for the opposite side).

Step1:

Get "Slidenormals Thief" maxscript.
Run the script and set up a UI shortcut from "customize user interface" if you want (its found under "Category: Slidetools").

Then select your object and add a "edit normals" modifier.  Create a sphere or half-sphere (depending on how you want your lighting to be affected) and shape it over your plane cluster.  Add an "edit normals" modifier to that too.


Step2:

Open up slidetools and choose the reference and destination object and press steal.  Hide or delete your reference object and now you have a model with modified normals.  The normals should all be pointing outwards in a uniform way. (note that some versions of max may make the realtime lighting look wrong, but try exporting and verify your results).

Step3:

Collapse the edit normals modifier and export your SMD.  If you are using a more recent version of 3dsmax (2013+) use either wallworm exporter or Game Zombie SMD tools.

Step4:

Compile your model, then verify your edited normals in HLMV by changing the render mode to "Smooth Shaded" it should look like a nice gradient.

Posts

  • Admer456 avatar
    Admer456 username pic Joined 4y ago
    Gone!
    14,655 points Ranked 314th
    28 medals 1 legendary 5 rare
    • Submitted 30 Tutorials Medal icon
    • Submitted 15 Tutorials Medal icon
    • Returned 1000 times Medal icon
    • Reached 50 subscribers Medal icon
    • Received thanks 50 times Medal icon
    • 10 submissions featured Medal icon
    2y
    Note:
    If you use an image-hosting website (e.g. Imgur) you can embed screenshots into the text area via the formatting tools, like this:


    Gordoon Rocketman

Embed

Share banner
Image URL:
HTML embed code:
BB embed code:
Markdown embed code:

Credits

Original Authors
The303
The303 Joined 2y ago
Offline

Submitter

The303 avatar
The303 Joined 2y ago
Offline

The303
Creator
Sign up to access this!
Sign up to access this!
Sign up to access this!
  • Paypal Donate

Game

Sign up to access this!

Category

Details

Difficulty Level
Intermediate

Attributes

Share

  • Share on Reddit
  • Share on Twitter
  • Share on Facebook
  • Share on Google+

Stats

  • 2,224 Views
  • 1 Posts
  • 2y Submitted
  • 1y Modified

Scores

  • Not yet rated
Sign up to access this!

More from Submitter

More Modelling Tutorials

bcp.crwdcntrl.net tracking pixel