UuuNyaa / blender_mmd_tools

MMD Tools is a blender addon for importing/exporting Models and Motions of MikuMikuDance.
GNU General Public License v3.0
2.27k stars 109 forks source link

Certain imported PMX model appears a glitchy black in solid view mode #37

Closed EltoCode closed 2 years ago

EltoCode commented 2 years ago

When certain pmx models are imported, they do not render correctly in solid view mode. They render with this glitchy black material, best described with the GIF below. So far I've been unable to discern what causes this unintended behavior in certain models. This glitch occurs in Blender 2.9 and 3.1

import_glitch

I've attached a zip file containing 2 models. One causes the glitch, the other does not. They are named as such

import_glitch.zip

UuuNyaa commented 2 years ago

Thanks for the report 😃 However, I could not reproduce the problem in my environment (Blender 3.1.2 and 2.93.9)

https://user-images.githubusercontent.com/70152495/167548081-5912682b-e65e-4e28-9470-da86ffb7d7dc.mp4

Can you explain in detail how to reproduce it?

nagadomi commented 2 years ago

Maybe AMD driver issue. https://github.com/powroupi/blender_mmd_tools/issues/317

EltoCode commented 2 years ago

Maybe AMD driver issue. powroupi#317

I just tested it on a Nvidia GPU and the glitch does not occur. So it's true that the issue only occurs on AMD machines.

Can you explain in detail how to reproduce it?

Importing a glitch model with the plugin will cause the glitch. This is what causes the glitch on affected models. If the model contains any materials with the "Opaque" field set to a value that is not 1. Then the glitch occurs on that model. So it's a transparency issue with the AMD driver

image

UuuNyaa commented 2 years ago

it's a transparency issue with the AMD driver

Thanks for the information 😃 I will not change MMD Tools as it seems to be an AMD driver issue. Please let me know if you find a workaround.