Incorrect UV Space Interpolation? #46014

Closed
opened 2015-09-04 15:26:29 +02:00 by manuel grad · 10 comments

Example image attached shows the issue.
To work around that weirdness(bug?) you have to subdivide it a few times before projecting.
(which is a huge pita and makes editing the mesh after projection a huge undertaking).
Maya doesn't suffer from this for example.

Andrew Price (blenderguru) noticed that behaviour with v.2.66 https://www.youtube.com/watch?v=B9r9tKX5olY&t=1321 so i guess this issue is there since a long time.

BA thread: http://blenderartists.org/forum/showthread.php?380498-Blender-for-Mattepainting-Projection-Mapping

Example image attached shows the issue. To work around that weirdness(bug?) you have to subdivide it a few times before projecting. (which is a huge pita and makes editing the mesh after projection a huge undertaking). Maya doesn't suffer from this for example. Andrew Price (blenderguru) noticed that behaviour with v.2.66 https://www.youtube.com/watch?v=B9r9tKX5olY&t=1321 so i guess this issue is there since a long time. BA thread: http://blenderartists.org/forum/showthread.php?380498-Blender-for-Mattepainting-Projection-Mapping
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

Added subscriber: @manuelgrad1

Added subscriber: @manuelgrad1

Added subscriber: @mont29

Added subscriber: @mont29

Please follow our submission template and guidelines and make a complete, valid bug report, with required info, precise description of the issue, precise steps to reproduce it, small and simple .blend and/or other files to do so if needed, etc.

References to forums, third party apps etc. are not much useful, and certainly do not make a valid bug report.

Please follow our submission template and guidelines and make a complete, valid bug report, with required info, precise description of the issue, precise steps to reproduce it, **small and simple** .blend and/or other files to do so if needed, etc. References to forums, third party apps etc. are not much useful, and certainly do not make a valid bug report.
Author

I attached two files but it seems theyre gone and i do not have permission to edit the bug report ... but ill try again:

This issue exists since ever on every system i tested. But i attached a system-info.txt and a .blend.

Steps to reproduce:
Enter Edit mode for the object
Hit U
Select Project from View
texture gets distorted along triangle edge

I for sure are not the first one to notice this:

another thread: http://blenderartists.org/forum/showthread.php?372030-Project-from-View-distorts-texture-along-triangle-edge
blenderguru tutorial: http://www.youtube.com/watch?v=B9r9tKX5olY&t=1321
my thread: http://blenderartists.org/forum/showthread.php?380498-Blender-for-Mattepainting-Projection-Mapping

Same issue with the UV-Project modifier and a camera.
Workaround is to subdivide the shit out of the mesh.
But this seriously cant be the ideal solution. What if i decide to edit the mesh some time after i projected something onto it? Should i remove hundreds of edge loops and try again? I really dont want to use maya just because of this ... but this is a showstopper.

system-info.txt

uv-wierdness.blend

uv-wierdness.jpg

I attached two files but it seems they`re gone and i do not have permission to edit the bug report ... but i`ll try again: This issue exists since ever on every system i tested. But i attached a system-info.txt and a .blend. Steps to reproduce: Enter Edit mode for the object Hit U Select Project from View texture gets distorted along triangle edge I for sure are not the first one to notice this: another thread: http://blenderartists.org/forum/showthread.php?372030-Project-from-View-distorts-texture-along-triangle-edge blenderguru tutorial: http://www.youtube.com/watch?v=B9r9tKX5olY&t=1321 my thread: http://blenderartists.org/forum/showthread.php?380498-Blender-for-Mattepainting-Projection-Mapping Same issue with the UV-Project modifier and a camera. Workaround is to subdivide the shit out of the mesh. But this seriously can`t be the ideal solution. What if i decide to edit the mesh some time after i projected something onto it? Should i remove hundreds of edge loops and try again? I really don`t want to use maya just because of this ... but this is a showstopper. [system-info.txt](https://archive.blender.org/developer/F230379/system-info.txt) [uv-wierdness.blend](https://archive.blender.org/developer/F230380/uv-wierdness.blend) ![uv-wierdness.jpg](https://archive.blender.org/developer/F230381/uv-wierdness.jpg)

Added subscribers: @Sergey, @ideasman42

Added subscribers: @Sergey, @ideasman42

Ok… so, this happening when projection from perspective view… The effect is basically the same thing as if you make a flat simple UV unwrapping of a mere square, and move only one points of that UVMap - one of the two points that are not common to both triangles in the tessellated square.

Imho deformation cannot be avoided here (at least, I cannot imagine how - unless you keep track of the projection matrix and apply some kind of correction to UV interpolation later, but this would go way beyond the scope of those tools imho).

Note that:

  • Ortho-projected unwrapping does obviously not suffer from this issue, since it always keep parallel edges parallel.
  • By sub-dividing, you kind of create 'intermediate reference points' in the UVMap that keep track of the deformation due to perspective projection, and allow to reduce its effects.

So, for me, no bug here at all, this is just limitation of UVMapping (maybe PTex could fix that? don’t know), @Sergey, @ideasman42, thoughts?

Ok… so, this happening when projection from perspective view… The effect is basically the same thing as if you make a flat simple UV unwrapping of a mere square, and move only **one** points of that UVMap - one of the two points that are not common to both triangles in the tessellated square. Imho deformation cannot be avoided here (at least, I cannot imagine how - unless you keep track of the projection matrix and apply some kind of correction to UV interpolation later, but this would go way beyond the scope of those tools imho). Note that: * Ortho-projected unwrapping does obviously not suffer from this issue, since it always keep parallel edges parallel. * By sub-dividing, you kind of create 'intermediate reference points' in the UVMap that keep track of the deformation due to perspective projection, and allow to reduce its effects. So, for me, no bug here at all, this is just limitation of UVMapping (maybe PTex could fix that? don’t know), @Sergey, @ideasman42, thoughts?

This is supported with Blender-Internal, there is an option for UV projection interpolation, heres a file from this report, working as expected.

uv-wierdness_working.blend.png

uv-wierdness_working.blend

See: Material -> Options -> UV Project


@mont29, as you say it does need the projection-matrix.
https://developer.blender.org/diffusion/B/browse/master/source/blender/render/intern/source/shadeinput.c;ac51e2f326965816e23f7948e2e3fbdfb07cb66c$1123

This seems more like a Cycles TODO, @Sergey ?

This is supported with Blender-Internal, there is an option for UV projection interpolation, heres a file from this report, working as expected. ![uv-wierdness_working.blend.png](https://archive.blender.org/developer/F230451/uv-wierdness_working.blend.png) [uv-wierdness_working.blend](https://archive.blender.org/developer/F230452/uv-wierdness_working.blend) See: *Material -> Options -> UV Project* ---- @mont29, as you say it does need the projection-matrix. https://developer.blender.org/diffusion/B/browse/master/source/blender/render/intern/source/shadeinput.c;ac51e2f326965816e23f7948e2e3fbdfb07cb66c$1123 This seems more like a Cycles TODO, @Sergey ?

Closed as duplicate of #33055

Closed as duplicate of #33055
Yes, it is a TODO. Mentioned it from there http://wiki.blender.org/index.php/Dev:2.6/Source/Render/Cycles/ToDo#Smaller_Features
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
4 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#46014
No description provided.