nmwsharp / nmwsharp/polyscope

Backface colors flipped when using different and custom backface shading

Open
#227 1 comment 1 reaction 0 assignees View on GitHub

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:

Screenshot 2023-07-03 at 11 28 37 PM

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.