Box selection, tool or B key, doesn't select more than 5K objects #102485
Labels
No Label
Meta
Good First Issue
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 & Devices
Module
Python API
Module
Rendering & Cycles
Module
Sculpt, Paint & Texture
Module
User Interface
Module
VFX & Video
Priority
High
Priority
Low
Priority
Normal
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Information 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
10 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender-manual#102485
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
Operating system: Windows 10
Graphics card: GTX 970
Blender Version
Broken: 3.3.1
Short description of error
Hello. The box selection tool (W key) and the B key tool don't select more than 5k objects. If one of them is already a deselected active object, it will work for only 4999.
Some tests I did here:
It is probably related to https://developer.blender.org/T102487
Exact steps for others to reproduce the error
Selection_+5K_objects_doesn't work.blend
With Object A active:
With Object B Active:
Selection_5k_objects.webm
Added subscriber: @SidneyMoraesJr
#103309 was marked as duplicate of this issue
blender/blender#102487 was marked as duplicate of this issue
Added subscriber: @mod_moder
I can confirm that selecting does indeed start to work in a very strange and unreliable way.
Added subscriber: @deadpin
Changed status from 'Needs Triage' to: 'Needs Developer To Reproduce'
The 2500 limit was introduced many years ago as part of blender/blender@50e9868abe
It's hardcoded right now. The particular usage of this value during selection is roughly 2 * MAXPICKELEMS as seen in:
https://developer.blender.org/diffusion/B/browse/master/source/blender/editors/space_view3d/view3d_select.cc$3740
Added subscriber: @TestPilot02
Added subscriber: @Jeroen-Bakker
This is a limitation of GL depth picking. If you want to be able to select, select a different method in your user preferences.
I expected a better description of this limitation as this case isn't described well.
https://docs.blender.org/manual/en/latest/troubleshooting/3d_view.html?highlight=gpu+depth+picking#slow-selection
https://docs.blender.org/manual/en/latest/editors/preferences/viewport.html#selection
Changed status from 'Needs Developer To Reproduce' to: 'Confirmed'
Solution is changing the manual to update the limitations and possible work-arounds to the manual. Perhaps the text in the error message could be adjusted afterwards to be more user-oriented.
Added subscriber: @Blendify
The issue does not go away when disabling "GPU Depth Selection" and by the commit @deadpin posted also shows that it is unrelated. AFAIK there are no limitations in this case. Perhaps the limitation can be fixed, or at least increased from the prior limit? I have not looked at the code deeply but why is this only a limitation for object selection? edit mode selection works fine.
Added subscriber: @Renderbicks
Lasso Select works as intended with an unlimited number.
What is the technical difference between Lasso and Box select? Lasso Select seems to work with an unlimited number of models.
Added subscriber: @SteffenD
Added subscriber: @lichtwerk
@Jeroen-Bakker : can you comment on the
MAXPICKELEMS
thingie?Added subscriber: @filippo_f
I've been testing different values for MAXPICKELEMS and it does work fine for the range I've tried (2500-50000, my hardware won't handle more objects at once).
I can't find any documentation about OpenGL depth picking limitations.
Looking at blender/blender#43785 diff buffer size has been changed from 40000 to 10000.
By providing max 50000 MAXPICKELEMS I get a buffer size of 200000 and it's still working.
At this point might this problem be related to a specific os? I see that the author of the issue was using Ubuntu.
I am using right now an addon by Yain Rodrigo Vieyra from Argentina. This saves actually my project but doesn't solve the corrupted data management when exceeding 65K objects in a Blender file.
I asked him to sign up and join the conversation.
This scenario should now work in recent 4.1 alpha builds (fixed by
abf59eb23a
)