Details
Details
Diff Detail
Diff Detail
- Repository
- rB Blender
- Branch
- curves-geometry-nodes (branched from master)
- Build Status
Buildable 20906 Build 20906: arc lint + arc unit
Event Timeline
| release/scripts/startup/bl_operators/geometry_nodes.py | ||
|---|---|---|
| 29 | Isn't the 'CURVES' type used for hair objects? If so, the comment is outdated. | |
Comment Actions
I really like how simple the modifier stack for the curves object is. The way it should be!
| source/blender/blenkernel/intern/curve_eval.cc | ||
|---|---|---|
| 402–403 | I think it would probably be better to do this as part of the curves modifier stack. It's not just nodes that use CurveEval that don't support Catmull-Rom curves. And I wouldn't expect that updating a node to use Curves would also mean that it supports them immediately either. | |
| source/blender/blenkernel/intern/curve_eval.cc | ||
|---|---|---|
| 402–403 | I don't quite see why this should be part of the modifier stack? I didn't intend to commit it with this todo btw. | |
| source/blender/blenkernel/intern/curve_eval.cc | ||
|---|---|---|
| 402–403 | Ah, if the idea wasn't to commit it like that, makes sense. | |
Comment Actions
Recently I've been thinking we should do this by using the new curves type for drawing CurveComponent in the viewport, so basically removing any case that we currently have to convert to CurveEval.
Based on T68981, we're getting very close to that point, and doing it that way would avoid any wasted work supporting Catmull Rom curves with CurveEval or something.
Comment Actions
Seems reasonable as well, I don't know how complex it would be to update the drawing code tbh.
Regardless, it should also be possible to use CurveEval for drawing, even if it does not support Catmull Rom curves. We'd just need a function to convert them to bezier curves. Not saying we should do that, unless updating drawing code takes too long.
| source/blender/blenkernel/intern/curve_eval.cc | ||
|---|---|---|
| 402–403 | At this point I think it's probably fine to say "Some nodes don't support catmull rom curves and convert them to poly curves" | |
| source/blender/blenkernel/intern/object_dupli.cc | ||
| 854 | I think having OB_CURVES here will cause the rendering to use the new curves object, which we probably don't want until the GPU drawing code for Curves is finished. So I think I'd leave this part unchanged for now. | |
Comment Actions
- Merge branch 'master' into curves-geometry-nodes
- cleanup
- fix
| source/blender/blenkernel/intern/object_dupli.cc | ||
|---|---|---|
| 854 | Hm, without this change, the curves are drawn twice currently. Needs to be investigated. It may be fine to just use the curves drawing for now, since we have been doing that before this patch as well. | |
| source/blender/blenkernel/intern/object_dupli.cc | ||
|---|---|---|
| 854 | @Hans Goudey (HooglyBoogly) can you say if it's ok for you if we don't change how curves objects are drawn as part of this patch? | |
| source/blender/blenkernel/intern/curves.cc | ||
|---|---|---|
| 328–331 | Did you find that creating an empty curves data-block was necessary, or is this more preemptive? | |
| source/blender/blenkernel/intern/object_dupli.cc | ||
| 854 | Okay, I think this is fine as is, since it only affects the new curves object, and it doesn't affect instances. That means you can use the old drawing with the Geometry to Instance node, which is actually great for testing! | |
| source/blender/blenkernel/intern/object_dupli.cc | ||
|---|---|---|
| 854 | Unnecessary newline here | |
| source/blender/blenkernel/intern/curves.cc | ||
|---|---|---|
| 328–331 | Yeah, it behaved incorrectly without that. | |