Backface colors flipped when using different and custom backface shading
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 2.2k
- Forks
- 242
- Avg merge
- 11m
- Merged PRs (30d)
- 1
Description
Hi!
I am using polyscope in python on my intel Mac. When I read this mesh and choose the "backface shading -> custom" option, all faces assume the "inverted" color, despite this mesh being definitely not inverted. Here's a MWE:
import igl
import polyscope as ps
V, _, N, F, _, _ = igl.read_obj("test/unit_tests_data/bunny_oded.obj")
ps.init()
ps.register_surface_mesh("bunny", V,F)
ps.show()
Here is what I see:
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by running the Python MWE with the supplied bunny_oded.obj mesh and selecting backface shading → custom. Trace the backface-shading path responsible for choosing the front and inverted colors, then verify that the mesh displays the correct custom backface colors without treating all faces as inverted.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- computer-graphics
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100