[cycles] svm/osl difference on classroom scene. #52887

Closed
opened 2017-09-24 19:16:43 +02:00 by Ray molenkamp · 9 comments
Member

System Information
Win7/x64 Cpu render

Blender Version
Broken: 2.79
Worked: unknown.

Short description of error
when rendering classroom_cpu on both svm and osl there's some significant differences between the two

  1. The map of europe on the left is different seems like osl is doing some filtering, while svm doesn't
  2. The clock is darker with OSL
  3. The edges of the blue book on the front desk have a highlight on osl
  4. the blackboard looks kinda faded on OSL, probably same filtering that caused 1.

Exact steps for others to reproduce the error

  1. Load up classroom_cpu (turn down the resolution to 25% to speed things up if you want)
  2. Render with svm in render slot 1
  3. render with osl in render slot 2
  4. blink in between slot 1 and 2 to see the differences

svm: classroom_svm.png
osl:classroom_osl.png
idiff diff.png
( parameters used for idiff : --scale 10 -abs -o diff.png classroom_svm.png classroom_osl.png )

**System Information** Win7/x64 Cpu render **Blender Version** Broken: 2.79 Worked: unknown. **Short description of error** when rendering classroom_cpu on both svm and osl there's some significant differences between the two 1) The map of europe on the left is different seems like osl is doing some filtering, while svm doesn't 2) The clock is darker with OSL 3) The edges of the blue book on the front desk have a highlight on osl 4) the blackboard looks kinda faded on OSL, probably same filtering that caused 1. **Exact steps for others to reproduce the error** 1) Load up classroom_cpu (turn down the resolution to 25% to speed things up if you want) 2) Render with svm in render slot 1 3) render with osl in render slot 2 4) blink in between slot 1 and 2 to see the differences svm: ![classroom_svm.png](https://archive.blender.org/developer/F864506/classroom_svm.png) osl:![classroom_osl.png](https://archive.blender.org/developer/F864510/classroom_osl.png) idiff ![diff.png](https://archive.blender.org/developer/F864515/diff.png) ( parameters used for idiff : --scale 10 -abs -o diff.png classroom_svm.png classroom_osl.png )
Author
Member

Changed status to: 'Open'

Changed status to: 'Open'
Author
Member

Added subscriber: @LazyDodo

Added subscriber: @LazyDodo

Added subscribers: @brecht, @Sergey

Added subscribers: @brecht, @Sergey
Brecht Van Lommel was assigned by Sergey Sharybin 2017-09-25 09:16:10 +02:00

OSL is doing proper mipmapping, so map and blackboard will be different at that number of samples. Packing images (which forces OSL to use ImBuf for file IO which doesn't have mipmaps) makes those look identical.

Not sure why book and clock are rendering differently, yet. Maybe @brecht can have a look? :) Otherwise assign back to me.

OSL is doing proper mipmapping, so map and blackboard will be different at that number of samples. Packing images (which forces OSL to use ImBuf for file IO which doesn't have mipmaps) makes those look identical. Not sure why book and clock are rendering differently, yet. Maybe @brecht can have a look? :) Otherwise assign back to me.

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'

Mipmapping is just biased and will give different result, nothing that we would consider a bug at this point I think, even if it's possible to improve.

  • If the footprint is big pixels from far away get pulled in, and if they are darker on average that will darken the result. This bias could be reduced by limiting mipmap levels, at the cost of efficiency. Note the clock has a texture applied with dark colors outside the UV island.
  • Filtering of these textures in OpenImageIO happens in sRGB color space instead of linear space. For that the suggested solution is to use linear half float .tx files. It would be nice to add support for that kind of workflow, but probably when we support mipmapping for SVM. Another solution is that the OpenImageIO texture cache could convert to linear on the fly when reading tiles, but it has no color space awareness currently.
Mipmapping is just biased and will give different result, nothing that we would consider a bug at this point I think, even if it's possible to improve. * If the footprint is big pixels from far away get pulled in, and if they are darker on average that will darken the result. This bias could be reduced by limiting mipmap levels, at the cost of efficiency. Note the clock has a texture applied with dark colors outside the UV island. * Filtering of these textures in OpenImageIO happens in sRGB color space instead of linear space. For that the suggested solution is to use linear half float .tx files. It would be nice to add support for that kind of workflow, but probably when we support mipmapping for SVM. Another solution is that the OpenImageIO texture cache could convert to linear on the fly when reading tiles, but it has no color space awareness currently.

@brecht, packing images (which forces OSL to bypass filtering) still keeps clock darker and book looks different.

@brecht, packing images (which forces OSL to bypass filtering) still keeps clock darker and book looks different.

The clock and its texture are from a linked .blend, did you pack that one as well?

The clock and its texture are from a linked .blend, did you pack that one as well?

Ah, you're right. "Pack All" will not pack textures from linked materials, so ok. It's all caused by mipmaps...

Ah, you're right. "Pack All" will not pack textures from linked materials, so ok. It's all caused by mipmaps...
Sign in to join this conversation.
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
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#52887
No description provided.