Page MenuHome

Matcap with Clipping Border
Closed, ResolvedPublic

Description

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

Details

Type
Bug

Event Timeline

PawelP (Zuorion) set Type to Bug.
PawelP (Zuorion) added a subscriber: PawelP (Zuorion).
PawelP (Zuorion) created this task.
PawelP (Zuorion) raised the priority of this task from to Needs Triage by Developer.
Lukas Toenne (lukastoenne) triaged this task as Needs Information from User priority.

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.

win 7 - 64 bit . official 2.71

can confirm bug.

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

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.

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

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...

My GPU: AMD HD 5830
Win 7 x64

On Your testfile @Lukas Toenne (lukastoenne) it's also not working.

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

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 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?

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.

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

I can also confirm it is working now, thanx!

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.

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 :)