Skip to content
This repository was archived by the owner on Aug 25, 2025. It is now read-only.

Fix scaling of texture coordinates for previewsurface#30

Open
mnaehrig wants to merge 1 commit intoospray:masterfrom
NathanaelAtEGR:fix/previewsurface_texcoord_scaling
Open

Fix scaling of texture coordinates for previewsurface#30
mnaehrig wants to merge 1 commit intoospray:masterfrom
NathanaelAtEGR:fix/previewsurface_texcoord_scaling

Conversation

@mnaehrig
Copy link
Copy Markdown

Description of Change(s)

The issue was introduced with commit ba61426. Correct scaling requires that ospray texture map scale is set to the reciprocal of scale factor from Transform2dNode. Also it seems not to be correct to take scale factor from UsdUVTexture as scale factor for texture map. Instead the scale factor from UsdUVTexture is meant to be applied to the values which are read from the texture, but this is not part of this commit.

The issue was introduced with commit ba61426. Correct scaling requires that ospray texture map scale is set to the reciprocal of scale factor from Transform2dNode. Also it seemed not to be correct to take scale factor from UsdUVTexture as scale factor for texture map. Instead the scale factor from UsdUVTexture is meant to be applied to the values which are read from the texture.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant