Page MenuHome

Sculpt Mode not updating in LookDev or Rendered
Closed, ResolvedPublic

Description

Operating system: Windows 10
Graphics card: Nvidia GeForce 1060 GTX

Broken: blender2.8, commit date: 2018-12-06 00:27, hash: 74db65e5424, type: Release
Worked: (optional)

I don't know if this was already adressed, so sorry for the duplicate if yes :), but when you're in sculpt mode it would be nice if you could sculpt in Rendered shading mode; right now you can only sculpt real time in solid mode; for the changes to happen you need to switch to Object Mode for the changes to take effect in LookDev or Rendered shading modes; here's a video demonstrating:

Create an object; enter sculpt mode, try to sculpt some details; if you're in solid shade mode it works; switch to lookdev or rendered, nothing happens; it would be nice to see the changes real time;

Cheers!

Event Timeline

Sebastian Parborg (zeddb) triaged this task as Confirmed, Medium priority.

I talked to Sergey about this a bit on IRC and it seems like there will be slow down if we are to support this.

Oh, I understand, it's no big deal, sculpt in solid, then preview for render later, is a fine workflow; thanks for looking into it, cheers!

The thing that seems unintuitive, is that it *does* update if Dyntopo is enabled, which should be heavier.

The thing that seems unintuitive, is that it *does* update if Dyntopo is enabled, which should be heavier.

I'm just confirming that it does update when Dynotopo is enabled.

I talked to Sergey about this a bit on IRC and it seems like there will be slow down if we are to support this.

I'd take a bit of slow-down in LookDev and Rendered ( which aren't currently supported anyway ) over the consistency of having it work like the other modes ( wireframe and Solid ). If people want the full speed, they can go back to Solid model to sculpt.

Brecht Van Lommel (brecht) raised the priority of this task from Confirmed, Medium to Confirmed, High.Mar 4 2019, 6:34 PM

Setting to high because this gets reported so often.

Just wanted to point out that the mesh also updates when sculpting a shape key in lookdev mode.

This is only for standard sculpt mode (no multires or dyntopo):

I have a patch for it but it does have problems: P926

In this patch I'm directly tagging ID_RECALC_GEOMETRY because otherwise the eval object is not updated with the new data. Also doing this invalidates the batch cache so no need for partial invalidation.

Also for some reason in Dyntopo the mesh disappear randomly (or is replaced by the "non-optimized-drawing" version) after a stroke (caused by ob_eval->sculpt->pbvh is NULL). This looks like a threading issue to me but running with -t 1 and disabling threaded sculpt did not help.

@Sergey Sharybin (sergey) Is there another way to flush down the geometry changes? so we could at least do partial (only pos & nor) batch cache invalidation.

I know this is a hack but would it be enough to do this only when the viewport who is doing the stroke is in lookdev or render mode?

I know this is a hack but would it be enough to do this only when the viewport who is doing the stroke is in lookdev or render mode?

We had some checks like that in 2.7. The issue is that it is not uncommon to have a separate rendered viewport, to see how the sculpted object looks like. So you can't really rely on just a single viewport.
Probably, something to do together with the customdata mask, where we need to accumulate flags across all the viewports as well?

Keep in mind, those "flushes" makes sculpting considerably slower, and are to be avoided as much as possible.

(caused by ob_eval->sculpt->pbvh is NULL). This looks like a threading issue to me but running with -t 1 and disabling threaded sculpt did not help.

I'm not sure wt which exact point pbvh is NULL.
If this issue happens with a single object with no modifiers, then the only operations which might run in parallel is the batch cache tag for redraw and geometry. However, with -t 1 or --debug-depsgraph-no-threads those will not run in parallel, and the evaluation order will be deterministic.

Dependency graph update and viewport drawing could never have threading issues, drawing happens after dependency graph threads have finished their work.

thank you Dear Developers for your hard Work! - i am happy,because this bug is finally fixed - i can see polygons in viewport,when i use sculpt tool in material view,thank you for fixing this issue.

Actually there is still the issue. Just downloaded build from May, 17th and when I tryied to use Brush in Sculpting Mode with Multiresolution Modifier I didn't see any change in View untill I switch Quality to any other numbers (doesn't meter to lower or upper). I have to switch it every time then I want to see how is going to looks like. Ohh, and it doesn't work in all mods (Solid, LookDev and Rendered).
I tried on Mac and PC - same.