Matcap with Clipping Border #40981

Closed
opened 2014-07-07 16:49:07 +02:00 by PawelP · 27 comments

Blender Version
2.71 9337574

As i noticed while using matcap, clipping border don't work at all. (at least display)
While 'normal' works as it should.
example

**Blender Version** 2.71 9337574 As i noticed while using matcap, clipping border don't work at all. (at least display) While 'normal' works as it should. [example ](http://i.imgur.com/lV3jmsq.jpg)
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

Added subscriber: @Zuorion-4

Added subscriber: @Zuorion-4
Member

Added subscriber: @LukasTonne

Added subscriber: @LukasTonne
Member

Can't confirm, works fine for me. Please attach a test file if something is still wrong. Test this with recent builds from buildbot.blender.org. Also include more system info, in particular graphics card.

Can't confirm, works fine for me. Please attach a test file if something is still wrong. Test this with recent builds from buildbot.blender.org. Also include more system info, in particular graphics card.
Member

Own test file

Own test file

Added subscriber: @ygtsvtr

Added subscriber: @ygtsvtr

win 7 - 64 bit . official 2.71

can confirm bug.

alt+b = sculpt mode/object mode clipping border doesnt clip sculpt/mesh.

win 7 - 64 bit . official 2.71 can confirm bug. alt+b = sculpt mode/object mode clipping border doesnt clip sculpt/mesh.

Added subscriber: @TerryWallwork-1

Added subscriber: @TerryWallwork-1

I can also confirm this bug:

I am using Blender GIT REV 2014-07-07-19-20-33-aac2839 on a Fedora 20 64bit box with Intel 3000 HD gfx

If you open the default scene and activate mapcap from the shading panel and then use ALT+B
The matcap stop working. If you clear alt+b the matcap starts working again.

I have attached my system-info.txt, a blend file and a Video showing the issue I get.

system-info.txt

MatCapBug.webm

MatCap-AltB-Bug.blend

I can also confirm this bug: I am using Blender GIT REV 2014-07-07-19-20-33-aac2839 on a Fedora 20 64bit box with Intel 3000 HD gfx If you open the default scene and activate mapcap from the shading panel and then use ALT+B The matcap stop working. If you clear alt+b the matcap starts working again. I have attached my system-info.txt, a blend file and a ***Video*** showing the issue I get. [system-info.txt](https://archive.blender.org/developer/F96986/system-info.txt) [MatCapBug.webm](https://archive.blender.org/developer/F96987/MatCapBug.webm) [MatCap-AltB-Bug.blend](https://archive.blender.org/developer/F96988/MatCap-AltB-Bug.blend)

Added subscriber: @ideasman42

Added subscriber: @ideasman42

Can't redo, we had this reported before, IIRC this is just an issue with some graphics cards.

Can't redo, we had this reported before, IIRC this is just an issue with some graphics cards.
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

I can confirm on my laptop with


VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09) (prog-if 00 [VGA controller])

OpenGL
renderer: 'Mesa DRI Intel(R) Sandybridge Mobile '
vendor: 'Intel Open Source Technology Center'
version: '3.0 Mesa 10.1.5'


not a big deal for me (my workstation with nvidia graphics is just fine), just wanted to drop a note about a config that fails...

I can confirm on my laptop with **** VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09) (prog-if 00 [VGA controller]) OpenGL renderer: 'Mesa DRI Intel(R) Sandybridge Mobile ' vendor: 'Intel Open Source Technology Center' version: '3.0 Mesa 10.1.5' **** not a big deal for me (my workstation with nvidia graphics is just fine), just wanted to drop a note about a config that fails...
Author

My GPU: AMD HD 5830
Win 7 x64

On Your testfile @LukasTonne it's also not working.

Matcap with border clipping don't clip mesh and just shows everything.

My GPU: AMD HD 5830 Win 7 x64 On Your testfile @LukasTonne it's also not working. Matcap with border clipping don't clip mesh and just shows everything.

Added subscriber: @Psy-Fi

Added subscriber: @Psy-Fi

I can't confirm either here but I have an NVIDIA.

I seem to remember that you need to set the clipping planes on some GPUs for this to work properly, which I'm not sure we really do for matcaps.

I can't confirm either here but I have an NVIDIA. I seem to remember that you need to set the clipping planes on some GPUs for this to work properly, which I'm not sure we really do for matcaps.

Added subscriber: @lamoot

Added subscriber: @lamoot

I can confirm here that matcap with clipping doesn't clip. It just shows all objects whole, with the matcap visible.

Mobility radeon 5650
Win7 64x
Blender 2.71

I can confirm here that matcap with clipping doesn't clip. It just shows all objects whole, with the matcap visible. Mobility radeon 5650 Win7 64x Blender 2.71

OK, we have explicitly disabled clipvertex on non NVIDIA GPUs see gpu_shader_vertex.glsl and gpu_shader_simple_vert.glsl

That means that clip planes should misbehave on GLSL viewport mode too for affected users?

OK, we have explicitly disabled clipvertex on non NVIDIA GPUs see gpu_shader_vertex.glsl and gpu_shader_simple_vert.glsl That means that clip planes should misbehave on GLSL viewport mode too for affected users?

More digging, this looks like an ATI limitation where driver falls back to software.

We may be able to use projection space clip planes like explained here https://www.opengl.org/discussion_boards/showthread.php/167979-ATI-GLSL-and-custom-cliping-planes/page2

More digging, this looks like an ATI limitation where driver falls back to software. We may be able to use projection space clip planes like explained here https://www.opengl.org/discussion_boards/showthread.php/167979-ATI-GLSL-and-custom-cliping-planes/page2

Just pushed a commit that should enable this on Intels. I am not sure if it causes a software fallback but we can test now. For ATIs we might be able to support gl_ClipDistance as suggested on the linked thread above. It should only work on GL 3.0 capable machines though.

Just pushed a commit that should enable this on Intels. I am not sure if it causes a software fallback but we can test now. For ATIs we might be able to support gl_ClipDistance as suggested on the linked thread above. It should only work on GL 3.0 capable machines though.

psy-fi with your recent commit border clipping with matcaps now works on my intel 3000 HD gfx card.

psy-fi with your recent commit border clipping with matcaps now works on my intel 3000 HD gfx card.
Member

I can also confirm it is working now, thanx!

I can also confirm it is working now, thanx!
Antonis Ryakiotakis was assigned by Lukas Tönne 2014-07-10 12:39:35 +02:00

Just pushed another commit for people with ATIs supporting OpenGL 3.0.

This may solve the issue but it will make the shaders heavier. Can the ATI users here test this?

Just pushed another commit for people with ATIs supporting OpenGL 3.0. This may solve the issue but it will make the shaders heavier. Can the ATI users here test this?

Win 7 64 bit - Amd Phenom II 1100T - ATI Radeon 6870

I tried this 32-bit revision 5e3e095 and clipping border works fine with matcaps.

I have tested it on object mode, sculpt mode- dynatopo and sculpt mode-multires.

Thanks Psy-fi.

Win 7 64 bit - Amd Phenom II 1100T - ATI Radeon 6870 I tried this 32-bit revision 5e3e095 and clipping border works fine with matcaps. I have tested it on object mode, sculpt mode- dynatopo and sculpt mode-multires. Thanks Psy-fi.

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'

Excellent, closing then.

Just reassering that we may have to revert the commit if we get any reports on bad performance or GLSL materials not working etc.

Nice to know it works though :)

Excellent, closing then. Just reassering that we may have to revert the commit if we get any reports on bad performance or GLSL materials not working etc. Nice to know it works though :)
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
8 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#40981
No description provided.