Regression: Trim curve make spline disapear. #101379

Closed
opened 2022-09-26 12:47:51 +02:00 by Paul · 16 comments

System Information
Operating system: Windows-10-10.0.19044-SP0 64 Bits
Graphics card: AMD Radeon (TM) R9 390 Series ATI Technologies Inc. 4.5.14830 Core Profile Context 22.6.1 27.20.20912.1002

Blender Version
Broken: version: 3.4.0 Alpha, branch: master, commit date: 2022-09-26 00:52, hash: 3a7dc572dc
Worked: (13 Sep 22 before moving trim spline to another block)

Caused by eaf416693d

Short description of error
[Trim curve node make cyclic curve disappear when not trimmed]

Exact steps for others to reproduce the error
[Add circle node & trim spline node afterwords, this makes spline disappear. If you only trim to 0,999 instead of 1 (or from 0.0001 instead of 0.0) it comes back.
Trim spline bug.blend

image.png

{F13574735}]
[Based on the default startup or an attached .blend file (as simple as possible)]

**System Information** Operating system: Windows-10-10.0.19044-SP0 64 Bits Graphics card: AMD Radeon (TM) R9 390 Series ATI Technologies Inc. 4.5.14830 Core Profile Context 22.6.1 27.20.20912.1002 **Blender Version** Broken: version: 3.4.0 Alpha, branch: master, commit date: 2022-09-26 00:52, hash: `3a7dc572dc` Worked: (13 Sep 22 before moving trim spline to another block) Caused by eaf416693d **Short description of error** [Trim curve node make cyclic curve disappear when not trimmed] **Exact steps for others to reproduce the error** [Add circle node & trim spline node afterwords, this makes spline disappear. If you only trim to 0,999 instead of 1 (or from 0.0001 instead of 0.0) it comes back. [Trim spline bug.blend](https://archive.blender.org/developer/F13574727/Trim_spline_bug.blend) ![image.png](https://archive.blender.org/developer/F13574731/image.png) {[F13574735](https://archive.blender.org/developer/F13574735/image.png)}] [Based on the default startup or an attached .blend file (as simple as possible)]
Author

Added subscriber: @genesis2303

Added subscriber: @genesis2303

#101837 was marked as duplicate of this issue

#101837 was marked as duplicate of this issue
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

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

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

Can confirm, will check

Can confirm, will check
Member

Added subscribers: @HooglyBoogly, @Osares

Added subscribers: @HooglyBoogly, @Osares
Member

Caused by eaf416693d indeed

Only an issue for cyclc curves and Start exactly 0.0 and End exactly 1.0

CC @Osares
CC @HooglyBoogly

Caused by eaf416693d indeed Only an issue for cyclc curves and Start exactly 0.0 and End exactly 1.0 CC @Osares CC @HooglyBoogly
Philipp Oeser changed title from Trim curve make spline disapear. to Regression: Trim curve make spline disapear. 2022-09-26 13:43:41 +02:00

Not sure how to remedy this as this is the current intended behavior as the start and endpoints are equivalent reducing the curve to a single point (see image below). While the behavior may be unintuitive when passing 0.0 and 1.0 as inputs these values do represent the same point on the cyclical curve. This behavior is consistent with any other point on the curve (since input is clamped to [0.0, 1.0]).

Originally I added a mode for cyclical splines which allowed the user to set the behavior to either split, copy or reduce the curve to a point when endpoints where equivalent. The decision was made to wait with introducing such a feature and instead go with the default behavior of reducing the curve to a point since this is the behavior of non-cyclic curves. Due to that decision this report was unavoidable.

The reason for why this 'works' in previous versions is also due to the patch adding support for trimming cyclical curves (previous behavior was just to copy the original curve).

Possible solutions

Solutions to this is more of a design choice as possible solutions could be to:

  • Option for taking the 'inverted' trim result (the part that is discarded/trimmed).
  • Add the trim mode back for cyclical splines (initially only supporting copy/reduce to point). This would make most sense if selection input was exposed at the same time (since it would be the simplest solution).
  • Actually show curves consisting of a single point in the viewport (plausible render similar to mesh vertices).

Not sure what @HooglyBoogly thinks though as it would be his call in the end.

Screenshot (142).png
As can be inspected in the spreadsheet editor the curve is reduced to a single point which is displayed by converting to mesh.

Not sure how to remedy this as this is the current intended behavior as the start and endpoints are equivalent reducing the curve to a single point (see image below). While the behavior may be unintuitive when passing 0.0 and 1.0 as inputs these values do represent the same point on the cyclical curve. This behavior is consistent with any other point on the curve (since input is clamped to [0.0, 1.0]). Originally I added a mode for cyclical splines which allowed the user to set the behavior to either split, copy or reduce the curve to a point when endpoints where equivalent. The decision was made to wait with introducing such a feature and instead go with the default behavior of reducing the curve to a point since this is the behavior of non-cyclic curves. Due to that decision this report was unavoidable. The reason for why this 'works' in previous versions is also due to the patch adding support for trimming cyclical curves (previous behavior was just to copy the original curve). **Possible solutions** Solutions to this is more of a design choice as possible solutions could be to: - Option for taking the 'inverted' trim result (the part that is discarded/trimmed). - Add the trim mode back for cyclical splines (initially only supporting copy/reduce to point). This would make most sense if selection input was exposed at the same time (since it would be the simplest solution). - Actually show curves consisting of a single point in the viewport (plausible render similar to mesh vertices). Not sure what @HooglyBoogly thinks though as it would be his call in the end. ![Screenshot (142).png](https://archive.blender.org/developer/F13576465/Screenshot__142_.png) As can be inspected in the spreadsheet editor the curve is reduced to a single point which is displayed by converting to mesh.

Added subscriber: @mod_moder

Added subscriber: @mod_moder

why between 0 and 1 we have length 0 ?

More precisely, how to determine which part of the curve will have length 0 and which part 1?

why between 0 and 1 we have length 0 ? More precisely, how to determine which part of the curve will have length 0 and which part 1?

In #101379#1423040, @mod_moder wrote:
why between 0 and 1 we have length 0 ?

More precisely, how to determine which part of the curve will have length 0 and which part 1?

Not sure exactly what you are referring to, the values reference a point on a curve and 0 is a perfectly valid point. Values in this case are also factors multiplied with the total length of the curve (in which case the interval [0.0, 1.0] makes sense). But I might miss your point as you didn't include a quote indicating what you replied to.

> In #101379#1423040, @mod_moder wrote: > why between 0 and 1 we have length 0 ? > > More precisely, how to determine which part of the curve will have length 0 and which part 1? Not sure exactly what you are referring to, the values reference a point on a curve and 0 is a perfectly valid point. Values in this case are also factors multiplied with the total length of the curve (in which case the interval [0.0, 1.0] makes sense). But I might miss your point as you didn't include a quote indicating what you replied to.

If the cyclic curve is divided by 2 points into 2 segments, from with equal positions of the points, the segments will be of length 1 and 0

If the cyclic curve is divided by 2 points into 2 segments, from with equal positions of the points, the segments will be of length 1 and 0

Ah, not sure if you consider or hint a solution for adding a node option to return the second part. Then one just has to decide which one is the first part (assuming the one of length 1 to avoid the OP problem). Hadn't thought of it that way.

Ah, not sure if you consider or hint a solution for adding a node option to return the second part. Then one just has to decide which one is the first part (assuming the one of length 1 to avoid the OP problem). Hadn't thought of it that way.
Mattias Fredriksson self-assigned this 2022-10-05 23:19:43 +02:00
Member

Added subscriber: @Leroy-Xie

Added subscriber: @Leroy-Xie

This issue was referenced by 11f6c65e61

This issue was referenced by 11f6c65e61a22ea9423962d6165f54ec29e221a8
Member

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
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
7 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#101379
No description provided.