Using Min Max of the Mapping node and texture extrapolation #45557

Closed
opened 2015-07-25 12:07:20 +02:00 by Emmanuel LORANT · 5 comments

System Information
Operating system and graphics card

Windows 7 Ultimate x64

Blender Version
Broken: 2.75
Worked: (optional)

Short description of error

When using the Min Max of the mapping node, if the texture has not alpha on boundaries, the extrapolation of the color is weird.

Exact steps for others to reproduce the error
Based on a (as simple as possible) attached .blend file with minimum amount of steps

There are 2 blend files, one with a texture where the top is alpha but not the bottom : http:*www.pasteall.org/blend/37266 and the 2nd blend has the same texture but with a row of one pixel of alpha at the bottom and then, it works as expected : http:*www.pasteall.org/blend/37267

Just go in Rendered mode to see differences.

**System Information** Operating system and graphics card Windows 7 Ultimate x64 **Blender Version** Broken: 2.75 Worked: (optional) **Short description of error** When using the Min Max of the mapping node, if the texture has not alpha on boundaries, the extrapolation of the color is weird. **Exact steps for others to reproduce the error** Based on a (as simple as possible) attached .blend file with minimum amount of steps There are 2 blend files, one with a texture where the top is alpha but not the bottom : http:*www.pasteall.org/blend/37266 and the 2nd blend has the same texture but with a row of one pixel of alpha at the bottom and then, it works as expected : http:*www.pasteall.org/blend/37267 Just go in Rendered mode to see differences.

Changed status to: 'Open'

Changed status to: 'Open'

Added subscriber: @EmmanuelLORANT

Added subscriber: @EmmanuelLORANT

Added subscriber: @Sergey

Added subscriber: @Sergey

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
Sergey Sharybin self-assigned this 2015-07-28 14:52:45 +02:00

This isn't a bug in the mapping node, it does exactly what you're asking to do -- it clamps coordinates to 0..1 range, making it behave like Extend texture mapping when texture is being extended across it's edge when texture coordinate is outside of 0..1 range. Only issue with that is that due to linear intepolation setting and texture being used as Repeat extension type it blends edge with the warped coordinate.

What you might do instead is to use Clip extension type of the image texture which was just added to Cycles (see f296259) and disable min/max setting in the mapping node.

So thanks for the report, it is now possible to achieve effect you want with the next upcoming nightly build.

This isn't a bug in the mapping node, it does exactly what you're asking to do -- it clamps coordinates to 0..1 range, making it behave like Extend texture mapping when texture is being extended across it's edge when texture coordinate is outside of 0..1 range. Only issue with that is that due to linear intepolation setting and texture being used as Repeat extension type it blends edge with the warped coordinate. What you might do instead is to use Clip extension type of the image texture which was just added to Cycles (see f296259) and disable min/max setting in the mapping node. So thanks for the report, it is now possible to achieve effect you want with the next upcoming nightly build.
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
2 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#45557
No description provided.