Bone custom curve shape makes it invisible #92120

Closed
opened 2021-10-11 19:13:49 +02:00 by Roman · 10 comments

System Information
Operating system: linux
Graphics card: amd

Blender Version
Broken: blender-3.0.0-alpha+master.79425ed32676
Worked: 3.0.0 Alpha, branch: master, commit date: 2021-08-28 20:38, hash: 4256eeeec4

Caused by b9febb54a4

Short description of error
Bone custom curve shape makes it invisible.

Exact steps for others to reproduce the error
Open attached file curve-bone-bug.blend
Make sure bone is selected.
In the Viewport Display panel, click Custom Object, and pick Bezier Curve
Screenshot_20211011_200231.jpg

Result: bone invisible.
Expected: bone takes shape of the curve

There was some shenanigans with curves previously, may be related: https://developer.blender.org/T85423

**System Information** Operating system: linux Graphics card: amd **Blender Version** Broken: blender-3.0.0-alpha+master.79425ed32676 Worked: 3.0.0 Alpha, branch: master, commit date: 2021-08-28 20:38, hash: 4256eeeec4ca Caused by b9febb54a4 **Short description of error** Bone custom curve shape makes it invisible. **Exact steps for others to reproduce the error** Open attached file [curve-bone-bug.blend](https://archive.blender.org/developer/F10975219/curve-bone-bug.blend) Make sure bone is selected. In the Viewport Display panel, click Custom Object, and pick Bezier Curve ![Screenshot_20211011_200231.jpg](https://archive.blender.org/developer/F10975246/Screenshot_20211011_200231.jpg) Result: bone invisible. Expected: bone takes shape of the curve There was some shenanigans with curves previously, may be related: https://developer.blender.org/T85423
Author

Added subscriber: @rwman

Added subscriber: @rwman
Member

Added subscriber: @PratikPB2123

Added subscriber: @PratikPB2123
Member

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'
Member

Thanks for the report. I can reproduce this on master.
Introduced between eab26f1334 - 15405685d9 (Will find the exact commit)

Most probably culprit commit would be b9febb54a4

Thanks for the report. I can reproduce this on master. Introduced between `eab26f1334` - `15405685d9` (Will find the exact commit) Most probably culprit commit would be b9febb54a4
Member

Added subscribers: @HooglyBoogly, @lichtwerk

Added subscribers: @HooglyBoogly, @lichtwerk
Member

Think this is used in rigs quite often? (will dare setting this to High priority).
And yes, this is indeed caused by b9febb54a4.

CC @HooglyBoogly

Think this is used in rigs quite often? (will dare setting this to High priority). And yes, this is indeed caused by b9febb54a4. CC @HooglyBoogly
Hans Goudey self-assigned this 2021-10-15 16:21:01 +02:00
Member

This is looking like a really unfortunate situation honestly. The situation that causes the problem is described in a comment:

 * \note Curve and text objects evaluate to the evaluated geometry set's mesh component if
 * they have a surface, so curve objects themselves do not have a surface (the mesh component
 * is presented to render engines as a separate object).

That works fine when the render engine is looping through all evaluated objects, but the overlay that draws this only uses a single object.
So this is a very ugly case where we have to teach Blender that an object can evaluate to multiple data types that are separate objects.

What I'm currently wondering is how does pchan->custom end up pointing to the evaluated object intsead of the original object?
Presumably, that same place could be used to make it point to multiple evaluated objects instead.

This is looking like a really unfortunate situation honestly. The situation that causes the problem is described in a comment: ``` * \note Curve and text objects evaluate to the evaluated geometry set's mesh component if * they have a surface, so curve objects themselves do not have a surface (the mesh component * is presented to render engines as a separate object). ``` That works fine when the render engine is looping through all evaluated objects, but the overlay that draws this only uses a single object. So this is a very ugly case where we have to teach Blender that an object can evaluate to multiple data types that are separate objects. What I'm currently wondering is how does `pchan->custom` end up pointing to the evaluated object intsead of the original object? *Presumably*, that same place could be used to make it point to *multiple* evaluated objects instead.

Added subscriber: @capnm

Added subscriber: @capnm

This issue was referenced by a07089dcb1

This issue was referenced by a07089dcb10d8f0265220bf5abe07dca03097fe1
Member

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Thomas Dinges added this to the 3.0 milestone 2023-02-08 15:58:50 +01:00
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
6 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#92120
No description provided.