The Game Modding Community - Since 2001

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

  • 1y
    Admer456 avatar
    Admer456 username pic Joined 3y ago
    Gone!
    14,006 points Ranked 322nd
    27 medals 1 legendary 4 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
    • One month a member Medal icon
    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 1y ago
Offline

Submitter

The303 avatar
The303 Joined 1y ago
Offline

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

Category

Details

Difficulty Level
Intermediate Difficulty

Attributes

Share

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

Stats

  • 1,736 Views
  • 1 Posts
  • 1y Submitted
  • 1y Modified

Scores

  • Not yet rated
Sign up to access this!

Hey, you! Mascot

GameBanana is one of the oldest mod sites on the net. Sign up and maximize your browsing experience.

  • Subscribe: Get notified of new submissions like this.
  • Say Thanks: Show your appreciation - send modders points.
  • Post: Give modders your thoughts on their work.
  • Vote: Help your favorite modders win monthly awards.
  • Rate: Rate mods and help them stand out.
  • Flag: Alert moderators and warn members of problems with mods.
  • Watch: Get notified when mods are updated.

Stop Lurking! Sign up now!

Already a Bananite? Login

bcp.crwdcntrl.net tracking pixel