A model shows artifacts in the sculpt mode. #66712

Closed
opened 2019-07-11 17:10:24 +02:00 by Yuriy · 6 comments

System Information
Operating system: Windows-10-10.0.17134 64 Bits
Graphics card: GeForce GTX 1070 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 417.35

Blender Version
Broken: version: 2.80 (sub 74), branch: master, commit date: 2019-07-11 11:00, hash: d663048696
Worked: (optional)

Short description of error
A model shows artifacts in the sculpt mode.
Capture.PNG

bug.blend

Exact steps for others to reproduce the error
If you add the Multires modifier to this model and go into sculpt mode, you can see the artifacts.

**System Information** Operating system: Windows-10-10.0.17134 64 Bits Graphics card: GeForce GTX 1070 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 417.35 **Blender Version** Broken: version: 2.80 (sub 74), branch: master, commit date: 2019-07-11 11:00, hash: `d663048696` Worked: (optional) **Short description of error** A model shows artifacts in the sculpt mode. ![Capture.PNG](https://archive.blender.org/developer/F7593349/Capture.PNG) [bug.blend](https://archive.blender.org/developer/F7593351/bug.blend) **Exact steps for others to reproduce the error** If you add the Multires modifier to this model and go into sculpt mode, you can see the artifacts.
Author

Added subscriber: @YuraKharitonow

Added subscriber: @YuraKharitonow
Sergey Sharybin was assigned by Sebastian Parborg 2019-07-11 17:15:58 +02:00

Added subscriber: @fclem

Added subscriber: @fclem

@fclem, is that the normals in grid are wrong, or is it copying them to the draw batch where the issue is?

@fclem, is that the normals in grid are wrong, or is it copying them to the draw batch where the issue is?

To me it's the normals in grid.

The draw batch code is pretty straight forward.

          buffers->vert_buf, g_vbo_id.pos, vbo_index, CCG_elem_co(key, elem));

      short no_short[3];
      normal_float_to_short_v3(no_short, CCG_elem_no(key, elem));
      GPU_vertbuf_attr_set(buffers->vert_buf, g_vbo_id.nor, vbo_index, no_short);```
To me it's the normals in grid. The draw batch code is pretty straight forward. ``` GPU_vertbuf_attr_set( ``` buffers->vert_buf, g_vbo_id.pos, vbo_index, CCG_elem_co(key, elem)); ``` ``` short no_short[3]; normal_float_to_short_v3(no_short, CCG_elem_no(key, elem)); GPU_vertbuf_attr_set(buffers->vert_buf, g_vbo_id.nor, vbo_index, no_short);```

This issue was referenced by 9cdd2df277

This issue was referenced by 9cdd2df277b3b9b2949aee4f869b276f79ca17f4

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
Sign in to join this conversation.
4 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: blender/blender#66712
No description provided.