secondlife / secondlife/viewer

Align Planar does not work for PBR textures that are scaled and rotated

Open
#5,679 0 comments 0 reactions 1 assignee View on GitHub

@cosmic-linden is already working on this.

Since Apr 29, 2026.

bug
Dominant language
C++
Stars
299
Forks
146
Avg merge
1d 9h
Merged PRs (30d)
88

Description

Environment

Second Life Release 26.2.0.22375047624 on Win11/OSX

Description

Align Planar does not work for PBR textures that are scaled and rotated.

Reproduction steps

Repro:

  1. Make two boxes and overlap them. (They do not need to be at different rotations like the video)
  2. Put a PBR material on both boxes. (I used "Particle Arrow" from the Library as the Base Color texture)
  3. Set both boxes to planar mapping.
  4. Set one to:
  • Scale u: 5
  • Scale v: 7.5
  • Rotation: 36
  • Offset u: 0.2
  • Offset v: 0.7
  1. Select the other face, then shift-click the face with modified settings.
  2. In the "Texture" tab of the build floater, click the "Align planar faces" checkbox.

Observed: The scale appears to be correct but the rotation and transform are slightly off.

Video of texture on left and PBR on right: https://github.com/user-attachments/assets/ae039d42-146b-4b0b-a2e6-2f31fec89d68

Another view of the PBR:
Image

Expected: The materials on the 2 boxes should align perfectly as Blinn-Phong textures do.

Found while testing https://github.com/secondlife/viewer/issues/2975 in the scope of https://github.com/secondlife/iqa/issues/606


This repo is using Opire - what does it mean? 👇
💵 Everyone can add rewards for this issue commenting /reward 100 (replace 100 with the amount).
🕵️‍♂️ If someone starts working on this issue to earn the rewards, they can comment /try to let everyone know!
🙌 And when they open the PR, they can comment /claim #5679 either in the PR description or in a PR's comment.

🪙 Also, everyone can tip any user commenting /tip 20 @Dan-Linden (replace 20 with the amount, and @Dan-Linden with the user to tip).

📖 If you want to learn more, check out our documentation.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.