Cycles texture interpolation issues #43779
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
6 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#43779
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
OS: Ubuntu Linux 14.04 64 bit
Graphics: nVidia GeForce GTX 560 Ti
Blender Version
Broken: 2.73a
bbf09d9
(Tested with same result on 2.67 and 2.70)
Short description of error
With a transparent shader and a PNG image the first or top row and the first or left most column seems to pick the color and transparency of the row or column on the other side of the image (i.e. bottom row and right most column, respectively). An off-by-one error?
Exact steps for others to reproduce the error
See attached .blend file: Test_transparency.blend (the test image should be packed in it).
Note: workaround
When you do not use the top most row and the left most column of the image the transparency will work as expected.
Changed status to: 'Open'
Added subscriber: @hilbert
#43795 was marked as duplicate of this issue
Added subscriber: @JulianEisel
Can confirm that. Using viewport texture mode, everything looks fine, so maybe it's a cycles texture mapping issue? Assigning to sergey in case he gets bored with dependency graph ;)
Added subscriber: @ZauberParacelsus
I see it on both final render and in rendered viewport.
I think this may be a fundamental issue with texture interpolation. I've seen it in other 3D applications (such as Second Life), where if you have 1x1 repeats on a cube, you'll see some edges interpolated against the opposite side of the texture. What I usually do in those cases is set the repeats to 0.995 x 0.995. I tried that workaround on the example .blend file using the Vector->Mapping node, but it didn't work unfortunately.
Anyways, there are a couple workarounds you can use.
Cycles transparent materialto Cycles texture interpolation issuesAdded subscribers: @SleepyMolecule, @zeauro, @MikePan, @Sergey
At least one person with an nVidia card is unable to reproduce (https://developer.blender.org/T43795).
I experience texture offset using OpenCL on AMD hardware.
After playing with the transparency example and comparing the same result in the internal render, I'm inclined to say that this issue is more a lack of feature.
Exactly the same artifact appears in BI When using an Image or Movie type Texture, however under the Image Mapping section is the option Extension.
The setting Extend specifically repeats the edge pixels of the texture instead of wrapping around.
The setting Clip simply makes all pixels beyond the texture transparent.
The default setting Repeat wraps the texture, this seems the be the default behavior in cycles for any given image texture.
Using either the Extend or Clip settings immediately resolves the artifact.
Right now there is no way to change it, it seems. Having the option for Cycles Image Textures would solve this without work around's.
An interesting side note re: CPU / GPU texture offset, this example shows that the offset I am experiencing is down and left 1~ pixel, as the top line is slightly thicker and the left line is gone.
(OpenCL GPU render on r7 260x, catalyst omega 14.12)
Although these topics are merged due to visual similarity, I feel that the CPU / GPU issue might be different?
I was able to repro the issue on both CPU and GPU/CUDA.
System Information
64bit Manjaro Linux, kernel 3.14.33
CPU: AMD Phenom II 970 Deneb quad-core
GPU: nVidia GTX 650 Ti, driver 346.35
Please un-merge #43795 (Texture Offset between Cycles CPU and GPU render) as it is unrelated, thanks!
I'm not sure why you consider #43795 unrelated. The root of the issue is exactly the same -- wrapping coordinates on the image boundary when doing interpolation. The fact that some devices does expected interpolation in this case doesn't make any difference in the root of the issue.
This issue was referenced by
e3461a02ac
Changed status from 'Open' to: 'Resolved'
This issue was referenced by blender/cycles@92feda3bdf