Spherical Normal maps

From Second Life Wiki
Revision as of 11:36, 28 August 2014 by Ollj Oh (talk | contribs) (- 1 line that is no longer needed at all)
Jump to navigation Jump to search

Planar sculpt maps work just fine on all PRIM_SCULPT_TYPE_SPHERE sculpted prims

3e9211d6-c42d-a9ff-95b9-5c1ab349ed38 or 1e266b9c-f842-865f-9eb2-39b43e30cb75

Using .werkkzeug3 [1] to make these normal maps for spherical prims needs the following command chain:

(double right klick in the lower window to add a function, they are chained from top to bottom loke these functions:)

  • Import: (a .png height map image that has the north pole facing up and that has high parts white and low parts black)
  • Color: "Mode" set to "invert" (most normal maps in .werkkzeug need inverted height maps.)
  • Rotate: With "angle" set to 0.250, rotating 90° to the left.
  • Normal: 3d (flat will be red, hills are green on the lower side)
  • HSCB: With 0.800 as "hue" parameter, making "flat" PURPLE.

A PRIM_TYPE_SPHERE normal map for a sphere prim must be rotated by 90°:

but green must still be on the upper side of a hill like here: ab6adc27-e101-9d3a-1097-088104c1f607

Its flat normal-color is bright blue. green must be on top of ah hill. red must be in the lower right of a hill. blue must be in the lower left of a hill.

Using .werkkzeug3 to make these normal maps for spherical prims needs the following command chain:

  • Import: (a .png height map image that has the north pole facing up and that has high parts white and low parts black)
  • Normal: 3d (flat will be red, hills are green on the lower side)
  • Rotate: With "angle" set to 0.250, rotating 90° to the left.
  • HSCB: With 0.600 as "hue" parameter, making "flat" blue.

(there is no "Color: invert" here and we rotate AFTER makign the normal map!)