Material viewport shading mode doesn't respect the "clip" image texture setting #53468

Closed
opened 2017-12-04 21:12:43 +01:00 by Carmen Wick · 6 comments

System Information
OSX Sierra and Windows 10

Blender Version
2.79.1 2017-12-02 e1eb1fbfca
2.79 2017-09-11 5bd8ac9

Exact steps for others to reproduce the error

  1. Switch to Cycles renderer
  2. Set up a simple material as shown in the attached sample: Plane with image texture, set extension mode to "clip", translate the U coordinate by 0.5.
  3. View the scene in the 3D viewport with Rendered mode and Material mode.

Expected: Texture should be clipped in the Material view, just like it is in the Rendered view
Actual: Texture isn't clipped, but extended. Setting the extension mode in the Image Texture node has no effect on the Material view.

I like using the Material view in the 3D viewport to work on my diffuse textures because it's very fast, so it's annoying that I can't use it to see what a clipped image texture will look like.

Screen Shot 2017-12-04 at 12.04.12 PM.png

clip-bug.blend

**System Information** OSX Sierra and Windows 10 **Blender Version** 2.79.1 2017-12-02 e1eb1fbfcac 2.79 2017-09-11 5bd8ac9 **Exact steps for others to reproduce the error** 1. Switch to Cycles renderer 2. Set up a simple material as shown in the attached sample: Plane with image texture, set extension mode to "clip", translate the U coordinate by 0.5. 3. View the scene in the 3D viewport with Rendered mode and Material mode. Expected: Texture should be clipped in the Material view, just like it is in the Rendered view Actual: Texture isn't clipped, but extended. Setting the extension mode in the Image Texture node has no effect on the Material view. I like using the Material view in the 3D viewport to work on my diffuse textures because it's very fast, so it's annoying that I can't use it to see what a clipped image texture will look like. ![Screen Shot 2017-12-04 at 12.04.12 PM.png](https://archive.blender.org/developer/F1298767/Screen_Shot_2017-12-04_at_12.04.12_PM.png) [clip-bug.blend](https://archive.blender.org/developer/F1298739/clip-bug.blend)
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

Added subscriber: @CarmenWick

Added subscriber: @CarmenWick

Added subscribers: @fclem, @dfelinto, @Sergey

Added subscribers: @fclem, @dfelinto, @Sergey

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Sergey Sharybin self-assigned this 2017-12-05 10:12:23 +01:00

Thanks for the report, but this is a known limitation since initial Clipping implementation in Cycles: for GLSL e really need to use OpenGL clipping, which is fast but which would requite some internal changes in how we work with OpenGL textures. Currently, we only use one OpenGL texture per image, which will cause unpredictable results if the same image is used with different clipping/extension methods.

Better to make sure it's osmething supported in new viewport of Blender 2.8 than try to fix it in current master.

So, adding it to the radars of @dfelinto and @fclem.

P.S. Was quite sure it's listed in our TODO list in Wiki, but couldn't find it. So added it there: https://wiki.blender.org/index.php/Dev:Source/Render/Cycles/ToDo#Smaller_Features

Thanks for the report, but this is a known limitation since initial Clipping implementation in Cycles: for GLSL e really need to use OpenGL clipping, which is fast but which would requite some internal changes in how we work with OpenGL textures. Currently, we only use one OpenGL texture per image, which will cause unpredictable results if the same image is used with different clipping/extension methods. Better to make sure it's osmething supported in new viewport of Blender 2.8 than try to fix it in current master. So, adding it to the radars of @dfelinto and @fclem. P.S. Was quite sure it's listed in our TODO list in Wiki, but couldn't find it. So added it there: https://wiki.blender.org/index.php/Dev:Source/Render/Cycles/ToDo#Smaller_Features

Yep that's something on my TODO list for sure.

I think using the texture unit clipping is too much problem as you mention. Using different texture view using ARB_texture_view could aleviate this issue but that needs gl 4.3 core.

For the small overhead it represent I think we can live with it being a GLSL hack.

Same thing would apply for the filter texture parameter.

Yep that's something on my TODO list for sure. I think using the texture unit clipping is too much problem as you mention. Using different texture view using ARB_texture_view could aleviate this issue but that needs gl 4.3 core. For the small overhead it represent I think we can live with it being a GLSL hack. Same thing would apply for the filter texture parameter.
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
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#53468
No description provided.