Cycles: Optix-OSL sampling issue of window texture coordinate #108372
Labels
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#108372
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Operating system: windows 10 Pro
Graphics card: RTX 3090 (game ready driver version 531.79)
Broken:
First noticed: blender 3.6.0 beta (19-05-23)
Encountered again in: 4.0.0 alpha (26-05-23)
Worked: Unknown
Short description of error
In the attached blend, when OptiX is used in conjunction with cycles OSL, window texture coordinates are scaled by the distance of the viewport camera to the shaded position. I confirmed this by scaling window coordinates by 1 / view distance. The scaling also applies to textures sampled using these coordinates.
Texture normals appear to also differ slightly between Optix and CPU, with normals appearing darker with OptiX disabled, no other co-ordinates are affected as far as I know.
Exact steps for others to reproduce the error
Distance_scaled_window.blend
file.Workaround:
Test file: Distance_scaled_window.blend
Video: Video demonstation
Hey, thank for report. Pleas, <10 nodes in one tree, with packed textures and without story, just steps to see the bug and steps to reproduce it. It really hard to try to confirm/bisect/fix something like that.
Updated blend file: removed all nodes that didn't appear in the attached video "blue_viewZ.mp4", textures are now packed.
Updated report: removed first person accounts of how this bug occurred. Added additional context for texture sampling side-effect in OSL.
Hi, thanks for the report.
As far as I understand, the blue shading is due to
face orientation
property fromviewport overlays
panel.I'm observing tiled texture with OptiX+ OSL options. Is this you're reporting here?
That's right, a misunderstanding on my part. It isn't related to the issue.
I'm not sure what you mean. To be more specific. In the attached blend, when OptiX is used in conjunction with cycles OSL, window texture coordinates are scaled by the distance of the viewport camera to the shaded position. I confirmed this by scaling window coordinates by 1 / view distance. The scaling also applies to textures sampled using these coordinates.
Texture normals appear to also differ slightly between Optix and CPU, with normals appearing darker with OptiX disabled, no other co-ordinates are affected as far as I know.
Iv'e attached a demonstration of what I see on my end in case this depends on the machine used.
Thanks, I can confirm.
I'll edit the report to make the description more clear.
Vector transform node: viewport texture projection altered in an unrecoverable wayto Cycles: Optix-OSL sampling issue of window texture coordinatecc @pmoursnv
Patrick Mours referenced this issue2023-11-17 17:25:53 +01:00
Patrick Mours referenced this issue2023-11-17 17:26:35 +01:00