Skip to content

Conversation

@pmolodo
Copy link
Contributor

@pmolodo pmolodo commented Jul 24, 2025

Description of Change(s)

My original proposal of a bimodal formula for ies:angleScale included a + π term when angleScale < 0:

$$ \frac{\theta_{light} - \pi}{-angleScale} + \pi, \newline \quad\text{if } {angleScale < 0} $$

...and my actual implementation of the formula for an HdEmbree reference UsdLux renderer includes the + π term:

theta = (_pi<float> - theta) / angleScale + _pi<float>;

...but somehow I left it out of the schema docs:

𝛳<sub>ies</sub> = (𝛳<sub>light</sub> - π) / -angleScale

This fixes that mistake.

Thanks Ali Fatoorechi for catching this!

Link to proposal (if applicable)

PixarAnimationStudios/OpenUSD-proposals#77

Checklist

@jesschimein
Copy link
Collaborator

Filed as internal issue #USD-11271

(This is an automated message. See here for more information.)

@pixar-oss pixar-oss closed this in a5fb325 Aug 6, 2025
meshula pushed a commit to meshula/USD that referenced this pull request Sep 11, 2025
My [original proposal of a bimodal formula for ies:angleScale](https://github.com/pmolodo/OpenUSD/blob/ies-angleScale-findings-questions/pxr/usd/usdLux/iesAngleScale/UsdLux-IESAngleScale-FindingsAndQuestions.md) included a `+ ` term when `angleScale < 0`:

$$
    \frac{\theta_{light} - \pi}{-angleScale} + \pi, \newline
         \quad\text{if } {angleScale < 0}   \\
$$

...and my [actual implementation of the formula for an HdEmbree reference UsdLux renderer](PixarAnimationStudios@fdf0da0#diff-77b2c6df291efe4099038fa3e6d029fac5e1dd4eb2638675f2de3af4e7ea892fR140) includes the  `+ `  term:

```cpp
theta = (_pi<float> - theta) / angleScale + _pi<float>;
```

...but somehow I left it out of [the schema docs](https://github.com/PixarAnimationStudios/OpenUSD/blob/d0d5c33d5655f206a02b58311efa841890fb3894/pxr/usd/usdLux/schema.usda#L853):

```
<sub>ies</sub> = (<sub>light</sub> - ) / -angleScale
```

This fixes that mistake.

Thanks Ali Fatoorechi for catching this!

(Updates from original PR: Also updated same incorrect formula in usdLux user docs (schemaUserDoc.usda) and re-generated appropriate markdown.)

Closes PixarAnimationStudios#3753

(Internal change: 2374194)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants