Skip to content

Switch to "OpenGL" normalmap direction? #274

@slipher

Description

@slipher

This is a thread to decide whether we should keep the default interpretation of normalmaps the way it is now (so-called DirectX style), or switch to OpenGL style, which interprets the y-axis (green channel) as pointing the opposite direction. Note that the direction chosen doesn't really have any relation to the rendering library you use - it's up to the GPU shader code to decide how to interpret things.

Advantages of switching to OpenGL direction:

  • More intuitive: y-component points up, as expected, and the coordinate system is right-handed
  • Matches most OpenGL normal mapping tutorials
  • Improves compatibility with Xonotic assets

Advantages of staying on DirectX:

  • Our assets continue to work unchanged - we don't have to add q3shaders to reverse the direction of every existing normalmap
  • Maybe it's more common among games in general? (unclear)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions