Scene.Ray_Cast misses/fails against CURVE Objects in multiple cases. #79194
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
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#79194
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-10.0.18362-SP0 64 Bits
Graphics card: GeForce GTX 980 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 451.67
Blender Version
Broken: version: 2.90.0 Beta, branch: master, commit date: 2020-07-22 14:02, hash:
0e280b96ca
Worked: None that I know of.
Short description of error
In testing an Addon I'm developing, I came across an issue when Raycasting to CURVE Objects via Scene.Ray_Cast. It appears it will NOT hit the Curve, even if it's displayed as 3D Mesh. Unless I Apply a subSurf Modifier or other modifiers (Bevel/Solidify), then it will detect it. It appears that until it's actually had some sorta of Mesh Modifier applied, it's not considered a Mesh, even though it's displayed as one....
I also hit another issue in 2.9 (build above), where if the CURVE Object is Active, but De-selected, it cannot be raycast against it, until another object has been set active. Then I can RayCast to the Curve once again. In 2.83 (a8441fc90086-windows64) this bug doesn't exist. I can RayCast to the Curve over and over, without issue, if its set active, but de-selected.
Exact steps for others to reproduce the error
Blender_2.9_Scene.Ray_Cast_Bug.blend
TT_Object_Select_Raycast.py
Added subscriber: @mattli911
Here's a GIF showing the same thing in 2.83, except that it doesn't have the 2nd issue with active object, as noted above.
2.83 has no problem selecting back and forth on the Curve if it's active but de-selected. But as I mentioned, raycast fails to hit the Curve still, unless it has a modifier applied.
Added subscriber: @mano-wii
This is a known issue that has already been addressed in #78434 (Support snapping to faces for objects with DispList (Curve, Surface, Metaballs and Text)).
Basically, this was never implemented.
Closed as duplicate of #78434
Ah, ok, great! That would be fixed in 2.91 then i would guess...?
Anyone can propose a patch and proceed with implementation.
In my case there are other items that have priority (#73993)
Yeah that makes sense. Ok. I will just have to wait and see! I don't think there is a good way for me to get around the issue otherwise, in a performant way... using Python.
Unless I can temp. add some modifier/cheapest modifier possible to CURVE objects to get around it, during my Modal operator.
Is not a HUGE issue though, but more of an annoyance/thing I will have to note for now.
Thank you!
For now i am using another workaround, where i just apply a modifier, like Decimate to a CURVE object, which causes Raycast to work, and the modifier does't impact the Object visually in any way, by default.
Definitely not ideal, but "works" in the meantime.