armory3d / armortools

3D Content Creation Tools
https://armorpaint.org
Other
3.23k stars 334 forks source link

Broken rendering with masked materials on custom meshes #1628

Open ColumbusUtrigas opened 1 year ago

ColumbusUtrigas commented 1 year ago

ArmorPaint version: e8b7d18c57c82d02c9b76d6618e8837473b08737

OS/device including version: Arch Linux, OpenGL backend, GTX1660Ti, nvidia driver version 535.86.05

Issue description: looks like rendering doesn't happen and GBuffer is taken from somewhere else

Steps to reproduce:

  1. Import mesh
  2. Add a few material layers
  3. Add a mask on one of the material
  4. Add another material layer (it could be any)
  5. Disable backface cull image image Disabled and enabled Layer 8. It can be at any place in the stack.
ColumbusUtrigas commented 1 year ago

Just checked it on tag 23.08, issue is still here. Also, if painting layer and masked material coexists anywhere in the stack, it behaves like that.

ColumbusUtrigas commented 1 year ago

Found one workaround. It is pre-triangulate mesh before export from blender, that way there is no need to disable backface culling and everything seems to work fine. It works for me, but I'll keep this bug as it seems to be a rendering issue.

MathemanFlo commented 12 months ago

I believe this is related to #1272